/frameworks/base/services/tests/notification/src/com/android/server/notification/ |
H A D | NotificationChannelTest.java | 37 NotificationChannel channel = 40 channel.writeToParcel(parcel, 0); 43 assertEquals(channel, channel1); 48 NotificationChannel channel = new NotificationChannel("a", "ab", IMPORTANCE_DEFAULT); 49 assertEquals(false, channel.isBlockableSystem()); 50 channel.setBlockableSystem(true); 51 assertEquals(true, channel.isBlockableSystem());
|
H A D | ImportanceExtractorTest.java | 62 private NotificationRecord getNotificationRecord(NotificationChannel channel) { argument 72 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); 87 NotificationChannel channel = 90 NotificationRecord r = getNotificationRecord(channel); 106 NotificationChannel channel = 109 NotificationRecord r = getNotificationRecord(channel);
|
H A D | RankingHelperTest.java | 567 // Should still have the newly created channel that wasn't in the xml. 584 fail("Was allowed to create a channel with invalid importance"); 591 fail("Was allowed to create a channel with invalid importance"); 598 fail("Was allowed to create a channel with invalid importance"); 612 final NotificationChannel channel = 614 channel.setSound(new Uri.Builder().scheme("test").build(), mAudioAttributes); 615 channel.enableLights(true); 616 channel.setBypassDnd(true); 617 channel.setLockscreenVisibility(Notification.VISIBILITY_SECRET); 619 mHelper.createNotificationChannel(PKG, UID, channel, fals [all...] |
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/ |
H A D | BidirectionalAsyncChannelServer.java | 32 * Provides an interface for the server side implementation of a bidirectional channel as described 49 AsyncChannel channel = mClients.get(msg.replyTo); 52 if (channel != null) { 54 channel.replyToMessage(msg, 58 channel = new AsyncChannel(); 59 mClients.put(msg.replyTo, channel); 60 channel.connected(context, this, msg.replyTo); 61 channel.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, 66 channel.disconnect();
|
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiChannel.java | 40 /** channel number */ 43 /** is it a DFS channel? */ 75 WifiChannel channel = new WifiChannel(); 76 channel.freqMHz = in.readInt(); 77 channel.channelNum = in.readInt(); 78 channel.isDFS = in.readInt() != 0; 79 return channel;
|
H A D | ScanSettings.java | 34 /** channel set to scan. this can be null or empty, indicating a full scan */ 48 for (WifiChannel channel : channelSet) 49 if (!channel.isValid()) return false; 64 for (WifiChannel channel : channelSet) channel.writeToParcel(out, flags);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | RttServiceTest.java | 100 // Create and connect a bi-directional async channel. 102 BidirectionalAsyncChannel channel = new BidirectionalAsyncChannel(); 103 channel.connect(mLooper.getLooper(), mRttServiceImpl.getMessenger(), 106 channel.assertConnected(); 107 return channel; 110 private void sendRangingRequestFailed(BidirectionalAsyncChannel channel, Handler handler, argument 112 Message message = sendRangingRequest(channel, handler, clientKey, params); 119 private Message sendRangingRequest(BidirectionalAsyncChannel channel, Handler handler, argument 125 channel.sendMessage(message); 133 private void sendEnableResponderSucceed(BidirectionalAsyncChannel channel, argument 145 sendEnableResponderFailed(BidirectionalAsyncChannel channel, Handler handler, int clientKey, int reason) argument 154 sendEnableResponder(BidirectionalAsyncChannel channel, Handler handler, int clientKey, ResponderConfig config) argument 168 sendDisableResponder(BidirectionalAsyncChannel channel, int key, boolean success) argument [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | colorspace.cpp | 30 uint8 channel[4]; member in union:Rgba 48 color.channel[kRed] = clamp(y + static_cast<int>(1.402 * v)); 49 color.channel[kGreen] = clamp(y - static_cast<int>(0.344 * u + 0.714 * v)); 50 color.channel[kBlue] = clamp(y + static_cast<int>(1.772 * u)); 51 color.channel[kAlpha] = 0xFF; 103 color_out.channel[kRed] = color_in.channel[kGreen]; 104 color_out.channel[kGreen] = color_in.channel[kBlue]; 105 color_out.channel[kBlu [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
H A D | InputBindResult.java | 36 * The input channel used to send input events to this IME. 38 public final InputChannel channel; field in class:InputBindResult 59 channel = _channel; 68 channel = InputChannel.CREATOR.createFromParcel(source); 70 channel = null; 94 if (channel != null) { 96 channel.writeToParcel(dest, flags); 123 return channel != null ? channel.describeContents() : 0;
|
/frameworks/native/libs/vr/libpdx_uds/ |
H A D | channel_manager.cpp | 16 auto channel = channels_.find(handle); local 17 if (channel == channels_.end()) { 18 ALOGE("Invalid channel handle: %d", handle); 20 channels_.erase(channel); 38 auto channel = channels_.find(handle); local 39 return channel != channels_.end() ? &channel->second : nullptr;
|
/frameworks/wilhelm/src/itf/ |
H A D | IMIDIMuteSolo.cpp | 22 static SLresult IMIDIMuteSolo_SetChannelMute(SLMIDIMuteSoloItf self, SLuint8 channel, argument 27 if (channel > 15) { 31 SLuint16 mask = 1 << channel; 45 static SLresult IMIDIMuteSolo_GetChannelMute(SLMIDIMuteSoloItf self, SLuint8 channel, argument 50 if (channel > 15 || (NULL == pMute)) { 57 *pMute = (mask >> channel) & 1; 65 static SLresult IMIDIMuteSolo_SetChannelSolo(SLMIDIMuteSoloItf self, SLuint8 channel, argument 70 if (channel > 15) { 74 SLuint16 mask = 1 << channel; 88 static SLresult IMIDIMuteSolo_GetChannelSolo(SLMIDIMuteSoloItf self, SLuint8 channel, argument [all...] |
/frameworks/base/media/jni/soundpool/ |
H A D | SoundPool.cpp | 102 void SoundPool::addToRestartList(SoundChannel* channel) argument 106 mRestart.push_back(channel); 111 void SoundPool::addToStopList(SoundChannel* channel) argument 115 mStop.push_back(channel); 135 SoundChannel* channel; local 136 ALOGV("Getting channel from stop list"); 138 channel = *iter; 141 if (channel != 0) { 143 channel->stop(); 150 SoundChannel* channel; local 255 SoundChannel* channel; local 291 SoundChannel* channel = NULL; local 329 moveToFront_l(SoundChannel* channel) argument 344 SoundChannel* channel = findChannel(channelID); local 355 SoundChannel* channel = &mChannelPool[i]; local 364 SoundChannel* channel = findChannel(channelID); local 388 SoundChannel* channel = &mChannelPool[i]; local 397 SoundChannel* channel = findChannel(channelID); local 410 SoundChannel* channel = findChannel(channelID); local 420 SoundChannel* channel = findChannel(channelID); local 430 SoundChannel* channel = findChannel(channelID); local 440 SoundChannel* channel = findChannel(channelID); local 447 done_l(SoundChannel* channel) argument 872 SoundChannel* channel = static_cast<SoundChannel*>((void *)((unsigned long)user & ~1)); local [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/wificond/ |
H A D | ChannelSettings.java | 45 ChannelSettings channel = (ChannelSettings) rhs; 46 if (channel == null) { 49 return frequency == channel.frequency;
|
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | RankingHelper.java | 69 private static final String TAG_CHANNEL = "channel"; 220 NotificationChannel channel = new NotificationChannel(id, 222 channel.populateFromXml(parser); 223 r.channels.put(id, channel); 291 // O apps should not have the default channel. 295 // Otherwise, this app should have the default channel. 306 // Keep the default channel until upgraded. 322 // Keep the default channel until upgraded. 327 NotificationChannel channel; 328 channel 538 createNotificationChannel(String pkg, int uid, NotificationChannel channel, boolean fromTargetApp) argument 595 clearLockedFields(NotificationChannel channel) argument 1139 getChannelLog(NotificationChannel channel, String pkg) argument [all...] |
H A D | RankingConfig.java | 39 void createNotificationChannel(String pkg, int uid, NotificationChannel channel, argument 41 void updateNotificationChannel(String pkg, int uid, NotificationChannel channel); argument
|
/frameworks/native/services/vr/bufferhubd/ |
H A D | buffer_hub.cpp | 61 for (const auto& channel : channels) { 62 if (channel->channel_type() == BufferHubChannel::kProducerType) { 63 BufferHubChannel::BufferInfo info = channel->GetBufferInfo(); 100 for (const auto& channel : channels) { 101 if (channel->channel_type() == BufferHubChannel::kConsumerType) { 102 BufferHubChannel::BufferInfo info = channel->GetBufferInfo(); 112 stream << (" channel_id=" + std::to_string(channel->channel_id())); 144 for (const auto& channel : channels) { 145 if (channel->channel_type() == BufferHubChannel::kProducerQueueType) { 146 BufferHubChannel::BufferInfo info = channel 198 auto channel = message.GetChannel<BufferHubChannel>(); local 236 OnChannelClose(Message&, const std::shared_ptr<Channel>& channel) argument [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | AlertWindowNotification.java | 149 final NotificationChannel channel = 151 channel.enableLights(false); 152 channel.enableVibration(false); 153 channel.setBlockableSystem(true); 154 channel.setGroup(sChannelGroup.getId()); 155 mNotificationManager.createNotificationChannel(channel);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
H A D | VoicemailNotificationSettingsUtil.java | 55 final NotificationChannel channel = NotificationChannelController.getChannel( 57 return (channel != null) ? channel.shouldVibrate() : getVibrationPreference(context); 76 final NotificationChannel channel = NotificationChannelController.getChannel( 78 return (channel != null) ? channel.getSound() : getRingTonePreference(context);
|
/frameworks/av/services/radio/ |
H A D | TunerInterface.h | 29 * Apply current radio band configuration (band, range, channel spacing ...). 81 * Move one channel spacing up or down. 107 * - channel: channel to tune to. A frequency in kHz for AM/FM/HD Radio bands. 122 virtual int tune(unsigned int channel, unsigned int sub_channel) = 0;
|
/frameworks/native/libs/vr/libpdx/private/pdx/ |
H A D | service_endpoint.h | 27 Channel* channel{nullptr}; 49 // Set the channel context for the given channel. 50 virtual Status<void> SetChannel(int channel_id, Channel* channel) = 0; 52 // Close a channel, signaling the client file object and freeing the channel 53 // id. Once closed, the client side of the channel always returns the error 57 // Update the event bits for the given channel (given by id), using the 62 // Create a new channel and push it as a file descriptor to the process 66 // instance associated with this channel i [all...] |
/frameworks/opt/net/wifi/libwifi_system/include/wifi_system/ |
H A D | hostapd_manager.h | 51 // |channel| is the WiFi channel (e.g. 6) or <0 for a default value. 60 int channel,
|
/frameworks/opt/net/wifi/libwifi_system/testlib/include/wifi_system_test/ |
H A D | mock_hostapd_manager.h | 36 int channel,
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
H A D | NoBandChannelHelper.java | 27 * ChannelHelper that offers channel manipulation utilities when the channels in a band are not 40 public boolean settingsContainChannel(WifiScanner.ScanSettings settings, int channel) { argument 43 if (settings.channels[i].frequency == channel) { 89 public boolean containsChannel(int channel) { argument 90 return mAllChannels || mChannels.contains(channel);
|
/frameworks/native/libs/vr/libpdx/ |
H A D | service.cpp | 19 return info.channel ? info.channel->shared_from_this() 382 int flags, const std::shared_ptr<Channel>& channel, int* channel_id) { 385 return svc->PushChannel(this, flags, channel, channel_id); 392 Service* service, int flags, const std::shared_ptr<Channel>& channel, 395 return service->PushChannel(this, flags, channel, channel_id); 399 std::shared_ptr<Channel>* channel) const { 402 return svc->CheckChannel(this, ref, channel); 409 std::shared_ptr<Channel>* channel) const { 411 return service->CheckChannel(this, ref, channel); 381 PushChannel( int flags, const std::shared_ptr<Channel>& channel, int* channel_id) argument 391 PushChannel( Service* service, int flags, const std::shared_ptr<Channel>& channel, int* channel_id) argument 482 SetChannel(int channel_id, const std::shared_ptr<Channel>& channel) argument 536 PushChannel( Message* message, int flags, const std::shared_ptr<Channel>& channel, int* channel_id) argument [all...] |
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothMasInstance.java | 29 public BluetoothMasInstance(int id, String name, int channel, int msgTypes) { argument 32 mChannel = channel;
|