Home
last modified time | relevance | path

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

12345678910

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/apdu/
DApduSenderTest.java101 int channel = LogicalChannelMocker.mockOpenLogicalChannelResponse(mMockCi, "A1A1A19000"); in testSendEmptyCommands() local
102 LogicalChannelMocker.mockCloseLogicalChannel(mMockCi, channel); in testSendEmptyCommands()
112 verify(mMockCi).iccCloseLogicalChannel(eq(channel), any()); in testSendEmptyCommands()
132 int channel = LogicalChannelMocker.mockOpenLogicalChannelResponse(mMockCi, "9000"); in testSend() local
133 LogicalChannelMocker.mockSendToLogicalChannel(mMockCi, channel, "A1A1A19000"); in testSend()
134 LogicalChannelMocker.mockCloseLogicalChannel(mMockCi, channel); in testSend()
141 verify(mMockCi).iccTransmitApduLogicalChannel(eq(channel), eq(channel | 10), eq(1), eq(2), in testSend()
147 int channel = LogicalChannelMocker.mockOpenLogicalChannelResponse(mMockCi, "9000"); in testSendMultiApdus() local
148 LogicalChannelMocker.mockSendToLogicalChannel(mMockCi, channel, "A19000", "A29000", in testSendMultiApdus()
150 LogicalChannelMocker.mockCloseLogicalChannel(mMockCi, channel); in testSendMultiApdus()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/
DEuiccCardTest.java172 int channel = mockLogicalChannelResponses("BF3E065A041A2B3C4D9000"); in testLoadEidAndNotifyRegistrants() local
191 verifyStoreData(channel, "BF3E035C015A"); in testLoadEidAndNotifyRegistrants()
196 int channel = mockLogicalChannelResponses( in testGetAllProfiles() local
208 verifyStoreData(channel, "BF2D0D5C0B5A909192B79F709599BF76"); in testGetAllProfiles()
214 int channel = mockLogicalChannelResponses( in testFSuffix() local
225 verifyStoreData(channel, "BF2D0D5C0B5A909192B79F709599BF76"); in testFSuffix()
230 int channel = mockLogicalChannelResponses("BF2D8184A08181E37F" in testGetProfile() local
271 verifyStoreData(channel, "BF2D1BA00C5A0A896700000000004523015C0B5A909192B79F709599BF76"); in testGetProfile()
276 int channel = mockLogicalChannelResponses("BF32038001009000"); in testDisableProfile() local
283 verifyStoreData(channel, "BF3211A00C5A0A896700000000004523018101FF"); in testDisableProfile()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationChannelLogger.java44 default void logNotificationChannelCreated(@NonNull NotificationChannel channel, int uid, in logNotificationChannelCreated() argument
47 NotificationChannelEvent.getCreated(channel), in logNotificationChannelCreated()
48 channel, uid, pkg, 0, getLoggingImportance(channel)); in logNotificationChannelCreated() local
57 default void logNotificationChannelDeleted(@NonNull NotificationChannel channel, int uid, in logNotificationChannelDeleted() argument
60 NotificationChannelEvent.getDeleted(channel), in logNotificationChannelDeleted()
61 channel, uid, pkg, getLoggingImportance(channel), 0); in logNotificationChannelDeleted() local
72 default void logNotificationChannelModified(@NonNull NotificationChannel channel, int uid, in logNotificationChannelModified() argument
75 channel, uid, pkg, oldLoggingImportance, getLoggingImportance(channel)); in logNotificationChannelModified() local
124 @NonNull NotificationChannel channel, int uid, String pkg, in logNotificationChannel() argument
187 public static NotificationChannelEvent getCreated(@NonNull NotificationChannel channel) { in getCreated() argument
[all …]
DPreferencesHelper.java312 NotificationChannel channel = new NotificationChannel(id, in readXml() local
315 channel.populateFromXmlForRestore(parser, mContext); in readXml()
317 channel.populateFromXml(parser); in readXml()
319 channel.setImportanceLockedByCriticalDeviceFunction( in readXml()
321 channel.setImportanceLockedByOEM(r.oemLockedImportance); in readXml()
322 if (!channel.isImportanceLockedByOEM()) { in readXml()
323 if (r.oemLockedChannels.contains(channel.getId())) { in readXml()
324 channel.setImportanceLockedByOEM(true); in readXml()
328 channel.getConversationId() != null && in readXml()
329 channel.getConversationId().contains( in readXml()
[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/av/media/libaudioclient/tests/
Drecord_test_output_v1.0_ref_walleye.txt6 format(0x1), channel mask(0x10), channel count(1), sample rate(48000)
15 format(0x1), channel mask(0x10), channel count(1), sample rate(24000)
24 format(0x1), channel mask(0x10), channel count(1), sample rate(16000)
33 format(0x1), channel mask(0x10), channel count(1), sample rate(8000)
42 format(0x1), channel mask(0x10), channel count(1), sample rate(44100)
51 format(0x1), channel mask(0x10), channel count(1), sample rate(22050)
60 format(0x1), channel mask(0x10), channel count(1), sample rate(11025)
69 format(0x2), channel mask(0x10), channel count(1), sample rate(48000)
78 format(0x3), channel mask(0x10), channel count(1), sample rate(48000)
87 format(0x5), channel mask(0x10), channel count(1), sample rate(48000)
[all …]
Dtrack_test_output_v1.0_ref_walleye.txt6 format(1), channel mask(3), channel count(2)
17 format(1), channel mask(3), channel count(2)
28 format(1), channel mask(3), channel count(2)
39 format(1), channel mask(3), channel count(2)
50 format(1), channel mask(3), channel count(2)
61 format(1), channel mask(3), channel count(2)
72 format(1), channel mask(3), channel count(2)
83 format(2), channel mask(3), channel count(2)
94 format(3), channel mask(3), channel count(2)
105 format(5), channel mask(3), channel count(2)
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationRecordTest.java97 private NotificationChannel channel = field in NotificationRecordTest
144 channel.setSound(CUSTOM_SOUND, CUSTOM_ATTRIBUTES); in getNotification()
147 channel.setSound(null, null); in getNotification()
155 channel.setVibrationPattern(CUSTOM_CHANNEL_VIBRATION); in getNotification()
163 channel.setLightColor(Color.BLUE); in getNotification()
165 channel.enableLights(true); in getNotification()
167 channel.enableLights(false); in getNotification()
277 channel.setSound(CUSTOM_SOUND, CUSTOM_ATTRIBUTES); in testSound_default_upgradeUsesChannel()
283 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel); in testSound_default_upgradeUsesChannel()
327 channel.enableVibration(true); in testVibration_custom_upgradeUsesChannel()
[all …]
DPreferencesHelperTest.java304 for (NotificationChannel channel : channels) { in findChannel()
305 if (channel.getId().equals(id)) { in findChannel()
306 return channel; in findChannel()
529 NotificationChannel channel = in testBackupXml_backupCanonicalizedSoundUri() local
531 channel.setSound(SOUND_URI, mAudioAttributes); in testBackupXml_backupCanonicalizedSoundUri()
532 mHelper.createNotificationChannel(PKG_N_MR1, UID_N_MR1, channel, true, false); in testBackupXml_backupCanonicalizedSoundUri()
535 UserHandle.USER_SYSTEM, channel.getId()); in testBackupXml_backupCanonicalizedSoundUri()
557 NotificationChannel channel = in testRestoreXml_withExistentCanonicalizedSoundUri() local
559 channel.setSound(SOUND_URI, mAudioAttributes); in testRestoreXml_withExistentCanonicalizedSoundUri()
560 mHelper.createNotificationChannel(PKG_N_MR1, UID_N_MR1, channel, true, false); in testRestoreXml_withExistentCanonicalizedSoundUri()
[all …]
DZenModeFilteringTest.java211 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testConversation_allAllowed() local
212 channel.setConversationId("parent", "me, work"); in testConversation_allAllowed()
214 NotificationRecord r = getConversationRecord(channel, sbn); in testConversation_allAllowed()
229 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testConversation_importantAllowed_isImportant() local
230 channel.setConversationId("parent", "me, work"); in testConversation_importantAllowed_isImportant()
231 channel.setImportantConversation(true); in testConversation_importantAllowed_isImportant()
233 NotificationRecord r = getConversationRecord(channel, sbn); in testConversation_importantAllowed_isImportant()
247 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testConversation_importantAllowed_isNotImportant() local
248 channel.setConversationId("parent", "me, work"); in testConversation_importantAllowed_isNotImportant()
250 NotificationRecord r = getConversationRecord(channel, sbn); in testConversation_importantAllowed_isNotImportant()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationChannelHelper.java42 NotificationChannel channel) { in createConversationChannelIfNeeded() argument
43 if (!TextUtils.isEmpty(channel.getConversationId())) { in createConversationChannelIfNeeded()
44 return channel; in createConversationChannelIfNeeded()
51 return channel; in createConversationChannelIfNeeded()
57 channel.setName(getName(entry)); in createConversationChannelIfNeeded()
59 pkg, appUid, entry.getSbn().getKey(), channel, in createConversationChannelIfNeeded()
61 channel = notificationManager.getConversationNotificationChannel( in createConversationChannelIfNeeded()
63 channel.getId(), false, conversationId); in createConversationChannelIfNeeded()
67 return channel; in createConversationChannelIfNeeded()
/frameworks/av/media/libeffects/dynamicsproc/
DEffectDynamicsProcessing.cpp384 int32_t channel) { in DP_getChannel() argument
388 dp_fx::DPChannel *pChannel = pContext->mPDynamics->getChannel(channel); in DP_getChannel()
389 ALOGE_IF(pChannel == NULL, "DPChannel NULL. invalid channel %d", channel); in DP_getChannel()
393 static dp_fx::DPEq* DP_getEq(DynamicsProcessingContext *pContext, int32_t channel, in DP_getEq() argument
395 dp_fx::DPChannel *pChannel = DP_getChannel(pContext, channel); in DP_getEq()
405 static dp_fx::DPEqBand* DP_getEqBand(DynamicsProcessingContext *pContext, int32_t channel, in DP_getEqBand() argument
407 dp_fx::DPEq *pEq = DP_getEq(pContext, channel, eqType); in DP_getEqBand()
416 static dp_fx::DPMbc* DP_getMbc(DynamicsProcessingContext *pContext, int32_t channel) { in DP_getMbc() argument
417 dp_fx::DPChannel * pChannel = DP_getChannel(pContext, channel); in DP_getMbc()
426 static dp_fx::DPMbcBand* DP_getMbcBand(DynamicsProcessingContext *pContext, int32_t channel, in DP_getMbcBand() argument
[all …]
/frameworks/native/services/vr/bufferhubd/
Dbuffer_hub.cpp65 for (const auto& channel : channels) { in DumpState() local
66 if (channel->channel_type() == BufferHubChannel::kProducerType) { in DumpState()
67 BufferHubChannel::BufferInfo info = channel->GetBufferInfo(); in DumpState()
100 if (channel->channel_type() == BufferHubChannel::kDetachedBufferType) { in DumpState()
101 BufferHubChannel::BufferInfo info = channel->GetBufferInfo(); in DumpState()
148 for (const auto& channel : channels) { in DumpState() local
149 if (channel->channel_type() == BufferHubChannel::kProducerQueueType) { in DumpState()
150 BufferHubChannel::BufferInfo info = channel->GetBufferInfo(); in DumpState()
181 for (const auto& channel : channels) { in DumpState() local
182 if (channel->channel_type() == BufferHubChannel::kConsumerQueueType) { in DumpState()
[all …]
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBidirectionalAsyncChannelServer.java50 AsyncChannel channel = mClients.get(msg.replyTo); in BidirectionalAsyncChannelServer()
53 if (channel != null) { in BidirectionalAsyncChannelServer()
55 channel.replyToMessage(msg, in BidirectionalAsyncChannelServer()
59 channel = new AsyncChannel(); in BidirectionalAsyncChannelServer()
60 mClients.put(msg.replyTo, channel); in BidirectionalAsyncChannelServer()
61 channel.connected(context, this, msg.replyTo); in BidirectionalAsyncChannelServer()
62 channel.replyToMessage(msg, AsyncChannel.CMD_CHANNEL_FULLY_CONNECTED, in BidirectionalAsyncChannelServer()
67 channel.disconnect(); in BidirectionalAsyncChannelServer()
/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 …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogController.kt163 group.channels.asSequence().filterNot { channel -> in <lambda>() method
164 channel.isImportanceLockedByOEM || in <lambda>()
165 channel.importance == IMPORTANCE_NONE || in <lambda>()
166 channel.isImportanceLockedByCriticalDeviceFunction in <lambda>()
210 fun proposeEditForChannel(channel: NotificationChannel, @Importance edit: Int) { in <lambda>()
211 if (channel.importance == edit) { in <lambda>()
212 edits.remove(channel) in <lambda>()
214 edits[channel] = edit in <lambda>()
261 private fun setChannelImportance(channel: NotificationChannel, importance: Int) { in <lambda>()
263 channel.importance = importance in <lambda>()
[all …]
DChannelEditorListView.kt70 fun highlightChannel(channel: NotificationChannel) { in <lambda>()
73 if (row.channel == channel) { in <lambda>()
113 for (channel in channels) { in <lambda>() constant
114 addChannelRow(channel, inflater) in <lambda>()
119 private fun addChannelRow(channel: NotificationChannel, inflater: LayoutInflater) { in <lambda>()
122 row.channel = channel in <lambda>()
168 var channel: NotificationChannel? = null variable
181 channel?.let { in onFinishInflate()
205 val nc = channel ?: return in updateViews()
223 val importance = channel?.importance ?: 0 in updateImportance()
/frameworks/native/libs/input/
DIInputFlinger.cpp48 virtual void registerInputChannel(const sp<InputChannel>& channel) { in registerInputChannel() argument
51 channel->write(data); in registerInputChannel()
55 virtual void unregisterInputChannel(const sp<InputChannel>& channel) { in unregisterInputChannel() argument
58 channel->write(data); in unregisterInputChannel()
85 sp<InputChannel> channel = InputChannel::read(data); in onTransact() local
86 registerInputChannel(channel); in onTransact()
91 sp<InputChannel> channel = InputChannel::read(data); in onTransact() local
92 unregisterInputChannel(channel); in onTransact()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/apdu/
DApduSender.java130 int channel = openChannelResponse.getChannel(); in send()
132 if (channel == IccOpenLogicalChannelResponse.INVALID_CHANNEL in send()
144 RequestBuilder builder = new RequestBuilder(channel, mSupportExtendedApdu); in send()
154 closeAndReturn(channel, null /* response */, requestException, resultCallback, in send()
181 getCompleteResponse(command.channel, response, null /* responseBuilder */, in sendCommand()
188 closeAndReturn(command.channel, null /* response */, in sendCommand()
202 closeAndReturn(command.channel, fullResponse.payload, in sendCommand()
220 int channel, in getCompleteResponse() argument
241 new ApduCommand(channel, 0 /* cls */, INS_GET_MORE_RESPONSE, 0 /* p1 */, in getCompleteResponse()
247 channel, response, resultBuilder, resultCallback, handler); in getCompleteResponse()
[all …]
DApduCommand.java26 public final int channel; field in ApduCommand
47 ApduCommand(int channel, int cla, int ins, int p1, int p2, int p3, String cmdHex) { in ApduCommand() argument
48 this.channel = channel; in ApduCommand()
59 return "ApduCommand(channel=" + channel + ", cla=" + cla + ", ins=" + ins + ", p1=" + p1 in toString()
/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()
/frameworks/native/libs/vr/libpdx/private/pdx/
Dservice.h205 int flags, const std::shared_ptr<Channel>& channel, int* channel_id);
212 Service* service, int flags, const std::shared_ptr<Channel>& channel,
233 std::shared_ptr<Channel>* channel) const;
240 std::shared_ptr<Channel>* channel) const;
248 std::shared_ptr<C>* channel) const { in CheckChannel() argument
251 CheckChannel(ref, channel ? &base_pointer : nullptr); in CheckChannel()
252 if (channel) in CheckChannel()
253 *channel = std::static_pointer_cast<C>(base_pointer); in CheckChannel()
259 std::shared_ptr<C>* channel) const { in CheckChannel() argument
262 CheckChannel(service, ref, channel ? &base_pointer : nullptr); in CheckChannel()
[all …]
/frameworks/native/libs/vr/libpdx/
Dservice.cpp16 return info.channel ? info.channel->shared_from_this() in GetFromMessageInfo()
373 int flags, const std::shared_ptr<Channel>& channel, int* channel_id) { in PushChannel() argument
376 return svc->PushChannel(this, flags, channel, channel_id); in PushChannel()
383 Service* service, int flags, const std::shared_ptr<Channel>& channel, in PushChannel() argument
386 return service->PushChannel(this, flags, channel, channel_id); in PushChannel()
390 std::shared_ptr<Channel>* channel) const { in CheckChannel()
393 return svc->CheckChannel(this, ref, channel); in CheckChannel()
400 std::shared_ptr<Channel>* channel) const { in CheckChannel()
402 return service->CheckChannel(this, ref, channel); in CheckChannel()
474 const std::shared_ptr<Channel>& channel) { in SetChannel() argument
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DAlertWindowNotification.java158 NotificationChannel channel = mNotificationManager.getNotificationChannel(mNotificationTag); in createNotificationChannel() local
159 if (channel != null) { in createNotificationChannel()
162 channel = new NotificationChannel(mNotificationTag, nameChannel, IMPORTANCE_MIN); in createNotificationChannel()
163 channel.enableLights(false); in createNotificationChannel()
164 channel.enableVibration(false); in createNotificationChannel()
165 channel.setBlockable(true); in createNotificationChannel()
166 channel.setGroup(sChannelGroup.getId()); in createNotificationChannel()
167 channel.setBypassDnd(true); in createNotificationChannel()
168 mNotificationManager.createNotificationChannel(channel); in createNotificationChannel()
/frameworks/base/wifi/tests/src/android/net/wifi/p2p/
DWifiP2pManagerTest.java65 try (WifiP2pManager.Channel channel = new WifiP2pManager.Channel(mContextMock, in testChannelFinalize() argument
67 leakageDetectorRule.assertUnreleasedResourceCount(channel, 1); in testChannelFinalize()
77 WifiP2pManager.Channel channel = new WifiP2pManager.Channel(mContextMock, in testChannelClose() local
80 channel.close(); in testChannelClose()
83 leakageDetectorRule.assertUnreleasedResourceCount(channel, 0); in testChannelClose()

12345678910