/aosp14/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationChannelLogger.java | 47 NotificationChannelEvent.getCreated(channel), in logNotificationChannelCreated() 48 channel, uid, pkg, 0, getLoggingImportance(channel)); in logNotificationChannelCreated() local 60 NotificationChannelEvent.getDeleted(channel), in logNotificationChannelDeleted() 61 channel, uid, pkg, getLoggingImportance(channel), 0); in logNotificationChannelDeleted() local 75 channel, uid, pkg, oldLoggingImportance, getLoggingImportance(channel)); in logNotificationChannelModified() local 188 return channel.getConversationId() != null in getCreated() 194 return channel.getConversationId() != null in getDeleted() 214 return SmallHash.hash(channel.getId()); in getIdHash() 221 return SmallHash.hash(channel.getConversationId()); in getConversationIdHash() 236 return getLoggingImportance(channel, channel.getImportance()); in getLoggingImportance() [all …]
|
H A D | PreferencesHelper.java | 412 if (isShortcutOk(channel) && isDeletionOk(channel)) { in restoreChannel() 565 r.channels.put(channel.getId(), channel); in createDefaultChannelIfNeededLocked() local 1023 channel.setOriginalImportance(channel.getImportance()); in createNotificationChannel() 1032 r.channels.put(channel.getId(), channel); in createNotificationChannel() local 1050 channel.unlockFields(channel.getUserLockedFields()); in clearLockedFieldsLocked() 1062 if (channel == null || channel.isDeleted()) { in unlockNotificationChannelImportance() 1083 if (channel == null || channel.isDeleted()) { in updateNotificationChannel() 1270 return channel; in getConversationNotificationChannel() 1725 if (channelIsLiveLocked(r, channel) && channel.canBypassDnd()) { in getNotificationChannelsBypassingDnd() 1825 if (channelIsLiveLocked(r, channel) && channel.canBypassDnd()) { in updateCurrentUserHasChannelsBypassingDnd() [all …]
|
H A D | NotificationChannelLoggerImpl.java | 36 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()
|
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | colorspace.cpp | 30 uint8 channel[4]; member 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() 162 r = color_in.channel[kRed]; in JNI_COLORSPACE_METHOD() 166 color_out.channel[kRed] = in JNI_COLORSPACE_METHOD() 170 color_out.channel[kBlue] = in JNI_COLORSPACE_METHOD() [all …]
|
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | NotificationRecordTest.java | 104 private NotificationChannel channel = field in NotificationRecordTest 156 channel.setSound(null, null); in getNotification() 174 channel.enableLights(true); in getNotification() 176 channel.enableLights(false); in getNotification() 358 channel.enableVibration(true); in testVibration_custom_upgradeUsesChannel() 371 channel.enableVibration(true); in testVibration_insistent_createsInsistentVibrationEffect() 507 assertEquals(channel.getImportance(), in testLogMaker() 602 channel.lockFields(channel.USER_LOCKED_IMPORTANCE); in testLogMakerImportanceUser() 624 channel.lockFields(channel.USER_LOCKED_IMPORTANCE); in testLogMakerImportanceMulti() 860 channel.setSound(null, null); in testCalculateGrantableUris_PappProvided() [all …]
|
H A D | PreferencesHelperTest.java | 434 return channel; in findChannel() 1840 channel.enableLights(true); in testUpdate() 1841 channel.setBypassDnd(true); in testUpdate() 2215 channelMap.put(channel.getId(), channel); in testGetDeletedChannels() local 2626 channel.getId(), channel.getName(), NotificationManager.IMPORTANCE_HIGH); in testCreateDeletedChannel() 2633 compareChannels(channel, in testCreateDeletedChannel() 2670 channel.getId(), channel.getName(), NotificationManager.IMPORTANCE_HIGH); in testCreateChannel_alreadyExists() 2682 compareChannels(channel, in testCreateChannel_alreadyExists() 5007 channel.setDemoted(true); in testGetConversations_noDemoted() 5029 channel.setConversationId(messages.getId(), channel.getName().toString()); in testGetConversations() [all …]
|
H A D | NotificationIntrusivenessExtractorTest.java | 43 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testNonIntrusive() local 51 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testNonIntrusive() 58 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testIntrusive_fillScreen() local 70 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testIntrusive_fillScreen() 77 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testOldNotificationsNotIntrusive() local 90 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testOldNotificationsNotIntrusive()
|
H A D | ImportanceExtractorTest.java | 62 private NotificationRecord getNotificationRecord(NotificationChannel channel) { in getNotificationRecord() argument 72 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecord() 85 NotificationChannel channel = in testAppPreferenceChannelNone() local 88 NotificationRecord r = getNotificationRecord(channel); in testAppPreferenceChannelNone() 102 NotificationChannel channel = in testAppPreferenceChannelPreference() local 105 NotificationRecord r = getNotificationRecord(channel); in testAppPreferenceChannelPreference()
|
H A D | ZenModeFilteringTest.java | 253 channel.setConversationId("parent", "me, work"); in testConversation_allAllowed() 255 NotificationRecord r = getConversationRecord(channel, sbn); in testConversation_allAllowed() 271 channel.setConversationId("parent", "me, work"); in testConversation_importantAllowed_isImportant() 272 channel.setImportantConversation(true); in testConversation_importantAllowed_isImportant() 274 NotificationRecord r = getConversationRecord(channel, sbn); in testConversation_importantAllowed_isImportant() 289 channel.setConversationId("parent", "me, work"); in testConversation_importantAllowed_isNotImportant() 291 NotificationRecord r = getConversationRecord(channel, sbn); in testConversation_importantAllowed_isNotImportant() 306 channel.setConversationId("parent", "me, work"); in testConversation_noneAllowed_notCallOrMsg() 308 NotificationRecord r = getConversationRecord(channel, sbn); in testConversation_noneAllowed_notCallOrMsg() 323 channel.setConversationId("parent", "me, work"); in testConversation_noneAllowed_callAllowed() [all …]
|
H A D | BadgeExtractorTest.java | 69 NotificationChannel channel = new NotificationChannel("a", "a", importanceHigh); in getNotificationRecord() local 70 channel.setShowBadge(showBadge); in getNotificationRecord() 71 when(mConfig.getNotificationChannel(mPkg, mUid, "a", false)).thenReturn(channel); in getNotificationRecord() 82 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecord() 87 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_UNSPECIFIED); in getNotificationRecordWithBubble() local 88 channel.setShowBadge(/* showBadge */ true); in getNotificationRecordWithBubble() 89 when(mConfig.getNotificationChannel(mPkg, mUid, "a", false)).thenReturn(channel); in getNotificationRecordWithBubble() 113 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in getNotificationRecordWithBubble() 119 channel.setShowBadge(/* showBadge */ true); in getNotificationRecordWithMedia() 120 when(mConfig.getNotificationChannel(mPkg, mUid, "a", false)).thenReturn(channel); in getNotificationRecordWithMedia() [all …]
|
H A D | NotificationChannelExtractorTest.java | 58 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testExtractsUpdatedChannel() local 65 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testExtractsUpdatedChannel() 84 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testInvalidShortcutFlagEnabled_looksUpCorrectChannel() local 92 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testInvalidShortcutFlagEnabled_looksUpCorrectChannel() 112 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testInvalidShortcutFlagDisabled_looksUpCorrectChannel() local 120 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testInvalidShortcutFlagDisabled_looksUpCorrectChannel()
|
/aosp14/frameworks/base/omapi/aidl/vts/functional/omapi/ |
H A D | VtsHalOmapiSeServiceV1_TargetTest.cpp | 75 res = channel->getSelectResponse(&selectResponse); in testSelectableAid() 79 if (channel != nullptr) channel->close(); in testSelectableAid() 105 if (channel != nullptr) channel->close(); in testNonSelectableAid() 164 res = channel->getSelectResponse(&selectResponse); in internalTransmitApdu() 168 res = channel->transmit(apdu, &transmitResponse); in internalTransmitApdu() 169 if (channel != nullptr) channel->close(); in internalTransmitApdu() 386 if (channel != nullptr) channel->close(); in TEST_P() 389 if (channel != nullptr) { in TEST_P() 418 if (channel != nullptr) channel->close(); in TEST_P() 421 if (channel != nullptr) { in TEST_P() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | NotificationChannelHelper.java | 42 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()
|
/aosp14/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/ |
H A D | BidirectionalAsyncChannelServer.java | 50 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()
|
/aosp14/frameworks/base/omapi/aidl/vts/functional/AccessControlApp/ |
H A D | VtsHalOmapiSeAccessControlTestCases.cpp | 105 ASSERT_NE(channel, nullptr) << "Could not open channel"; in testSelectableAid() 107 res = channel->getSelectResponse(&selectResponse); in testSelectableAid() 111 if (channel != nullptr) channel->close(); in testSelectableAid() 145 if (channel != nullptr) channel->close(); in testUnauthorisedAid() 181 ASSERT_NE(channel, nullptr) << "Could not open channel"; in testTransmitAPDU() 183 res = channel->getSelectResponse(&selectResponse); in testTransmitAPDU() 191 res = channel->transmit(apdu, &transmitResponse); in testTransmitAPDU() 194 if (channel != nullptr) channel->close(); in testTransmitAPDU() 228 res = channel->getSelectResponse(&selectResponse); in testUnauthorisedAPDU() 236 res = channel->transmit(apdu, &transmitResponse); in testUnauthorisedAPDU() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
H A D | ChannelEditorDialogController.kt | 163 channel.importance == IMPORTANCE_NONE || 209 if (channel.importance == edit) { 210 edits.remove(channel) 212 edits[channel] = edit 261 channel.importance = importance 270 for ((channel, importance) in edits) { 271 if (channel.importance != importance) { 272 setChannelImportance(channel, importance) 284 onSettingsClickListener?.onClick(sender, channel, appUid!!) 309 for (channel in providedChannels) { [all …]
|
H A D | ChannelEditorListView.kt | 70 fun highlightChannel(channel: NotificationChannel) { 73 if (row.channel == channel) { 113 for (channel in channels) { 114 addChannelRow(channel, inflater) 119 private fun addChannelRow(channel: NotificationChannel, inflater: LayoutInflater) { 122 row.channel = channel 168 var channel: NotificationChannel? = null 181 channel?.let { 205 val nc = channel ?: return 223 val importance = channel?.importance ?: 0
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | PersistentDataBlockService.java | 319 FileChannel channel; in computeAndWriteDigestLocked() local 398 channel.write(buf); in formatPartitionLocked() 399 channel.force(true); in formatPartitionLocked() 405 channel.write(buf); in formatPartitionLocked() 406 channel.force(true); in formatPartitionLocked() 410 channel.position(channel.position() + TEST_MODE_RESERVED_SIZE); in formatPartitionLocked() 414 channel.write(buf); in formatPartitionLocked() 415 channel.force(true); in formatPartitionLocked() 421 channel.write(buf); in formatPartitionLocked() 422 channel.force(true); in formatPartitionLocked() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | NotificationChannelTest.java | 162 mName.set(channel, longString); in testLongStringFields() 165 mId.set(channel, longString); in testLongStringFields() 168 mDesc.set(channel, longString); in testLongStringFields() 171 mParentId.set(channel, longString); in testLongStringFields() 174 mGroup.set(channel, longString); in testLongStringFields() 177 mConversationId.set(channel, longString); in testLongStringFields() 187 channel.writeToParcel(parcel, 0); in testLongStringFields() 209 channel.setVibrationPattern(new long[65550/2]); in testLongAlertFields() 212 channel.writeToParcel(parcel, 0); in testLongAlertFields() 249 channel.restoreSoundUri( in testRestoreSoundUri_customLookup() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | AlertWindowNotification.java | 157 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()
|
/aosp14/frameworks/base/core/java/com/android/internal/inputmethod/ |
H A D | InputBindResult.java | 195 public final InputChannel channel; field in InputBindResult 248 InputChannel channel, String id, int sequence, in InputBindResult() argument 254 this.channel = channel; in InputBindResult() 284 channel = InputChannel.CREATOR.createFromParcel(source); in InputBindResult() 286 channel = null; in InputBindResult() 325 if (channel != null) { in writeToParcel() 327 channel.writeToParcel(dest, flags); in writeToParcel() 358 return channel != null ? channel.describeContents() : 0; in describeContents()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
H A D | ConversationCoordinatorTest.kt | 72 @Mock private lateinit var channel: NotificationChannel 89 whenever(channel.isImportantConversation).thenReturn(true) 105 entry = NotificationEntryBuilder().setChannel(channel).build() 108 entryA = NotificationEntryBuilder().setChannel(channel) 110 entryB = NotificationEntryBuilder().setChannel(channel) 125 val summary = NotificationEntryBuilder().setId(2).setChannel(channel).build() 143 val alertingEntry = NotificationEntryBuilder().setChannel(channel) 155 val silentEntry = NotificationEntryBuilder().setChannel(channel) 170 val entry = NotificationEntryBuilder().setChannel(channel) 172 val importantEntry = NotificationEntryBuilder().setChannel(channel) [all …]
|
/aosp14/frameworks/base/omapi/java/android/se/omapi/ |
H A D | Session.java | 207 ISecureElementChannel channel = mSession.openBasicChannel(aid, p2, in openBasicChannel() local 209 if (channel == null) { in openBasicChannel() 212 return new Channel(mService, this, channel); in openBasicChannel() 312 ISecureElementChannel channel = mSession.openLogicalChannel( in openLogicalChannel() local 316 if (channel == null) { in openLogicalChannel() 319 return new Channel(mService, this, channel); in openLogicalChannel()
|
/aosp14/frameworks/base/core/jni/ |
H A D | android_view_InputChannel.cpp | 191 static void android_view_InputChannel_nativeDispose(JNIEnv* env, jobject obj, jlong channel) { in android_view_InputChannel_nativeDispose() argument 193 reinterpret_cast<NativeInputChannel*>(channel); in android_view_InputChannel_nativeDispose() 217 jobject parcelObj, jlong channel) { in android_view_InputChannel_nativeWriteToParcel() argument 224 reinterpret_cast<NativeInputChannel*>(channel); in android_view_InputChannel_nativeWriteToParcel() 234 static jstring android_view_InputChannel_nativeGetName(JNIEnv* env, jobject obj, jlong channel) { in android_view_InputChannel_nativeGetName() argument 236 reinterpret_cast<NativeInputChannel*>(channel); in android_view_InputChannel_nativeGetName() 245 static jlong android_view_InputChannel_nativeDup(JNIEnv* env, jobject obj, jlong channel) { in android_view_InputChannel_nativeDup() argument 247 reinterpret_cast<NativeInputChannel*>(channel); in android_view_InputChannel_nativeDup() 269 static jobject android_view_InputChannel_nativeGetToken(JNIEnv* env, jobject obj, jlong channel) { in android_view_InputChannel_nativeGetToken() argument 271 reinterpret_cast<NativeInputChannel*>(channel); in android_view_InputChannel_nativeGetToken()
|
/aosp14/frameworks/base/media/java/android/media/audiofx/ |
H A D | DynamicsProcessing.java | 1270 Channel[] channel) { in Config() argument 1781 setChannelTo(ch, channel); in setAllChannelsTo() 2114 channel.setInputGain(inputGain); in queryEngineByChannelIndex() 2115 channel.setPreEq(preEq); in queryEngineByChannelIndex() 2116 channel.setMbc(mbc); in queryEngineByChannelIndex() 2117 channel.setPostEq(postEq); in queryEngineByChannelIndex() 2118 channel.setLimiter(limiter); in queryEngineByChannelIndex() 2119 return channel; in queryEngineByChannelIndex() 2125 Eq preEq = channel.getPreEq(); in updateEngineChannelByChannelIndex() 2127 Mbc mbc = channel.getMbc(); in updateEngineChannelByChannelIndex() [all …]
|