Home
last modified time | relevance | path

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

1234567

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DRttServiceTest.java108 BidirectionalAsyncChannel channel = new BidirectionalAsyncChannel(); in connectChannel() local
109 channel.connect(mLooper.getLooper(), mRttServiceImpl.getMessenger(null, new int[1]), in connectChannel()
112 channel.assertConnected(); in connectChannel()
113 return channel; in connectChannel()
116 private void sendRangingRequestFailed(BidirectionalAsyncChannel channel, Handler handler, in sendRangingRequestFailed() argument
118 Message message = sendRangingRequest(channel, handler, clientKey, params); in sendRangingRequestFailed()
125 private Message sendRangingRequest(BidirectionalAsyncChannel channel, Handler handler, in sendRangingRequest() argument
131 channel.sendMessage(message); in sendRangingRequest()
139 private void sendEnableResponderSucceed(BidirectionalAsyncChannel channel, in sendEnableResponderSucceed() argument
141 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.java43 NotificationChannel channel = in testWriteToParcel() local
46 channel.writeToParcel(parcel, 0); in testWriteToParcel()
49 assertEquals(channel, channel1); in testWriteToParcel()
54 NotificationChannel channel = new NotificationChannel("a", "ab", IMPORTANCE_DEFAULT); in testSystemBlockable() local
55 assertEquals(false, channel.isBlockableSystem()); in testSystemBlockable()
56 channel.setBlockableSystem(true); in testSystemBlockable()
57 assertEquals(true, channel.isBlockableSystem()); in testSystemBlockable()
62 NotificationChannel channel = new NotificationChannel("a", "ab", IMPORTANCE_DEFAULT); in testEmptyVibration_noException() local
63 channel.setVibrationPattern(new long[0]); in testEmptyVibration_noException()
68 channel.writeXml(serializer); in testEmptyVibration_noException()
DRankingHelperTest.java456 NotificationChannel channel = in testBackupXml_backupCanonicalizedSoundUri() local
458 channel.setSound(SOUND_URI, mAudioAttributes); in testBackupXml_backupCanonicalizedSoundUri()
459 mHelper.createNotificationChannel(PKG, UID, channel, true); in testBackupXml_backupCanonicalizedSoundUri()
461 ByteArrayOutputStream baos = writeXmlAndPurge(PKG, UID, true, channel.getId()); in testBackupXml_backupCanonicalizedSoundUri()
482 NotificationChannel channel = in testRestoreXml_withExistentCanonicalizedSoundUri() local
484 channel.setSound(SOUND_URI, mAudioAttributes); in testRestoreXml_withExistentCanonicalizedSoundUri()
485 mHelper.createNotificationChannel(PKG, UID, channel, true); in testRestoreXml_withExistentCanonicalizedSoundUri()
486 ByteArrayOutputStream baos = writeXmlAndPurge(PKG, UID, true, channel.getId()); in testRestoreXml_withExistentCanonicalizedSoundUri()
491 PKG, UID, channel.getId(), false); in testRestoreXml_withExistentCanonicalizedSoundUri()
503 NotificationChannel channel = in testRestoreXml_withNonExistentCanonicalizedSoundUri() local
[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 …]
DNotificationIntrusivenessExtractorTest.java41 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testNonIntrusive() local
49 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testNonIntrusive()
56 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testIntrusive_fillScreen() local
67 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testIntrusive_fillScreen()
74 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testOldNotificationsNotIntrusive() local
86 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testOldNotificationsNotIntrusive()
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.cpp69 for (const auto& channel : channels) { in DumpState() local
70 if (channel->channel_type() == BufferHubChannel::kProducerType) { in DumpState()
71 BufferHubChannel::BufferInfo info = channel->GetBufferInfo(); in DumpState()
121 for (const auto& channel : channels) { in DumpState() local
122 if (channel->channel_type() == BufferHubChannel::kProducerQueueType) { in DumpState()
123 BufferHubChannel::BufferInfo info = channel->GetBufferInfo(); in DumpState()
154 for (const auto& channel : channels) { in DumpState() local
155 if (channel->channel_type() == BufferHubChannel::kConsumerQueueType) { in DumpState()
156 BufferHubChannel::BufferInfo info = channel->GetBufferInfo(); in DumpState()
174 for (const auto& channel : channels) { in DumpState() local
[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/base/services/core/java/com/android/server/notification/
DRankingHelper.java228 NotificationChannel channel = new NotificationChannel(id, in readXml() local
231 channel.populateFromXmlForRestore(parser, mContext); in readXml()
233 channel.populateFromXml(parser); in readXml()
235 r.channels.put(id, channel); in readXml()
339 NotificationChannel channel; in createDefaultChannelIfNeeded() local
340 channel = new NotificationChannel( in createDefaultChannelIfNeeded()
344 channel.setBypassDnd(r.priority == Notification.PRIORITY_MAX); in createDefaultChannelIfNeeded()
345 channel.setLockscreenVisibility(r.visibility); in createDefaultChannelIfNeeded()
347 channel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE); in createDefaultChannelIfNeeded()
350 channel.lockFields(NotificationChannel.USER_LOCKED_PRIORITY); in createDefaultChannelIfNeeded()
[all …]
/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()
46 auto channel = channels_.find(handle); in GetChannelData() local
47 return channel != channels_.end() ? &channel->second : nullptr; in GetChannelData()
Dservice_framework_tests.cpp98 const std::shared_ptr<Channel>& channel) override { in OnChannelClose() argument
99 if (test_channel_ == channel) in OnChannelClose()
156 std::shared_ptr<TestChannel> channel; in HandleMessage() local
162 message.CheckChannel<TestChannel>(ref, &channel); in HandleMessage()
166 if (channel != nullptr) in HandleMessage()
167 REPLY_MESSAGE_RETURN(message, channel->channel_id(), {}); in HandleMessage()
183 auto channel = std::make_shared<TestChannel>(-1); in HandleMessage() local
185 message.PushChannel(0, channel, &channel->channel_id_); in HandleMessage()
193 auto channel = std::make_shared<TestChannel>(-1); in HandleMessage() local
195 other_service_.get(), 0, channel, &channel->channel_id_); in HandleMessage()
[all …]
/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/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/base/wifi/tests/src/android/net/wifi/p2p/
DWifiP2pManagerTest.java62 WifiP2pManager.Channel channel = new WifiP2pManager.Channel(mContextMock, in testChannelFinalize() local
65 leakageDetectorRule.assertUnreleasedResourceCount(channel, 1); in testChannelFinalize()
74 WifiP2pManager.Channel channel = new WifiP2pManager.Channel(mContextMock, in testChannelClose() local
77 channel.close(); in testChannelClose()
80 leakageDetectorRule.assertUnreleasedResourceCount(channel, 0); in testChannelClose()
/frameworks/native/libs/vr/libpdx/
Dservice.cpp16 return info.channel ? info.channel->shared_from_this() in GetFromMessageInfo()
379 int flags, const std::shared_ptr<Channel>& channel, int* channel_id) { in PushChannel() argument
382 return svc->PushChannel(this, flags, channel, channel_id); in PushChannel()
389 Service* service, int flags, const std::shared_ptr<Channel>& channel, in PushChannel() argument
392 return service->PushChannel(this, flags, channel, channel_id); in PushChannel()
396 std::shared_ptr<Channel>* channel) const { in CheckChannel()
399 return svc->CheckChannel(this, ref, channel); in CheckChannel()
406 std::shared_ptr<Channel>* channel) const { in CheckChannel()
408 return service->CheckChannel(this, ref, channel); in CheckChannel()
480 const std::shared_ptr<Channel>& channel) { in SetChannel() argument
[all …]
/frameworks/support/compat/java/android/support/v4/graphics/
DTypefaceCompatUtil.java82 FileChannel channel = fis.getChannel(); in mmap() local
83 final long size = channel.size(); in mmap()
84 return channel.map(FileChannel.MapMode.READ_ONLY, 0, size); in mmap()
99 FileChannel channel = fis.getChannel(); in mmap() local
100 final long size = channel.size(); in mmap()
101 return channel.map(FileChannel.MapMode.READ_ONLY, 0, size); in mmap()
/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/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/net/wifi/libwifi_system/
Dhostapd_manager.cpp133 int channel, in CreateHostapdConfig() argument
138 if (channel < 0) { in CreateHostapdConfig()
139 channel = kDefaultApChannel; in CreateHostapdConfig()
194 channel, in CreateHostapdConfig()
195 (channel <= 14) ? 'g' : 'a', in CreateHostapdConfig()

1234567