Home
last modified time | relevance | path

Searched refs:channel (Results 1 – 25 of 247) 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/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.java317 NotificationChannel channel = new NotificationChannel(id, in readXml() local
320 channel.populateFromXmlForRestore(parser, mContext); in readXml()
322 channel.populateFromXml(parser); in readXml()
324 channel.setImportanceLockedByCriticalDeviceFunction( in readXml()
326 channel.setImportanceLockedByOEM(r.oemLockedImportance); in readXml()
327 if (!channel.isImportanceLockedByOEM()) { in readXml()
328 if (r.oemLockedChannels.contains(channel.getId())) { in readXml()
329 channel.setImportanceLockedByOEM(true); in readXml()
333 if (isShortcutOk(channel) && isDeletionOk(channel) in readXml()
334 && !channel.isSoundMissing()) { in readXml()
[all …]
DNotificationChannelLoggerImpl.java36 NotificationChannel channel, int uid, String pkg, in logNotificationChannel() argument
42 /* int32 channel_id_hash */ NotificationChannelLogger.getIdHash(channel), in logNotificationChannel()
45 /* bool is_conversation */ channel.isConversation(), in logNotificationChannel()
47 NotificationChannelLogger.getConversationIdHash(channel), in logNotificationChannel()
48 /* bool is_conversation_demoted */ channel.isDemoted(), in logNotificationChannel()
49 /* bool is_conversation_priority */ channel.isImportantConversation()); in logNotificationChannel()
/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/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.java101 private NotificationChannel channel = field in NotificationRecordTest
149 channel.setSound(CUSTOM_SOUND, CUSTOM_ATTRIBUTES); in getNotification()
152 channel.setSound(null, null); in getNotification()
160 channel.setVibrationPattern(CUSTOM_CHANNEL_VIBRATION); in getNotification()
168 channel.setLightColor(Color.BLUE); in getNotification()
170 channel.enableLights(true); in getNotification()
172 channel.enableLights(false); in getNotification()
219 channel.setVibrationPattern(CUSTOM_CHANNEL_VIBRATION); in getInsistentNotification()
302 channel.setSound(CUSTOM_SOUND, CUSTOM_ATTRIBUTES); in testSound_default_upgradeUsesChannel()
308 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channel); in testSound_default_upgradeUsesChannel()
[all …]
DPreferencesHelperTest.java360 for (NotificationChannel channel : channels) { in findChannel()
361 if (channel.getId().equals(id)) { in findChannel()
362 return channel; in findChannel()
381 NotificationChannel channel = new NotificationChannel(id, name, importance); in createNotificationChannel() local
382 channel.setSound(SOUND_URI, Notification.AUDIO_ATTRIBUTES_DEFAULT); in createNotificationChannel()
383 return channel; in createNotificationChannel()
592 NotificationChannel channel = in testBackupXml_backupCanonicalizedSoundUri() local
594 channel.setSound(SOUND_URI, mAudioAttributes); in testBackupXml_backupCanonicalizedSoundUri()
595 mHelper.createNotificationChannel(PKG_N_MR1, UID_N_MR1, channel, true, false); in testBackupXml_backupCanonicalizedSoundUri()
598 UserHandle.USER_SYSTEM, channel.getId()); in testBackupXml_backupCanonicalizedSoundUri()
[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, channel, in createConversationChannelIfNeeded()
61 channel = notificationManager.getConversationNotificationChannel( in createConversationChannelIfNeeded()
63 channel.getId(), false, conversationId); in createConversationChannelIfNeeded()
67 return channel; in createConversationChannelIfNeeded()
/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/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/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/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/services/core/java/com/android/server/
DPersistentDataBlockService.java308 FileChannel channel; in computeAndWriteDigestLocked() local
310 channel = getBlockOutputChannel(); in computeAndWriteDigestLocked()
320 channel.write(buf); in computeAndWriteDigestLocked()
321 channel.force(true); in computeAndWriteDigestLocked()
377 FileChannel channel = getBlockOutputChannel(); in formatPartitionLocked() local
387 channel.write(buf); in formatPartitionLocked()
388 channel.force(true); in formatPartitionLocked()
394 channel.write(buf); in formatPartitionLocked()
395 channel.force(true); in formatPartitionLocked()
399 channel.position(channel.position() + TEST_MODE_RESERVED_SIZE); in formatPartitionLocked()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogController.kt161 group.channels.asSequence().filterNot { channel -> in <lambda>() method
162 channel.isImportanceLockedByOEM || in <lambda>()
163 channel.importance == IMPORTANCE_NONE || in <lambda>()
164 channel.isImportanceLockedByCriticalDeviceFunction in <lambda>()
208 fun proposeEditForChannel(channel: NotificationChannel, @Importance edit: Int) { in <lambda>()
209 if (channel.importance == edit) { in <lambda>()
210 edits.remove(channel) in <lambda>()
212 edits[channel] = edit in <lambda>()
259 private fun setChannelImportance(channel: NotificationChannel, importance: Int) { in <lambda>()
261 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/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/apdu/
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()
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 …]
/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/base/services/core/java/com/android/server/wm/
DAlertWindowNotification.java157 NotificationChannel channel = mNotificationManager.getNotificationChannel(mNotificationTag); in createNotificationChannel() local
158 if (channel != null) { in createNotificationChannel()
161 channel = new NotificationChannel(mNotificationTag, nameChannel, IMPORTANCE_MIN); in createNotificationChannel()
162 channel.enableLights(false); in createNotificationChannel()
163 channel.enableVibration(false); in createNotificationChannel()
164 channel.setBlockable(true); in createNotificationChannel()
165 channel.setGroup(sChannelGroup.getId()); in createNotificationChannel()
166 channel.setBypassDnd(true); in createNotificationChannel()
167 mNotificationManager.createNotificationChannel(channel); in createNotificationChannel()
/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 …]

12345678910