Home
last modified time | relevance | path

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

12345678910>>...19

/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 …]
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.java153 Log.d(TAG, "No bubble up: not allowed to bubble: " + sbn.getKey()); in shouldBubbleUp()
160 Log.d(TAG, "No bubble up: notification " + sbn.getKey() in shouldBubbleUp()
169 Log.d(TAG, "No bubble up: notification: " + sbn.getKey() in shouldBubbleUp()
193 Log.d(TAG, "No heads up: device is dozing: " + sbn.getKey()); in shouldHeadsUp()
202 + "bubble: " + sbn.getKey()); in shouldHeadsUp()
209 Log.d(TAG, "No heads up: notification shouldn't alert: " + sbn.getKey()); in shouldHeadsUp()
220 Log.d(TAG, "No heads up: unimportant notification: " + sbn.getKey()); in shouldHeadsUp()
235 Log.d(TAG, "No heads up: not in use: " + sbn.getKey()); in shouldHeadsUp()
259 Log.d(TAG, "No pulsing: disabled by setting: " + sbn.getKey()); in shouldPulse()
266 Log.d(TAG, "No pulsing: not dozing: " + sbn.getKey()); in shouldPulse()
[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/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/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()
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 …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DSmartReplyControllerTest.java108 argThat(sbn -> sbn.getKey().equals(mSbn.getKey())), isNull()); in testSendSmartReply_updatesRemoteInput()
117 verify(mIStatusBarService).onNotificationSmartReplySent(mSbn.getKey(), in testSendSmartReply_logsToStatusBar()
128 verify(mIStatusBarService).onNotificationSmartReplySent(mSbn.getKey(), in testSendSmartReply_logsToStatusBar_modifiedBeforeSending()
140 verify(mIStatusBarService).onNotificationSmartSuggestionsAdded(mSbn.getKey(), in testShowSmartSuggestions_logsToStatusBar()
149 assertTrue(mSmartReplyController.isSendingSmartReply(mSbn.getKey())); in testSendSmartReply_reportsSending()
158 assertFalse(mSmartReplyController.isSendingSmartReply(mSbn.getKey())); in testSendingSmartReply_afterRemove_shouldReturnFalse()
/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/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DSmallSortedMap.java108 if (entry.getKey().isRepeated()) { in newFieldMap()
115 if (entry.getKey().isRepeated()) { in newFieldMap()
253 getOverflowEntriesMutable().put(lastEntryInArray.getKey(), in put()
322 int cmp = key.compareTo(entryList.get(right).getKey()); in binarySearchInArray()
332 int cmp = key.compareTo(entryList.get(mid).getKey()); in binarySearchInArray()
406 this(copy.getKey(), copy.getValue()); in Entry()
415 public K getKey() { in getKey() method in SmallSortedMap.Entry
426 return getKey().compareTo(other.getKey()); in compareTo()
447 return equals(key, other.getKey()) && equals(value, other.getValue()); in equals()
491 final V existing = get(entry.getKey()); in contains()
[all …]
DMapFieldLite.java95 return put(entry.getKey(), entry.getValue()); in put()
128 if (!b.containsKey(entry.getKey())) { in equals()
131 if (!equals(entry.getValue(), b.get(entry.getKey()))) { in equals()
166 result += calculateHashCodeForObject(entry.getKey()) in calculateHashCodeForMap()
194 result.put(entry.getKey(), (V) copy(entry.getValue())); in copy()
DFieldSet.java156 FieldDescriptorType descriptor = entry.getKey(); in clone()
161 FieldDescriptorType descriptor = entry.getKey(); in clone()
201 FieldDescriptorType key = entry.getKey(); in cloneFieldEntry()
454 final FieldDescriptorType descriptor = entry.getKey(); in isInitialized()
523 final FieldDescriptorType descriptor = entry.getKey(); in mergeFromField()
591 writeField(entry.getKey(), entry.getValue(), output); in writeTo()
595 writeField(entry.getKey(), entry.getValue(), output); in writeTo()
616 final FieldDescriptorType descriptor = entry.getKey(); in writeMessageSetTo()
623 output.writeMessageSetExtension(entry.getKey().getNumber(), in writeMessageSetTo()
755 size += computeFieldSize(entry.getKey(), entry.getValue()); in getSerializedSize()
[all …]
/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/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/main/java/com/google/protobuf/util/
DFieldMaskTree.java160 String childPath = path.isEmpty() ? entry.getKey() : path + "." + entry.getKey(); in getFieldPaths()
224 FieldDescriptor field = descriptor.findFieldByName(entry.getKey()); in merge()
228 + entry.getKey() in merge()
242 String childPath = path.isEmpty() ? entry.getKey() : path + "." + entry.getKey(); in merge()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DForegroundServiceNotificationListener.java95 return userState.removeNotification(sbn.getPackageName(), sbn.getKey()); in removeNotification()
127 userState.removeNotification(sbn.getPackageName(), sbn.getKey()); in updateNotification()
132 sbn.getKey()); in updateNotification()
139 sbn.getPackageName(), sbn.getKey()); in updateNotification()
/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()
237 pkgRecords.put(record.getKey(), record); in update()
286 groupSummaryKey = potentialGroupSummary.getKey(); in repostGroupSummary()
321 mPackages.remove(r.getKey()); in clearData()
322 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/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/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()
/frameworks/base/core/java/android/app/backup/
DAbsoluteFileBackupHelper.java67 if (DEBUG) Log.d(TAG, "got entity '" + data.getKey() + "' size=" + data.size()); in restoreEntity()
68 String key = data.getKey(); in restoreEntity()

12345678910>>...19