Home
last modified time | relevance | path

Searched refs:channel (Results 1 – 25 of 181) sorted by relevance

12345678

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DRttServiceTest.java102 BidirectionalAsyncChannel channel = new BidirectionalAsyncChannel(); in connectChannel() local
103 channel.connect(mLooper.getLooper(), mRttServiceImpl.getMessenger(), in connectChannel()
106 channel.assertConnected(); in connectChannel()
107 return channel; in connectChannel()
110 private void sendRangingRequestFailed(BidirectionalAsyncChannel channel, Handler handler, in sendRangingRequestFailed() argument
112 Message message = sendRangingRequest(channel, handler, clientKey, params); in sendRangingRequestFailed()
119 private Message sendRangingRequest(BidirectionalAsyncChannel channel, Handler handler, in sendRangingRequest() argument
125 channel.sendMessage(message); in sendRangingRequest()
133 private void sendEnableResponderSucceed(BidirectionalAsyncChannel channel, in sendEnableResponderSucceed() argument
135 Message message = sendEnableResponder(channel, handler, clientKey, in sendEnableResponderSucceed()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
Dcolorspace.cpp30 uint8 channel[4]; member
48 color.channel[kRed] = clamp(y + static_cast<int>(1.402 * v)); in convertYuvToRgba()
49 color.channel[kGreen] = clamp(y - static_cast<int>(0.344 * u + 0.714 * v)); in convertYuvToRgba()
50 color.channel[kBlue] = clamp(y + static_cast<int>(1.772 * u)); in convertYuvToRgba()
51 color.channel[kAlpha] = 0xFF; in convertYuvToRgba()
103 color_out.channel[kRed] = color_in.channel[kGreen]; in JNI_COLORSPACE_METHOD()
104 color_out.channel[kGreen] = color_in.channel[kBlue]; in JNI_COLORSPACE_METHOD()
105 color_out.channel[kBlue] = color_in.channel[kAlpha]; in JNI_COLORSPACE_METHOD()
106 color_out.channel[kAlpha] = color_in.channel[kRed]; in JNI_COLORSPACE_METHOD()
120 r = color_in.channel[kRed]; in JNI_COLORSPACE_METHOD()
[all …]
/frameworks/base/media/jni/soundpool/
DSoundPool.cpp102 void SoundPool::addToRestartList(SoundChannel* channel) in addToRestartList() argument
106 mRestart.push_back(channel); in addToRestartList()
111 void SoundPool::addToStopList(SoundChannel* channel) in addToStopList() argument
115 mStop.push_back(channel); in addToStopList()
135 SoundChannel* channel; in run() local
138 channel = *iter; in run()
141 if (channel != 0) { in run()
143 channel->stop(); in run()
150 SoundChannel* channel; in run() local
153 channel = *iter; in run()
[all …]
/frameworks/base/services/tests/notification/src/com/android/server/notification/
DNotificationChannelTest.java37 NotificationChannel channel = in testWriteToParcel() local
40 channel.writeToParcel(parcel, 0); in testWriteToParcel()
43 assertEquals(channel, channel1); in testWriteToParcel()
48 NotificationChannel channel = new NotificationChannel("a", "ab", IMPORTANCE_DEFAULT); in testSystemBlockable() local
49 assertEquals(false, channel.isBlockableSystem()); in testSystemBlockable()
50 channel.setBlockableSystem(true); in testSystemBlockable()
51 assertEquals(true, channel.isBlockableSystem()); in testSystemBlockable()
DRankingHelperTest.java612 final NotificationChannel channel = in testUpdate() local
614 channel.setSound(new Uri.Builder().scheme("test").build(), mAudioAttributes); in testUpdate()
615 channel.enableLights(true); in testUpdate()
616 channel.setBypassDnd(true); in testUpdate()
617 channel.setLockscreenVisibility(Notification.VISIBILITY_SECRET); in testUpdate()
619 mHelper.createNotificationChannel(PKG, UID, channel, false); in testUpdate()
632 assertEquals(channel2, mHelper.getNotificationChannel(PKG, UID, channel.getId(), false)); in testUpdate()
662 final NotificationChannel channel = new NotificationChannel("id2", "name2", IMPORTANCE_LOW); in testUpdate_postUpgrade_noUpdateAppFields() local
664 mHelper.createNotificationChannel(PKG, UID, channel, false); in testUpdate_postUpgrade_noUpdateAppFields()
670 channel.setShowBadge(false); in testUpdate_postUpgrade_noUpdateAppFields()
[all …]
DNotificationRecordTest.java75 NotificationChannel channel = field in NotificationRecordTest
135 channel.setSound(CUSTOM_SOUND, CUSTOM_ATTRIBUTES); in getNotification()
138 channel.setSound(null, null); in getNotification()
146 channel.setVibrationPattern(CUSTOM_CHANNEL_VIBRATION); in getNotification()
154 channel.setLightColor(Color.BLUE); in getNotification()
156 channel.enableLights(true); in getNotification()
158 channel.enableLights(false); in getNotification()
238 channel.setSound(CUSTOM_SOUND, CUSTOM_ATTRIBUTES); in testSound_default_upgradeUsesChannel()
244 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel); in testSound_default_upgradeUsesChannel()
288 channel.enableVibration(true); in testVibration_custom_upgradeUsesChannel()
[all …]
DImportanceExtractorTest.java62 private NotificationRecord getNotificationRecord(NotificationChannel channel) { in getNotificationRecord() argument
72 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecord()
87 NotificationChannel channel = in testAppPreferenceChannelNone() local
90 NotificationRecord r = getNotificationRecord(channel); in testAppPreferenceChannelNone()
106 NotificationChannel channel = in testAppPreferenceChannelPreference() local
109 NotificationRecord r = getNotificationRecord(channel); in testAppPreferenceChannelPreference()
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBidirectionalAsyncChannelServer.java49 AsyncChannel channel = mClients.get(msg.replyTo); in BidirectionalAsyncChannelServer()
52 if (channel != null) { in BidirectionalAsyncChannelServer()
54 channel.replyToMessage(msg, in BidirectionalAsyncChannelServer()
58 channel = new AsyncChannel(); in BidirectionalAsyncChannelServer()
59 mClients.put(msg.replyTo, channel); in BidirectionalAsyncChannelServer()
60 channel.connected(context, this, msg.replyTo); in BidirectionalAsyncChannelServer()
61 channel.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in BidirectionalAsyncChannelServer()
66 channel.disconnect(); in BidirectionalAsyncChannelServer()
/frameworks/base/core/java/com/android/internal/view/
DInputBindResult.java38 public final InputChannel channel; field in InputBindResult
59 channel = _channel; in InputBindResult()
68 channel = InputChannel.CREATOR.createFromParcel(source); in InputBindResult()
70 channel = null; in InputBindResult()
94 if (channel != null) { in writeToParcel()
96 channel.writeToParcel(dest, flags); in writeToParcel()
123 return channel != null ? channel.describeContents() : 0; in describeContents()
/frameworks/native/services/vr/bufferhubd/
Dbuffer_hub.cpp61 for (const auto& channel : channels) { in DumpState() local
62 if (channel->channel_type() == BufferHubChannel::kProducerType) { in DumpState()
63 BufferHubChannel::BufferInfo info = channel->GetBufferInfo(); in DumpState()
100 for (const auto& channel : channels) { in DumpState() local
101 if (channel->channel_type() == BufferHubChannel::kConsumerType) { in DumpState()
102 BufferHubChannel::BufferInfo info = channel->GetBufferInfo(); in DumpState()
112 stream << (" channel_id=" + std::to_string(channel->channel_id())); in DumpState()
144 for (const auto& channel : channels) { in DumpState() local
145 if (channel->channel_type() == BufferHubChannel::kProducerQueueType) { in DumpState()
146 BufferHubChannel::BufferInfo info = channel->GetBufferInfo(); in DumpState()
[all …]
/frameworks/wilhelm/src/itf/
DIMIDIMuteSolo.cpp22 static SLresult IMIDIMuteSolo_SetChannelMute(SLMIDIMuteSoloItf self, SLuint8 channel, in IMIDIMuteSolo_SetChannelMute() argument
27 if (channel > 15) { in IMIDIMuteSolo_SetChannelMute()
31 SLuint16 mask = 1 << channel; in IMIDIMuteSolo_SetChannelMute()
45 static SLresult IMIDIMuteSolo_GetChannelMute(SLMIDIMuteSoloItf self, SLuint8 channel, in IMIDIMuteSolo_GetChannelMute() argument
50 if (channel > 15 || (NULL == pMute)) { in IMIDIMuteSolo_GetChannelMute()
57 *pMute = (mask >> channel) & 1; in IMIDIMuteSolo_GetChannelMute()
65 static SLresult IMIDIMuteSolo_SetChannelSolo(SLMIDIMuteSoloItf self, SLuint8 channel, in IMIDIMuteSolo_SetChannelSolo() argument
70 if (channel > 15) { in IMIDIMuteSolo_SetChannelSolo()
74 SLuint16 mask = 1 << channel; in IMIDIMuteSolo_SetChannelSolo()
88 static SLresult IMIDIMuteSolo_GetChannelSolo(SLMIDIMuteSoloItf self, SLuint8 channel, in IMIDIMuteSolo_GetChannelSolo() argument
[all …]
DIOutputMixExt.cpp214 unsigned channel; in IOutputMixExt_FillBuffer() local
215 for (channel = 0; channel < STEREO_CHANNELS; ++channel) { in IOutputMixExt_FillBuffer()
216 float gain = track->mGains[channel]; in IOutputMixExt_FillBuffer()
217 gains[channel] = gain; in IOutputMixExt_FillBuffer()
226 summaries[channel] = summary; in IOutputMixExt_FillBuffer()
445 unsigned channel; in audioPlayerGainUpdate() local
446 for (channel = 0; channel < STEREO_CHANNELS; ++channel) { in audioPlayerGainUpdate()
448 if (muteMask & (1 << channel)) { in audioPlayerGainUpdate()
453 switch (channel) { in audioPlayerGainUpdate()
470 audioPlayer->mGains[channel] = gain; in audioPlayerGainUpdate()
/frameworks/native/libs/vr/libpdx_uds/
Dchannel_manager.cpp16 auto channel = channels_.find(handle); in CloseHandle() local
17 if (channel == channels_.end()) { in CloseHandle()
20 channels_.erase(channel); in CloseHandle()
38 auto channel = channels_.find(handle); in GetChannelData() local
39 return channel != channels_.end() ? &channel->second : nullptr; in GetChannelData()
Dservice_framework_tests.cpp97 const std::shared_ptr<Channel>& channel) override { in OnChannelClose() argument
98 if (test_channel_ == channel) in OnChannelClose()
155 std::shared_ptr<TestChannel> channel; in HandleMessage() local
161 message.CheckChannel<TestChannel>(ref, &channel); in HandleMessage()
165 if (channel != nullptr) in HandleMessage()
166 REPLY_MESSAGE_RETURN(message, channel->channel_id(), {}); in HandleMessage()
182 auto channel = std::make_shared<TestChannel>(-1); in HandleMessage() local
184 message.PushChannel(0, channel, &channel->channel_id_); in HandleMessage()
192 auto channel = std::make_shared<TestChannel>(-1); in HandleMessage() local
194 other_service_.get(), 0, channel, &channel->channel_id_); in HandleMessage()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DRankingHelper.java220 NotificationChannel channel = new NotificationChannel(id, in readXml() local
222 channel.populateFromXml(parser); in readXml()
223 r.channels.put(id, channel); in readXml()
327 NotificationChannel channel; in createDefaultChannelIfNeeded() local
328 channel = new NotificationChannel( in createDefaultChannelIfNeeded()
332 channel.setBypassDnd(r.priority == Notification.PRIORITY_MAX); in createDefaultChannelIfNeeded()
333 channel.setLockscreenVisibility(r.visibility); in createDefaultChannelIfNeeded()
335 channel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE); in createDefaultChannelIfNeeded()
338 channel.lockFields(NotificationChannel.USER_LOCKED_PRIORITY); in createDefaultChannelIfNeeded()
341 channel.lockFields(NotificationChannel.USER_LOCKED_VISIBILITY); in createDefaultChannelIfNeeded()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiChannel.java75 WifiChannel channel = new WifiChannel();
76 channel.freqMHz = in.readInt();
77 channel.channelNum = in.readInt();
78 channel.isDFS = in.readInt() != 0;
79 return channel;
DScanSettings.java48 for (WifiChannel channel : channelSet) in isValid()
49 if (!channel.isValid()) return false; in isValid()
64 for (WifiChannel channel : channelSet) channel.writeToParcel(out, flags); in writeToParcel()
/frameworks/native/libs/vr/libpdx/private/pdx/
Dservice.h196 int flags, const std::shared_ptr<Channel>& channel, int* channel_id);
203 Service* service, int flags, const std::shared_ptr<Channel>& channel,
224 std::shared_ptr<Channel>* channel) const;
231 std::shared_ptr<Channel>* channel) const;
239 std::shared_ptr<C>* channel) const { in CheckChannel() argument
242 CheckChannel(ref, channel ? &base_pointer : nullptr); in CheckChannel()
243 if (channel) in CheckChannel()
244 *channel = std::static_pointer_cast<C>(base_pointer); in CheckChannel()
250 std::shared_ptr<C>* channel) const { in CheckChannel() argument
253 CheckChannel(service, ref, channel ? &base_pointer : nullptr); in CheckChannel()
[all …]
/frameworks/native/libs/vr/libpdx/
Dservice.cpp19 return info.channel ? info.channel->shared_from_this() in GetFromMessageInfo()
382 int flags, const std::shared_ptr<Channel>& channel, int* channel_id) { in PushChannel() argument
385 return svc->PushChannel(this, flags, channel, channel_id); in PushChannel()
392 Service* service, int flags, const std::shared_ptr<Channel>& channel, in PushChannel() argument
395 return service->PushChannel(this, flags, channel, channel_id); in PushChannel()
399 std::shared_ptr<Channel>* channel) const { in CheckChannel()
402 return svc->CheckChannel(this, ref, channel); in CheckChannel()
409 std::shared_ptr<Channel>* channel) const { in CheckChannel()
411 return service->CheckChannel(this, ref, channel); in CheckChannel()
483 const std::shared_ptr<Channel>& channel) { in SetChannel() argument
[all …]
/frameworks/hardware/interfaces/sensorservice/1.0/
DIDirectReportChannel.hal22 * The interface represents a direct channel created by
29 * Configure direct report on channel
31 * Configure sensor direct report on a direct channel: set rate to value
33 * shared memory region used for creating the channel; set rate to STOP will
36 * To stop all active sensor direct report configured to a channel, set
50 * single direct channel, or 0 if: (1) no such token
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DVoicemailNotificationSettingsUtil.java55 final NotificationChannel channel = NotificationChannelController.getChannel( in isVibrationEnabled() local
57 return (channel != null) ? channel.shouldVibrate() : getVibrationPreference(context); in isVibrationEnabled()
76 final NotificationChannel channel = NotificationChannelController.getChannel( in getRingtoneUri() local
78 return (channel != null) ? channel.getSound() : getRingTonePreference(context); in getRingtoneUri()
/frameworks/opt/net/wifi/libwifi_system/
Dhostapd_manager.cpp129 int channel, in CreateHostapdConfig() argument
134 if (channel < 0) { in CreateHostapdConfig()
135 channel = kDefaultApChannel; in CreateHostapdConfig()
190 channel, in CreateHostapdConfig()
191 (channel <= 14) ? 'g' : 'a', in CreateHostapdConfig()
/frameworks/base/services/core/java/com/android/server/wm/
DAlertWindowNotification.java149 final NotificationChannel channel = in createNotificationChannel() local
151 channel.enableLights(false); in createNotificationChannel()
152 channel.enableVibration(false); in createNotificationChannel()
153 channel.setBlockableSystem(true); in createNotificationChannel()
154 channel.setGroup(sChannelGroup.getId()); in createNotificationChannel()
155 mNotificationManager.createNotificationChannel(channel); in createNotificationChannel()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/wificond/
DChannelSettings.java45 ChannelSettings channel = (ChannelSettings) rhs; in equals() local
46 if (channel == null) { in equals()
49 return frequency == channel.frequency; in equals()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java636 NotificationChannel channel = new NotificationChannel("v. noisy",
638 channel.enableVibration(true);
639 channel.setVibrationPattern(new long[] {
643 mNM.createNotificationChannel(channel);
699 NotificationChannel channel = new NotificationChannel("blue",
701 channel.enableLights(true);
702 channel.setLightColor(0xff0000ff);
703 mNM.createNotificationChannel(channel);
716 NotificationChannel channel = new NotificationChannel("red",
718 channel.enableLights(true);
[all …]

12345678