Home
last modified time | relevance | path

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

12345678910>>...24

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
DNewNotifPipelineBubblesTest.java325 assertNotNull(mBubbleData.getBubbleInStackWithKey(mRow.getKey())); in testRemoveBubble()
330 mRow.getKey(), Bubbles.DISMISS_USER_GESTURE); in testRemoveBubble()
331 assertNull(mBubbleData.getBubbleInStackWithKey(mRow.getKey())); in testRemoveBubble()
344 mBubbleData.getBubbleInStackWithKey(mRow.getKey()).setSuppressNotification(true); in testRemoveBubble_withDismissedNotif_inOverflow()
348 mRow.getKey(), Bubbles.DISMISS_USER_GESTURE); in testRemoveBubble_withDismissedNotif_inOverflow()
349 assertTrue(mBubbleData.hasOverflowBubbleWithKey(mRow.getKey())); in testRemoveBubble_withDismissedNotif_inOverflow()
360 when(mNotificationEntryManager.getPendingOrActiveNotif(mRow.getKey())) in testRemoveBubble_withDismissedNotif_notInOverflow()
367 mBubbleData.getBubbleInStackWithKey(mRow.getKey()).setSuppressNotification(true); in testRemoveBubble_withDismissedNotif_notInOverflow()
371 mRow.getKey(), Bubbles.DISMISS_NOTIF_CANCEL); in testRemoveBubble_withDismissedNotif_notInOverflow()
372 assertFalse(mBubbleData.hasOverflowBubbleWithKey(mRow.getKey())); in testRemoveBubble_withDismissedNotif_notInOverflow()
[all …]
DBubblesTest.java290 .getActiveNotificationUnfiltered(mRow.getKey())).thenReturn(mRow); in setUp()
387 assertNotNull(mBubbleData.getBubbleInStackWithKey(mBubbleEntry.getKey())); in testRemoveBubble()
392 mRow.getKey(), Bubbles.DISMISS_USER_GESTURE); in testRemoveBubble()
393 assertNull(mBubbleData.getBubbleInStackWithKey(mRow.getKey())); in testRemoveBubble()
403 when(mNotificationEntryManager.getPendingOrActiveNotif(mRow.getKey())) in testPromoteBubble_autoExpand()
405 when(mNotificationEntryManager.getPendingOrActiveNotif(mRow2.getKey())) in testPromoteBubble_autoExpand()
408 mRow.getKey(), Bubbles.DISMISS_USER_GESTURE); in testPromoteBubble_autoExpand()
410 Bubble b = mBubbleData.getOverflowBubbleWithKey(mRow.getKey()); in testPromoteBubble_autoExpand()
416 Bubble b2 = mBubbleData.getBubbleInStackWithKey(mRow2.getKey()); in testPromoteBubble_autoExpand()
426 eq(b.getKey()), eq(true), eq(flags)); in testPromoteBubble_autoExpand()
[all …]
/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNotificationGroupAlertTransferHelperTest.java142 assertFalse(mHeadsUpManager.isAlerting(summaryEntry.getKey())); in testSuppressedSummaryHeadsUpTransfersToChild()
143 assertTrue(mHeadsUpManager.isAlerting(childEntry.getKey())); in testSuppressedSummaryHeadsUpTransfersToChild()
160 mPendingEntries.put(childEntry2.getKey(), childEntry2); in testSuppressedSummaryHeadsUpTransfersToChildButBackAgain()
166 assertTrue(mHeadsUpManager.isAlerting(summaryEntry.getKey())); in testSuppressedSummaryHeadsUpTransfersToChildButBackAgain()
167 assertFalse(mHeadsUpManager.isAlerting(childEntry.getKey())); in testSuppressedSummaryHeadsUpTransfersToChildButBackAgain()
187 mPendingEntries.put(childEntry2.getKey(), childEntry2); in testSuppressedSummaryHeadsUpDoesntTransferBackOnDozingChanged()
192 assertFalse(mHeadsUpManager.isAlerting(summaryEntry.getKey())); in testSuppressedSummaryHeadsUpDoesntTransferBackOnDozingChanged()
207 assertFalse(mHeadsUpManager.isAlerting(summaryEntry.getKey())); in testSuppressedSummaryHeadsUpTransferDoesNotAlertChildIfUninflated()
208 assertFalse(mHeadsUpManager.isAlerting(childEntry.getKey())); in testSuppressedSummaryHeadsUpTransferDoesNotAlertChildIfUninflated()
228 assertFalse(mHeadsUpManager.isAlerting(summaryEntry.getKey())); in testSuppressedSummaryHeadsUpTransferAlertsChildOnInflation()
[all …]
DHeadsUpManagerPhoneTest.java117 mHeadsUpManager.addSwipedOutNotification(mEntry.getKey()); in testSwipedOutNotification()
120 mHeadsUpManager.removeNotification(mEntry.getKey(), false /* releaseImmediately */); in testSwipedOutNotification()
122 assertFalse(mHeadsUpManager.isAlerting(mEntry.getKey())); in testSwipedOutNotification()
128 mHeadsUpManager.addSwipedOutNotification(mEntry.getKey()); in testCanRemoveImmediately_swipedOut()
131 assertTrue(mHeadsUpManager.canRemoveImmediately(mEntry.getKey())); in testCanRemoveImmediately_swipedOut()
145 assertTrue(mHeadsUpManager.canRemoveImmediately(mEntry.getKey())); in testCanRemoveImmediately_notTopEntry()
153 () -> mLivesPastNormalTime = mHeadsUpManager.isAlerting(mEntry.getKey()); in testExtendHeadsUp()
165 assertFalse(mHeadsUpManager.isAlerting(mEntry.getKey())); in testExtendHeadsUp()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/
DTertiaryKeyManagerTest.java82 assertThat(createNewManager(TEST_PACKAGE_1).getKey()).isNotNull(); in getKey_noExistingKey_returnsNewKey()
87 createNewManager(TEST_PACKAGE_1).getKey(); in getKey_noExistingKey_recordsIncrementalBackup()
94 SecretKey existingKey = manager.getKey(); in getKey_existingKey_returnsExistingKey()
96 assertThat(manager.getKey()).isEqualTo(existingKey); in getKey_existingKey_returnsExistingKey()
101 createNewManager(TEST_PACKAGE_1).getKey(); in getKey_existingKey_recordsBackupButNotRotation()
104 createNewManager(TEST_PACKAGE_1).getKey(); in getKey_existingKey_recordsBackupButNotRotation()
112 SecretKey firstKey = createNewManager(TEST_PACKAGE_1).getKey(); in getKey_existingKeyButRotationRequired_returnsNewKey()
115 SecretKey secondKey = createNewManager(TEST_PACKAGE_1).getKey(); in getKey_existingKeyButRotationRequired_returnsNewKey()
124 createNewManager(TEST_PACKAGE_1).getKey(); in getKey_existingKeyButRotationRequired_recordsKeyRotationAndBackup()
135 SecretKey firstKey = firstManager.getKey(); in getKey_twoApps_returnsDifferentKeys()
[all …]
/frameworks/base/core/java/android/content/integrity/
DAtomicFormula.java208 long metadataValue = getLongMetadataValue(appInstallMetadata, getKey()); in matches()
235 return String.format("(%s)", keyToString(getKey())); in toString()
238 "(%s %s %s)", keyToString(getKey()), operatorToString(mOperator), mValue); in toString()
250 return getKey() == that.getKey() in equals()
257 return Objects.hash(getKey(), mOperator, mValue); in hashCode()
270 dest.writeInt(getKey()); in writeToParcel()
403 return getMetadataValue(appInstallMetadata, getKey()).contains(mValue); in matches()
408 return getKey() == APP_CERTIFICATE; in isAppCertificateFormula()
413 return getKey() == INSTALLER_NAME || getKey() == INSTALLER_CERTIFICATE; in isInstallerFormula()
419 return String.format("(%s)", keyToString(getKey())); in toString()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationEntryManagerTest.java215 setUserSentiment(mSbn.getKey(), Ranking.USER_SENTIMENT_NEUTRAL); in setUp()
232 if (entry.getKey().equals(mSbn.getKey())) { in testAddNotification_noDuplicateEntriesCreated()
236 assertEquals("Should only be one entry with key=" + mSbn.getKey() + " in mAllNotifs. " in testAddNotification_noDuplicateEntriesCreated()
256 mEntry.getKey(), Ranking.USER_SENTIMENT_NEGATIVE); in testUpdateNotification_updatesUserSentiment()
283 mEntryManager.removeNotification(mSbn.getKey(), mRankingMap, UNDEFINED_DISMISS_REASON); in testRemoveNotification()
290 assertNull(mEntryManager.getActiveNotificationUnfiltered(mSbn.getKey())); in testRemoveNotification()
297 assertTrue(entriesContainKey(mEntryManager.getAllNotifs(), mSbn.getKey())); in testRemoveUninflatedNotification_removesNotificationFromAllNotifsList()
304 assertFalse(entriesContainKey(mEntryManager.getAllNotifs(), mSbn.getKey())); in testRemoveUninflatedNotification_removesNotificationFromAllNotifsList()
319 mEntryManager.removeNotification(mSbn.getKey(), mRankingMap, UNDEFINED_DISMISS_REASON); in testRemoveNotification_whilePending()
334 setSmartActions(mEntry.getKey(), new ArrayList<>(Arrays.asList(createAction()))); in testUpdateNotificationRanking()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DSnoozeHelperTest.java171 0, "pkg", r.getKey()).doubleValue()); in testReadValidSnoozedFromCorrectly_timeDeadline()
196 systemUser, "pkg", r.getKey()).longValue()); in testReadExpiredSnoozedNotification()
203 mSnoozeHelper.cleanupPersistedContext(r.getSbn().getKey()); in testCleanupContextShouldRemovePersistedRecord()
207 r.getSbn().getKey() in testCleanupContextShouldRemovePersistedRecord()
222 "not_my_package", r.getKey()).longValue()); in testReadNoneSnoozedNotification()
259 UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), r.getKey())); in testSnoozeForTime()
280 UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), r.getKey()));
290 UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), r.getKey()));
292 UserHandle.USER_SYSTEM, r2.getSbn().getPackageName(), r2.getKey()));
298 UserHandle.USER_SYSTEM, r.getSbn().getPackageName(), r.getKey()));
[all …]
DArchiveTest.java80 expected.add(sbn.getKey()); in testRecordAndRead()
87 assertThat(expected).contains(sbn.getKey()); in testRecordAndRead()
98 expected.add(sbn.getKey()); in testRecordAndRead_overLimit()
105 assertThat(expected).contains(sbn.getKey()); in testRecordAndRead_overLimit()
118 expected.add(sbn.getKey()); in testDoesNotRecordIfHistoryDisabled()
125 assertThat(expected).contains(sbn.getKey()); in testDoesNotRecordIfHistoryDisabled()
138 expected.add(sbn.getKey()); in testRemovesEntriesWhenHistoryDisabled()
146 assertThat(expected).contains(sbn.getKey()); in testRemovesEntriesWhenHistoryDisabled()
163 expected.add(sbn.getKey()); in testRemoveChannelNotifications()
171 assertThat(expected).contains(sbn.getKey()); in testRemoveChannelNotifications()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImpl.java144 Log.d(TAG, "No bubble up: not allowed to bubble: " + sbn.getKey()); in shouldBubbleUp()
153 Log.d(TAG, "No bubble up: notification: " + sbn.getKey() in shouldBubbleUp()
203 Log.d(TAG, "No alerting: snoozed package: " + sbn.getKey()); in shouldHeadsUpWhenAwake()
212 + "bubble: " + sbn.getKey()); in shouldHeadsUpWhenAwake()
219 Log.d(TAG, "No heads up: suppressed by DND: " + sbn.getKey()); in shouldHeadsUpWhenAwake()
226 Log.d(TAG, "No heads up: unimportant notification: " + sbn.getKey()); in shouldHeadsUpWhenAwake()
241 Log.d(TAG, "No heads up: not in use: " + sbn.getKey()); in shouldHeadsUpWhenAwake()
250 + mSuppressors.get(i).getName() + " sbnKey=" + sbn.getKey()); in shouldHeadsUpWhenAwake()
270 Log.d(TAG, "No pulsing: disabled by setting: " + sbn.getKey()); in shouldHeadsUpWhenDozing()
277 Log.d(TAG, "No pulsing: disabled by battery saver: " + sbn.getKey()); in shouldHeadsUpWhenDozing()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coalescer/
DGroupCoalescer.java129 mLogger.logEventCoalesced(sbn.getKey());
175 final CoalescedEvent event = mCoalescedEvents.get(sbn.getKey()); in maybeEmitBatch()
178 mLogger.logEarlyEmit(sbn.getKey(), requireNonNull(event.getBatch()).mGroupKey); in maybeEmitBatch()
182 mLogger.logMaxBatchTimeout(sbn.getKey(), batch.mGroupKey); in maybeEmitBatch()
194 if (mCoalescedEvents.containsKey(sbn.getKey())) { in handleNotificationPosted()
196 "Notification has already been coalesced: " + sbn.getKey()); in handleNotificationPosted()
204 sbn.getKey(), in handleNotificationPosted()
207 requireRanking(rankingMap, sbn.getKey()), in handleNotificationPosted()
209 mCoalescedEvents.put(event.getKey(), event); in handleNotificationPosted()
258 mCoalescedEvents.remove(event.getKey()); in emitBatch()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DStatusBarSwitch.java61 setChecked(!mHideList.contains(getKey())); in onTuningChanged()
68 if (!mHideList.contains(getKey())) { in persistBoolean()
70 getKey()); in persistBoolean()
71 mHideList.add(getKey()); in persistBoolean()
75 if (mHideList.remove(getKey())) { in persistBoolean()
76 MetricsLogger.action(getContext(), MetricsEvent.TUNER_STATUS_BAR_ENABLE, getKey()); in persistBoolean()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationGroupAlertTransferHelper.java113 PendingAlertInfo alertInfo = mPendingAlerts.get(entry.getKey()); in isAlertTransferPending()
197 if (!mHeadsUpManager.isAlerting(group.summary.getKey())) { in onGroupChanged()
273 mPendingAlerts.remove(entry.getKey());
329 && !group.children.containsKey(entry.getKey()); in isPendingNotificationInGroup()
359 boolean summaryIsAlerting = mHeadsUpManager.isAlerting(summary.getKey()); in handleSuppressedSummaryAlerted()
361 && mHeadsUpManager.isAlerting(oldAlertOverride.getKey()); in handleSuppressedSummaryAlerted()
420 boolean summaryIsAlerting = mHeadsUpManager.isAlerting(summary.getKey()); in handleOverriddenSummaryAlerted()
479 if (!mHeadsUpManager.isAlerting(toEntry.getKey()) && onlySummaryAlerts(summary)) { in tryTransferAlertState()
491 mHeadsUpManager.removeNotification(fromEntry.getKey(), true /* releaseImmediately */); in transferAlertState()
526 if (releasedChild && !mHeadsUpManager.isAlerting(summary.getKey())) { in checkShouldTransferBack()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/integrity/
DIntegrityFormulaTest.java38 assertThat(stringAtomicFormula.getKey()).isEqualTo(AtomicFormula.PACKAGE_NAME); in createEqualsFormula_packageName()
51 assertThat(stringAtomicFormula.getKey()).isEqualTo(AtomicFormula.APP_CERTIFICATE); in createEqualsFormula_appCertificate()
64 assertThat(stringAtomicFormula.getKey()).isEqualTo(AtomicFormula.INSTALLER_NAME); in createEqualsFormula_installerName()
78 assertThat(stringAtomicFormula.getKey()).isEqualTo(AtomicFormula.INSTALLER_CERTIFICATE); in createEqualsFormula_installerCertificate()
91 assertThat(stringAtomicFormula.getKey()).isEqualTo(AtomicFormula.VERSION_CODE); in createEqualsFormula_versionCode()
104 assertThat(stringAtomicFormula.getKey()).isEqualTo(AtomicFormula.VERSION_CODE); in createGreaterThanFormula_versionCode()
118 assertThat(stringAtomicFormula.getKey()).isEqualTo(AtomicFormula.VERSION_CODE); in createGreaterThanOrEqualsToFormula_versionCode()
130 assertThat(booleanAtomicFormula.getKey()).isEqualTo(AtomicFormula.PRE_INSTALLED); in createIsTrueFormula_preInstalled()
177 assertThat(booleanAtomicFormula.getKey()).isEqualTo(AtomicFormula.STAMP_TRUSTED); in createIsTrueFormula_stampNotTrusted()
190 assertThat(stringAtomicFormula.getKey()).isEqualTo(AtomicFormula.STAMP_CERTIFICATE_HASH); in createEqualsFormula_stampCertificateHash()
/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/packages/SystemUI/src/com/android/systemui/statusbar/
DSmartReplyController.java63 mSendingKeys.add(entry.getKey()); in smartReplySent()
65 mBarService.onNotificationSmartReplySent(entry.getSbn().getKey(), replyIndex, reply, in smartReplySent()
83 entry.getKey(), rank, count, true, location); in smartActionClicked()
85 entry.getKey(), actionIndex, action, nv, generatedByAssistant); in smartActionClicked()
102 mBarService.onNotificationSmartSuggestionsAdded(entry.getSbn().getKey(), replyCount, in smartSuggestionsAdded()
111 mSendingKeys.remove(entry.getSbn().getKey()); in stopSending()
/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/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/legacy/
DNotificationGroupManagerLegacy.java154 StatusBarNotification oldSbn = mIsolatedEntries.remove(removed.getKey()); in onEntryRemoved()
175 String groupKey = getGroupKey(removed.getKey(), notifGroupKey); in onEntryRemovedInternal()
187 if (isGroupChild(removed.getKey(), isGroup, isGroupSummary)) { in onEntryRemovedInternal()
188 group.children.remove(removed.getKey()); in onEntryRemovedInternal()
234 NotificationEntry existing = group.children.get(added.getKey()); in onEntryAddedInternal()
237 Log.wtf(TAG, "Inconsistent entries found with the same key " + added.getKey() in onEntryAddedInternal()
243 group.children.put(added.getKey(), added); in onEntryAddedInternal()
301 entry.getKey(), entry.getSbn().getGroupKey())) { in updateSuppression()
368 if (isIsolated(group.summary.getKey())) { in getPriorityConversationAlertOverride()
443 if (newestChild != null && importantChildKeys.contains(newestChild.getKey())) { in getPriorityConversationAlertOverride()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotifCollection.java241 if (entry != mNotificationSet.get(entry.getKey())) { in dismissNotifications()
243 new IllegalStateException("Invalid entry: " + entry.getKey())); in dismissNotifications()
252 mLogger.logNotifDismissedIntercepted(entry.getKey()); in dismissNotifications()
263 entry.getSbn().getKey(), in dismissNotifications()
269 mLogger.logRemoteExceptionOnNotificationClear(entry.getKey(), e); in dismissNotifications()
312 mLogger.logNotifClearAllDismissalIntercepted(entry.getKey()); in dismissAllNotifications()
333 mLogger.logNotifDismissed(entry.getKey()); in locallyDismissNotifications()
364 postNotification(sbn, requireRanking(rankingMap, sbn.getKey())); in onNotificationPosted()
386 mLogger.logNotifRemoved(sbn.getKey(), reason); in onNotificationRemoved()
388 final NotificationEntry entry = mNotificationSet.get(sbn.getKey()); in onNotificationRemoved()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DRebootEscrowDataTest.java74 RebootEscrowKey key = RebootEscrowKey.fromKeyBytes(expected.getKey().getKeyBytes()); in fromEncryptedData_failsOnNullData()
92 RebootEscrowKey key = RebootEscrowKey.fromKeyBytes(expected.getKey().getKeyBytes()); in fromEntries_loopback_success()
97 assertThat(actual.getKey().getKeyBytes(), is(expected.getKey().getKeyBytes())); in fromEntries_loopback_success()
114 byte[] ksEncryptedBlob = AesEncryptionUtil.encrypt(mKey.getKey(), testSp); in fromEncryptedData_legacyVersion_success()
127 assertThat(actual.getKey().getKeyBytes(), is(mKey.getKeyBytes())); in fromEncryptedData_legacyVersion_success()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DAlertingNotificationManagerTest.java149 assertTrue(mAlertingNotificationManager.isAlerting(mEntry.getKey())); in testShowNotification_addsEntry()
151 assertEquals(mEntry, mAlertingNotificationManager.getEntry(mEntry.getKey())); in testShowNotification_addsEntry()
163 assertFalse(mAlertingNotificationManager.isAlerting(mEntry.getKey())); in testShowNotification_autoDismisses()
172 mEntry.getKey(), false /* releaseImmediately */); in testRemoveNotification_removeDeferred()
174 assertTrue(mAlertingNotificationManager.isAlerting(mEntry.getKey())); in testRemoveNotification_removeDeferred()
183 mEntry.getKey(), true /* releaseImmediately */); in testRemoveNotification_forceRemove()
185 assertFalse(mAlertingNotificationManager.isAlerting(mEntry.getKey())); in testRemoveNotification_forceRemove()
209 assertFalse(mAlertingNotificationManager.canRemoveImmediately(mEntry.getKey())); in testCanRemoveImmediately_notShownLongEnough()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
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/base/packages/BackupEncryption/test/robolectric/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()

12345678910>>...24