Home
last modified time | relevance | path

Searched refs:getKey (Results 1 – 25 of 446) sorted by relevance

12345678910>>...18

/frameworks/base/telecomm/java/android/telecom/Logging/
DTimedEvent.java28 public abstract T getKey(); in getKey() method in TimedEvent
35 if (counts.containsKey(entry.getKey())) { in averageTimings()
36 counts.put(entry.getKey(), counts.get(entry.getKey()) + 1); in averageTimings()
37 result.put(entry.getKey(), result.get(entry.getKey()) + entry.getTime()); in averageTimings()
39 counts.put(entry.getKey(), 1); in averageTimings()
40 result.put(entry.getKey(), (double) entry.getTime()); in averageTimings()
45 result.put(entry.getKey(), entry.getValue() / counts.get(entry.getKey())); in averageTimings()
/frameworks/base/telecomm/java/android/telecom/
DTimedEvent.java28 public abstract T getKey(); in getKey() method in TimedEvent
35 if (counts.containsKey(entry.getKey())) { in averageTimings()
36 counts.put(entry.getKey(), counts.get(entry.getKey()) + 1); in averageTimings()
37 result.put(entry.getKey(), result.get(entry.getKey()) + entry.getTime()); in averageTimings()
39 counts.put(entry.getKey(), 1); in averageTimings()
40 result.put(entry.getKey(), (double) entry.getTime()); in averageTimings()
45 result.put(entry.getKey(), entry.getValue() / counts.get(entry.getKey())); in averageTimings()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DSnoozeHelperTest.java81 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); in testSnoozeForTime()
91 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
101 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
103 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey()));
109 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
111 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey()));
123 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
125 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey()));
127 UserHandle.USER_ALL, r3.sbn.getPackageName(), r3.getKey()));
133 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
[all …]
DNotificationManagerServiceTest.java758 mService.getNotificationRecord(sbn.getKey()).getImportance()); in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService()
789 mService.getNotificationRecord(sbn.getKey()).getImportance()); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
809 assertNull(mService.getNotificationRecord(sbn.getKey())); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
853 assertNull(mService.getNotificationRecord(sbn.getKey())); in testEnqueuedBlockedNotifications_blockedAppForegroundService()
942 r.sbn.getPackageName(), r.getKey(), bundle, "", r.getUser().getIdentifier()); in testBlockedNotifications_blockedByAssistant()
946 mService.new PostNotificationRunnable(r.getKey()); in testBlockedNotifications_blockedByAssistant()
1325 String[] keys = {parent.sbn.getKey(), child.sbn.getKey(), in testCancelAllCancelNotificationsFromListener_ForegroundServiceFlagWithParameter()
1326 child2.sbn.getKey(), newGroup.sbn.getKey()}; in testCancelAllCancelNotificationsFromListener_ForegroundServiceFlagWithParameter()
1426 String[] keys = {parent.sbn.getKey(), child.sbn.getKey(), in testCancelAllCancelNotificationsFromListener_NoClearFlagWithParameter()
1427 child2.sbn.getKey(), newGroup.sbn.getKey()}; in testCancelAllCancelNotificationsFromListener_NoClearFlagWithParameter()
[all …]
DNotificationAdjustmentExtractorTest.java63 Adjustment adjustment = new Adjustment("pkg", r.getKey(), signals, "", 0); in testExtractsAdjustment()
88 Adjustment pAdjustment = new Adjustment("pkg", r.getKey(), pSignals, "", 0); in testExtractsAdjustments()
95 Adjustment sAdjustment = new Adjustment("pkg", r.getKey(), sSignals, "", 0); in testExtractsAdjustments()
100 Adjustment gAdjustment = new Adjustment("pkg", r.getKey(), gSignals, "", 0); in testExtractsAdjustments()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationInterruptionStateProvider.java180 Log.d(TAG, "No bubble up: not allowed to bubble: " + sbn.getKey()); in shouldBubbleUp()
187 Log.d(TAG, "No bubble up: notification " + sbn.getKey() in shouldBubbleUp()
196 Log.d(TAG, "No bubble up: notification: " + sbn.getKey() in shouldBubbleUp()
241 + "bubble: " + sbn.getKey()); in shouldHeadsUpWhenAwake()
248 Log.d(TAG, "No heads up: suppressed by DND: " + sbn.getKey()); in shouldHeadsUpWhenAwake()
255 Log.d(TAG, "No heads up: unimportant notification: " + sbn.getKey()); in shouldHeadsUpWhenAwake()
270 Log.d(TAG, "No heads up: not in use: " + sbn.getKey()); in shouldHeadsUpWhenAwake()
277 Log.d(TAG, "No heads up: aborted by suppressor: " + sbn.getKey()); in shouldHeadsUpWhenAwake()
297 Log.d(TAG, "No pulsing: disabled by setting: " + sbn.getKey()); in shouldHeadsUpWhenDozing()
304 Log.d(TAG, "No pulsing: disabled by battery saver: " + sbn.getKey()); in shouldHeadsUpWhenDozing()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DStatusBarSwitch.java61 setChecked(!mBlacklist.contains(getKey())); in onTuningChanged()
68 if (!mBlacklist.contains(getKey())) { in persistBoolean()
70 getKey()); in persistBoolean()
71 mBlacklist.add(getKey()); in persistBoolean()
75 if (mBlacklist.remove(getKey())) { in persistBoolean()
76 MetricsLogger.action(getContext(), MetricsEvent.TUNER_STATUS_BAR_ENABLE, getKey()); in persistBoolean()
/frameworks/base/core/tests/coretests/src/android/content/
DRestrictionsManagerTest.java47 if ("bundle_key".equals(entry.getKey())) { in testGetManifestRestrictions()
50 verifiedKeys.remove(entry.getKey()); in testGetManifestRestrictions()
51 } else if ("bundle_array_key".equals(entry.getKey())) { in testGetManifestRestrictions()
56 if ("bundle_array_bundle_key".equals(childEntry.getKey())) { in testGetManifestRestrictions()
60 verifiedKeys.remove(childEntry.getKey()); in testGetManifestRestrictions()
63 verifiedKeys.remove(entry.getKey()); in testGetManifestRestrictions()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DPlatformKeyManagerTest.java302 when(mKeyStoreProxy.getKey( in getDecryptKey_getsDecryptKeyWithCorrectAlias()
308 verify(mKeyStoreProxy).getKey( in getDecryptKey_getsDecryptKeyWithCorrectAlias()
327 when(mKeyStoreProxy.getKey( in getDecryptKey_generatesNewKeyIfOldDecryptKeyWasRemoved()
336 verify(mKeyStoreProxy).getKey( in getDecryptKey_generatesNewKeyIfOldDecryptKeyWasRemoved()
361 verify(mKeyStoreProxy).getKey( in getDecryptKey_generatesNewKeyIfOldEncryptKeyWasRemoved()
368 doThrow(new UnrecoverableKeyException()).when(mKeyStoreProxy).getKey( in getEncryptKey_generatesNewKeyIfOldOneIsInvalid()
387 verify(mKeyStoreProxy).getKey( in getEncryptKey_generatesNewKeyIfOldOneIsInvalid()
391 verify(mKeyStoreProxy).getKey( in getEncryptKey_generatesNewKeyIfOldOneIsInvalid()
398 doThrow(new UnrecoverableKeyException()).when(mKeyStoreProxy).getKey( in getDecryptKey_generatesNewKeyIfOldOneIsInvalid()
401 when(mKeyStoreProxy.getKey( in getDecryptKey_generatesNewKeyIfOldOneIsInvalid()
[all …]
DRecoverableKeyGeneratorTest.java101 WrappedKey wrappedKey = mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS); in generateAndStoreKey_storesWrappedKey_nullMetadata()
111 WrappedKey wrappedKey = mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS); in generateAndStoreKey_storesWrappedKey_nonNullMetadata()
129 WrappedKey wrappedKey = mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS); in generateAndStoreKey_storesTheWrappedVersionOfTheRawMaterial()
131 cipher.init(Cipher.DECRYPT_MODE, mDecryptKey.getKey(), in generateAndStoreKey_storesTheWrappedVersionOfTheRawMaterial()
143 assertNull(mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS).getKeyMetadata()); in importKey_storesNullMetadata()
153 mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS).getKeyMetadata()); in importKey_storesNonNullMetadata()
163 WrappedKey wrappedKey = mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS); in importKey_storesTheWrappedVersionOfTheRawMaterial()
165 cipher.init(Cipher.DECRYPT_MODE, mDecryptKey.getKey(), in importKey_storesTheWrappedVersionOfTheRawMaterial()
/frameworks/compile/mclinker/lib/LD/
DMergedStringTable.cpp23 offset += it->getKey().size() + 1; in finalizeOffset()
32 ::memcpy(ptr, it->getKey().data(), it->getKey().size()); in emit()
33 ptr += it->getKey().size() + 1; in emit()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/storage/
DTertiaryKeysTableTest.java62 mTertiaryKeysTable.getKey(SECONDARY_ALIAS, PACKAGE_NAME); in addKey_onEmptyDatabase_putsKeyInDb()
79 TertiaryKey keyInDb = mTertiaryKeysTable.getKey(SECONDARY_ALIAS, PACKAGE_NAME).get(); in addKey_havingSameSecondaryAliasAndPackageName_replacesOldKey()
97 assertThat(mTertiaryKeysTable.getKey(SECONDARY_ALIAS, PACKAGE_NAME).isPresent()).isTrue(); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey()
99 mTertiaryKeysTable.getKey(SECONDARY_ALIAS, PACKAGE_NAME).get(), key1); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey()
100 assertThat(mTertiaryKeysTable.getKey(alias2, PACKAGE_NAME).isPresent()).isTrue(); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey()
101 assertTertiaryKeysEqual(mTertiaryKeysTable.getKey(alias2, PACKAGE_NAME).get(), key2); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey()
110 Optional<TertiaryKey> key = mTertiaryKeysTable.getKey(SECONDARY_ALIAS, PACKAGE_NAME); in getKey_forMissingKey_returnsEmptyOptional()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DSmartReplyControllerTest.java111 argThat(sbn -> sbn.getKey().equals(mSbn.getKey())), isNull()); in testSendSmartReply_updatesRemoteInput()
120 verify(mIStatusBarService).onNotificationSmartReplySent(mSbn.getKey(), in testSendSmartReply_logsToStatusBar()
131 verify(mIStatusBarService).onNotificationSmartReplySent(mSbn.getKey(), in testSendSmartReply_logsToStatusBar_modifiedBeforeSending()
143 verify(mIStatusBarService).onNotificationSmartSuggestionsAdded(mSbn.getKey(), in testShowSmartSuggestions_logsToStatusBar()
152 assertTrue(mSmartReplyController.isSendingSmartReply(mSbn.getKey())); in testSendSmartReply_reportsSending()
161 assertFalse(mSmartReplyController.isSendingSmartReply(mSbn.getKey())); in testSendingSmartReply_afterRemove_shouldReturnFalse()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DPrinterHashMap.java39 public static String getKey(NsdServiceInfo serviceInfo) { in getKey() method in PrinterHashMap
51 return mPrinters.put(getKey(device), device); in addPrinter()
62 return mPrinters.remove(getKey(device)); in removePrinter()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/
DMffFilterTestCase.java140 Filter inputFilter = new FrameSourceFilter(mffContext, "in_" + inputPortEntry.getKey()); in connectInputPorts()
142 graphBuilder.connect(inputFilter, "output", filter, inputPortEntry.getKey()); in connectInputPorts()
153 mffContext, "out_" + outputPortEntry.getKey()); in connectOutputPorts()
155 graphBuilder.connect(filter, outputPortEntry.getKey(), outputFilter, "input"); in connectOutputPorts()
157 mEmptyOutputPorts.add("out_" + outputPortEntry.getKey()); in connectOutputPorts()
/frameworks/base/services/core/java/com/android/server/notification/
DSnoozeHelper.java134 scheduleRepost(record.sbn.getPackageName(), record.getKey(), record.getUserId(), duration); in snooze()
143 Slog.d(TAG, "Snoozing " + record.getKey()); in snooze()
154 pkgRecords.put(record.getKey(), record); in snooze()
157 mPackages.put(record.getKey(), record.sbn.getPackageName()); in snooze()
158 mUsers.put(record.getKey(), userId); in snooze()
233 NotificationRecord existing = pkgRecords.get(record.getKey()); in update()
234 pkgRecords.put(record.getKey(), record); in update()
283 groupSummaryKey = potentialGroupSummary.getKey(); in repostGroupSummary()
318 mPackages.remove(r.getKey()); in clearData()
319 mUsers.remove(r.getKey()); in clearData()
[all …]
DGroupHelper.java50 if (DEBUG) Log.i(TAG, "POSTED " + sbn.getKey()); in onNotificationPosted()
69 notificationsForPackage.add(sbn.getKey()); in onNotificationPosted()
116 if (notificationsForPackage.remove(sbn.getKey())) { in maybeUngroup()
119 notificationsToUnAutogroup.add(sbn.getKey()); in maybeUngroup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DForegroundServiceNotificationListener.java98 return userState.removeNotification(sbn.getPackageName(), sbn.getKey()); in removeNotification()
130 userState.removeNotification(sbn.getPackageName(), sbn.getKey()); in updateNotification()
135 sbn.getKey()); in updateNotification()
142 sbn.getPackageName(), sbn.getKey()); in updateNotification()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/procstats/
DSparseMappingTableTest.java99 key = table1.getKey(ID1); in testParceling()
102 key = table1.getKey(ID2); in testParceling()
146 key = table1.getKey(ID1); in testParcelingWithReset()
149 key = table1.getKey(ID2); in testParcelingWithReset()
194 key = table.getKey(ID1); in testInvalidKey()
/frameworks/ex/common/tests/src/com/android/common/
DRfc822ValidatorTest.java99 assertEquals(e.getValue(), validator.fixText(e.getKey()).toString()); in testEmailValidator()
114 assertEquals(e.getValue(), validator.fixText(e.getKey()).toString()); in testEmailValidatorNullDomain()
130 assertEquals(e.getValue(), validator.fixText(e.getKey()).toString()); in testEmailValidatorRemoveInvalid()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyRegistryTest.java361 assertSecurityExceptionThrown(entry.getKey(), entry.getValue()); in testReadPhoneStatePermission()
367 assertSecurityExceptionNotThrown(entry.getKey(), entry.getValue()); in testReadPhoneStatePermission()
383 assertSecurityExceptionThrown(entry.getKey(), entry.getValue()); in testReadPrecisePhoneStatePermission()
390 assertSecurityExceptionNotThrown(entry.getKey(), entry.getValue()); in testReadPrecisePhoneStatePermission()
402 assertSecurityExceptionThrown(entry.getKey(), entry.getValue()); in testReadPrivilegedPhoneStatePermission()
409 assertSecurityExceptionNotThrown(entry.getKey(), entry.getValue()); in testReadPrivilegedPhoneStatePermission()
421 assertSecurityExceptionThrown(entry.getKey(), entry.getValue()); in testReadActiveEmergencySessionPermission()
428 assertSecurityExceptionNotThrown(entry.getKey(), entry.getValue()); in testReadActiveEmergencySessionPermission()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleExpandedView.java139 mBubbleController.removeBubble(mBubble.getKey(),
183 post(() -> mBubbleController.removeBubble(mBubble.getKey(),
269 return mBubble != null ? mBubble.getKey() : "null"; in getBubbleKey()
344 Log.d(TAG, "setBubble: bubble=" + (bubble != null ? bubble.getKey() : "null")); in setBubble()
392 Log.d(TAG, "update: bubble=" + (bubble != null ? bubble.getKey() : "null")); in update()
394 if (bubble.getKey().equals(mBubble.getKey())) { in update()
400 + bubble.getKey() + " old bubble: " + bubble.getKey()); in update()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWakeupLock.java191 if (networkList.contains(entry.getKey())) { in removeFromLock()
193 Log.d(TAG, "Found network in lock: " + entry.getKey().networkSsid); in removeFromLock()
202 Log.d(TAG, "Removed network from lock: " + entry.getKey().networkSsid); in removeFromLock()
267 pw.println(entry.getKey() + ", scans to evict: " + entry.getValue()); in dump()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DSignature.java147 stringBuffer.append(entry.getValue().toString("input", entry.getKey()) + "\n"); in toString()
150 stringBuffer.append(entry.getValue().toString("output", entry.getKey()) + "\n"); in toString()
176 String portName = entry.getKey(); in checkInputPortsConform()
197 String portName = entry.getKey(); in checkOutputPortsConform()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DSmartReplyController.java63 mBarService.onNotificationSmartReplySent(entry.notification.getKey(), replyIndex, reply, in smartReplySent()
104 mBarService.onNotificationSmartSuggestionsAdded(entry.notification.getKey(), replyCount, in smartSuggestionsAdded()
113 mSendingKeys.remove(entry.notification.getKey()); in stopSending()

12345678910>>...18