/libcore/ojluni/src/main/java/sun/nio/ch/ |
PendingFuture.java | 41 private final AsynchronousChannel channel; field in class:PendingFuture 59 PendingFuture(AsynchronousChannel channel, 64 this.channel = channel; 70 PendingFuture(AsynchronousChannel channel, 74 this.channel = channel; 79 PendingFuture(AsynchronousChannel channel) { 80 this(channel, null, null); 83 PendingFuture(AsynchronousChannel channel, Object context) 87 AsynchronousChannel channel() { method in class:PendingFuture [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppPreference.java | 44 * This class cache Bluetooth device name and channel locally. Its a temp 122 Integer channel = null; local 124 channel = mChannels.get(key); 128 + channel); 131 return (channel != null) ? channel : -1; 146 public void setChannel(BluetoothDevice remoteDevice, int uuid, int channel) { 149 + channel); 151 if (channel != getChannel(remoteDevice, uuid)) { 154 ed.putInt(key, channel); [all...] |
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/ |
TranscriptionClientFactory.java | 27 import io.grpc.Channel; 41 * to share the same channel, which is relatively expensive to create. 69 Channel channel = local 74 return new TranscriptionClient(VoicemailTranscriptionServiceGrpc.newBlockingStub(channel)); 163 MethodDescriptor<ReqT, RespT> method, CallOptions callOptions, Channel next) {
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/ |
EncryptionController.java | 206 NotificationChannel channel = new NotificationChannel(CHANNEL_ID, local 208 notificationManager.createNotificationChannel(channel);
|
/packages/apps/Settings/src/com/android/settings/notification/ |
ChannelGroupNotificationSettings.java | 82 Log.w(TAG, "Notification channel group posted twice to settings - old size " + 98 for (NotificationChannel channel : channels) { 100 getPreferenceScreen(), channel, mChannelGroup.isBlocked())); local
|
ImportancePreferenceController.java | 76 NotificationChannel channel = new NotificationChannel("", "", i); local 77 entries[index] = getImportanceSummary(channel); 96 // then set sound for this channel to your default sound, 97 // because you probably intended to cause this channel to actually start making sound. 114 protected String getImportanceSummary(NotificationChannel channel) { 116 int importance = channel.getImportance(); 128 if (SoundPreferenceController.hasValidSound(channel)) { 136 if (SoundPreferenceController.hasValidSound(channel)) {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
AppLinkPreferenceControllerTest.java | 90 NotificationChannel channel = mock(NotificationChannel.class); local 91 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); 92 mController.onResume(appRow, channel, null, null); 99 NotificationChannel channel = mock(NotificationChannel.class); local 100 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); 101 when(channel.getId()).thenReturn(DEFAULT_CHANNEL_ID); 102 mController.onResume(appRow, channel, null, null); 110 NotificationChannel channel = mock(NotificationChannel.class); local 111 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); 112 when(channel.getId()).thenReturn(DEFAULT_CHANNEL_ID) [all...] |
DescriptionPreferenceControllerTest.java | 89 NotificationChannel channel = mock(NotificationChannel.class); local 90 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); 91 mController.onResume(appRow, channel, null, null); 98 NotificationChannel channel = mock(NotificationChannel.class); local 99 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); 100 mController.onResume(appRow, channel, null, null); 115 NotificationChannel channel = mock(NotificationChannel.class); local 116 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); 117 when(channel.getDescription()).thenReturn("AAA"); 118 mController.onResume(appRow, channel, null, null) 135 NotificationChannel channel = mock(NotificationChannel.class); local [all...] |
NotificationsOffPreferenceControllerTest.java | 87 NotificationChannel channel = mock(NotificationChannel.class); local 88 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); 89 mController.onResume(appRow, channel, null, null); 96 NotificationChannel channel = mock(NotificationChannel.class); local 97 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); 98 mController.onResume(appRow, channel, null, null);
|
SoundPreferenceControllerTest.java | 120 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_LOW); local 121 mController.onResume(appRow, channel, null, null); 128 NotificationChannel channel = local 130 mController.onResume(appRow, channel, null, null); 137 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); local 138 mController.onResume(appRow, channel, null, null); 154 NotificationChannel channel = mock(NotificationChannel.class); local 155 when(channel.getId()).thenReturn("something"); 156 mController.onResume(new NotificationBackend.AppRow(), channel, null, mock( 170 NotificationChannel channel = mock(NotificationChannel.class) local 184 NotificationChannel channel = mock(NotificationChannel.class); local 201 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_HIGH); local 248 NotificationChannel channel = local [all...] |
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/ |
AppNotificationSettingsTest.java | 108 fail("Channel erroneously appearing"); 127 // links directly to channel page 150 // links directly to channel page 159 NotificationChannel channel = new NotificationChannel(id, id, IMPORTANCE_DEFAULT); local 161 channel.setGroup(group.getId()); 163 mNm.createNotificationChannel(channel); 164 return channel;
|
/packages/apps/TV/src/com/android/tv/guide/ |
ProgramListAdapter.java | 26 import com.android.tv.data.api.Channel; 31 * Adapts a program list for a specific channel from {@link ProgramManager} to a row of the program 59 Channel channel = mProgramManager.getChannel(mChannelIndex); local 60 if (channel == null) { 61 // The channel has just been removed. Do nothing. 63 mChannelId = channel.getId(); 64 if (DEBUG) Log.d(TAG, "update for channel " + mChannelId);
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
ChannelCheckItem.java | 28 import com.android.tv.data.api.Channel; 33 private Channel mChannel; 39 public void onChannelRemoved(Channel channel) {} 42 public void onChannelUpdated(Channel channel) { 43 mChannel = channel; 56 Channel channel, 59 super(channel.getDisplayName(), "") [all...] |
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
FakeEpgReader.java | 26 import com.android.tv.data.api.Channel; 45 public final ListMultimap<String, Channel> lineup2Channels = LinkedListMultimap.create(2); 77 public Set<EpgChannel> getChannels(Set<Channel> inputChannels, @NonNull String lineupId) { 79 List<Channel> lineupChannels = lineup2Channels.get(lineupId); 80 for (Channel channel : lineupChannels) { 81 Channel match = 84 new Predicate<Channel>() { 86 public boolean apply(@Nullable Channel inputChannel) { 89 channel.getDisplayNumber()) [all...] |
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
WatchedHistoryManagerTest.java | 72 ChannelImpl channel = new ChannelImpl.Builder().setId(fakeId).build(); local 73 mWatchedHistoryManager.logChannelViewStop(channel, time, duration); 93 ChannelImpl channel = new ChannelImpl.Builder().setId(startChannelId + i).build(); local 94 mWatchedHistoryManager.logChannelViewStop(channel, time + duration * i, duration);
|
/prebuilts/jdk/jdk8/darwin-x86/sample/nio/chatserver/ |
ChatServer.java | 105 * @throws IOException if failing to shutdown the channel group 130 * @param channel the newly accepted channel 132 private void handleNewConnection(AsynchronousSocketChannel channel) { 133 Client client = new Client(channel, new ClientReader(this, new NameReader(this))); 135 channel.setOption(StandardSocketOptions.TCP_NODELAY, true);
|
/prebuilts/jdk/jdk8/linux-x86/sample/nio/chatserver/ |
ChatServer.java | 105 * @throws IOException if failing to shutdown the channel group 130 * @param channel the newly accepted channel 132 private void handleNewConnection(AsynchronousSocketChannel channel) { 133 Client client = new Client(channel, new ClientReader(this, new NameReader(this))); 135 channel.setOption(StandardSocketOptions.TCP_NODELAY, true);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/language.support/support.coroutines/end.to.end/ |
go.pass.cpp | 63 class channel; 66 channel* ch; 73 channel * ch; 80 class channel class 157 goroutine pusher(channel& left, channel& right) 166 channel* c = new channel[N + 1];
|
/system/bt/test/rootcanal/ |
bluetooth_hci.cc | 166 uint16_t channel = (packet[0] | (packet[1] << 8)) & 0xfff; local 173 new AclPacket(channel, boundary_flags, broadcast_flags)); 184 uint16_t channel = (packet[0] | (packet[1] << 8)) & 0xfff; local 188 std::unique_ptr<ScoPacket>(new ScoPacket(channel, packet_status)); 201 ALOGE("Test channel SetUp(%d) failed.", port); 205 ALOGI("Test channel SetUp() successful"); 209 ALOGE("Error watching test channel fd."); 212 ALOGI("Test channel connection accepted.");
|
/system/update_engine/ |
image_properties_android.cc | 63 // Default channel from factory.prop 102 // The offset and size of the channel field in misc partition. 108 // Read channel from misc partition to |out_channel|, return false if unable to 109 // read misc or no channel is set in misc. 114 char channel[kChannelSize] = {0}; local 117 fd, channel, kChannelSize - 1, kChannelOffset, &bytes_read) || 119 PLOG(ERROR) << "Reading update channel from misc failed"; 122 if (channel[0] == '\0') { 123 LOG(INFO) << "No channel set in misc."; 126 if (!base::EndsWith(channel, "-channel", base::CompareCase::SENSITIVE)) 144 char channel[kChannelSize] = {0}; local 154 string channel; local [all...] |
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/ |
hostapd_config.py | 24 def ht40_plus_allowed(channel): 26 channel_supported = (channel in hostapd_constants.HT40_ALLOW_MAP[ 31 def ht40_minus_allowed(channel): 33 channel_supported = (channel in hostapd_constants.HT40_ALLOW_MAP[ 38 def get_frequency_for_channel(channel): 39 """The frequency associated with a given channel number. 42 value: int channel number. 45 int, frequency in MHz associated with the channel. 50 if channel == channel_iter: 53 raise ValueError('Unknown channel value: %r.' % channel 166 def channel(self): member in class:HostapdConfig 171 def channel(self, value): member in class:HostapdConfig [all...] |
/cts/tests/tests/secure_element/access_control/AccessControlApp3/src/android/omapi/accesscontrol3/cts/ |
AccessControlTest.java | 35 import android.se.omapi.Channel; 245 Channel channel = null; local 253 channel = session.openLogicalChannel(aid, (byte)0x00); 254 assertNotNull("Null Channel", channel); 255 byte[] selectResponse = channel.getSelectResponse(); 264 if (channel != null) 265 channel.close(); 273 Channel channel = null local 297 Channel channel = null; local 327 Channel channel = null; local [all...] |
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
NotificationRecordTest.java | 90 private final String channelId = "channel"; 91 NotificationChannel channel = field in class:NotificationRecordTest 142 channel.setSound(CUSTOM_SOUND, CUSTOM_ATTRIBUTES); 145 channel.setSound(null, null); 153 channel.setVibrationPattern(CUSTOM_CHANNEL_VIBRATION); 161 channel.setLightColor(Color.BLUE); 163 channel.enableLights(true); 165 channel.enableLights(false); 237 channel.setSound(CUSTOM_SOUND, CUSTOM_ATTRIBUTES); 243 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel); [all...] |
/packages/apps/TV/src/com/android/tv/data/epg/ |
EpgFetcherImpl.java | 57 import com.android.tv.data.api.Channel; 75 * The service class to fetch EPG routinely or on-demand during channel scanning 171 private static Set<Channel> getExistingChannelsForMyPackage(Context context) { 172 HashSet<Channel> channels = new HashSet<>(); 190 Channel channel = ChannelImpl.fromCursor(c); local 191 if (DEBUG) Log.d(TAG, "Found " + channel); 192 if (myPackageName.equals(channel.getPackageName())) { 193 channels.add(channel); 289 Log.i(TAG, "EPG fetching on channel scanning started.") [all...] |
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
ChannelDataManager.java | 54 /** Manages the channel info and EPG data through {@link TvInputManager}. */ 92 * A version number to enforce consistency of the channel data. 120 * Invoked when a request for getting programs of a channel has been processed and passes 121 * the requested channel and the programs retrieved from database to the listener. 123 void onRequestProgramsResponse(TunerChannel channel, List<EitItem> programs); 126 * Invoked when programs of a channel have been arrived and passes the arrived channel and 129 void onProgramsArrived(TunerChannel channel, List<EitItem> programs); 132 * Invoked when a channel has been arrived and passes the arrived channel to the listener 206 TunerChannel channel = mTunerChannelMap.get(channelId); local 270 TunerChannel channel = TunerChannel.fromCursor(cursor); local 344 TunerChannel channel = (TunerChannel) msg.obj; local 367 TunerChannel channel = (TunerChannel) msg.obj; local 467 channel)); local 548 channel)); local 704 mTunerChannelMap.put(tunerChannel.getChannelId(), channel); local 771 TunerChannel channel = TunerChannel.fromCursor(cursor); local 781 mTunerChannelMap.put(channel.getChannelId(), channel); local 787 public final TunerChannel channel; field in class:ChannelDataManager.ChannelEvent [all...] |