/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/ |
H A D | TestableDeviceConfigTest.java | 97 String newKey = "key2"; in setProperties() local 100 sValue).setString(newKey, newValue).build()); in setProperties() 107 String newKey = "key2"; in getProperties_empty() local 112 assertThat(properties.getString(newKey, null)).isNull(); in getProperties_empty() 114 DeviceConfig.setProperty(sNamespace, newKey, newValue, false); in getProperties_empty() 117 assertThat(properties.getString(newKey, null)).isEqualTo(newValue); in getProperties_empty() 130 String newKey = "key2"; in getProperties() local 132 DeviceConfig.setProperty(sNamespace, newKey, newValue, false); in getProperties() 133 properties = DeviceConfig.getProperties(sNamespace, sKey, newKey); in getProperties() 169 String newKey = "key2"; in testListener_setProperties() local [all …]
|
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/autofill/ |
H A D | AutofillPickerFragment.java | 145 final String newKey = newPref.getKey(); in onPreferenceTreeClick() local 146 final boolean clickOnCurrent = currentKey.equals(newKey); in onPreferenceTreeClick() 148 if (!clickOnCurrent && !KEY_FOR_NONE.equals(newKey)) { in onPreferenceTreeClick() 156 RadioPreference pref = (RadioPreference) findPreference(newKey); in onPreferenceTreeClick() 160 setAutofillService(newKey); in onPreferenceTreeClick() 167 setAutofillService(newKey); in onPreferenceTreeClick()
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | MoreKeysKeyboardView.java | 211 final Key newKey = mKeyDetector.detectHitKey(x, y); in detectKey() local 212 if (newKey == oldKey) { in detectKey() 213 return newKey; in detectKey() 220 if (newKey != null) { in detectKey() 221 updatePressKeyGraphics(newKey); in detectKey() 222 invalidateKey(newKey); in detectKey() 224 return newKey; in detectKey()
|
H A D | PointerTracker.java | 494 private Key onMoveToNewKey(final Key newKey, final int x, final int y) { in onMoveToNewKey() argument 495 mCurrentKey = newKey; in onMoveToNewKey() 498 return newKey; in onMoveToNewKey() 780 Key key = newKey; in processDraggingFingerInToNewKey() 895 final Key newKey = onMoveKey(x, y); in onMoveEventInternal() local 899 onGestureMoveEvent(x, y, eventTime, true /* isMajorEvent */, newKey); in onMoveEventInternal() 907 if (newKey != null) { in onMoveEventInternal() 908 if (oldKey != null && isMajorEnoughMoveToBeOnNewKey(x, y, eventTime, newKey)) { in onMoveEventInternal() 913 processDraggingFingerInToNewKey(newKey, x, y, eventTime); in onMoveEventInternal() 1081 final Key newKey) { in isMajorEnoughMoveToBeOnNewKey() argument [all …]
|
/aosp12/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | ConcurrentSharedRingBuffer.java | 229 public boolean swapLeast(long newKey, SwapTask<E> swapper) { in swapLeast() argument 237 existingElement = mElements.get(newKey); in swapLeast() 256 mElements.put(newKey, p); in swapLeast() 257 mUnpinnedElements.put(newKey, p); in swapLeast() 278 if (swapKey == newKey) { in swapLeast() 315 mElements.put(newKey, toSwap); in swapLeast() 316 mUnpinnedElements.put(newKey, toSwap); in swapLeast()
|
/aosp12/packages/services/Car/service/src/com/android/car/ |
H A D | FastPairUtils.java | 137 AccountKey(byte[] newKey) { in AccountKey() argument 138 key = newKey; in AccountKey() 141 AccountKey(String newKey) { in AccountKey() argument 142 key = new BigInteger(newKey).toByteArray(); in AccountKey()
|
/aosp12/frameworks/base/services/core/java/com/android/server/locksettings/ |
H A D | SyntheticPasswordCrypto.java | 249 final KeyDescriptor newKey = new KeyDescriptor(); in migrateLockSettingsKey() local 250 newKey.domain = Domain.SELINUX; in migrateLockSettingsKey() 251 newKey.nspace = SyntheticPasswordCrypto.keyNamespace(); in migrateLockSettingsKey() 252 newKey.alias = alias; in migrateLockSettingsKey() 254 int err = AndroidKeyStoreMaintenance.migrateKeyNamespace(legacyKey, newKey); in migrateLockSettingsKey()
|
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/storage/ |
H A D | TertiaryKeysTableTest.java | 73 byte[] newKey = generateRandomKey(); in addKey_havingSameSecondaryAliasAndPackageName_replacesOldKey() 76 mTertiaryKeysTable.addKey(new TertiaryKey(SECONDARY_ALIAS, PACKAGE_NAME, newKey)); in addKey_havingSameSecondaryAliasAndPackageName_replacesOldKey() 80 assertThat(keyInDb.getWrappedKeyBytes()).isEqualTo(newKey); in addKey_havingSameSecondaryAliasAndPackageName_replacesOldKey()
|
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/ |
H A D | TertiaryKeyStoreTest.java | 134 SecretKey newKey = generateAesKey(); in save_overwritesPreviousKey() local 136 mTertiaryKeyStore.save(packageName, newKey); in save_overwritesPreviousKey() 142 assertThat(loadedKey).isEqualTo(newKey); in save_overwritesPreviousKey()
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | NonDistinctMultitouchHelper.java | 85 final Key newKey = mainTracker.getKeyOn(x, y); in processMotionEvent() local 86 if (mOldKey != newKey) { in processMotionEvent()
|
H A D | KeyboardParams.java | 119 public void onAddKey(@Nonnull final Key newKey) { in onAddKey() argument 120 final Key key = mUniqueKeysCache.getUniqueKey(newKey); in onAddKey()
|
/aosp12/packages/modules/StatsD/statsd/src/metrics/duration_helper/ |
H A D | MaxDurationTracker.cpp | 39 bool MaxDurationTracker::hitGuardRail(const HashableDimensionKey& newKey) { in hitGuardRail() argument 41 if (mInfos.find(newKey) != mInfos.end()) { in hitGuardRail() 52 (long long)mTrackerId, newKey.toString().c_str()); in hitGuardRail()
|
H A D | OringDurationTracker.cpp | 40 bool OringDurationTracker::hitGuardRail(const HashableDimensionKey& newKey) { in hitGuardRail() argument 43 if (mConditionKeyMap.find(newKey) != mConditionKeyMap.end()) { in hitGuardRail() 52 (long long)mTrackerId, newKey.toString().c_str()); in hitGuardRail()
|
H A D | MaxDurationTracker.h | 79 bool hitGuardRail(const HashableDimensionKey& newKey);
|
H A D | OringDurationTracker.h | 83 bool hitGuardRail(const HashableDimensionKey& newKey);
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | ActivityTransitionState.java | 126 int newKey = mExitTransitionCoordinatorsKey++; in addExitTransitionCoordinator() local 127 mExitTransitionCoordinators.append(newKey, ref); in addExitTransitionCoordinator() 128 return newKey; in addExitTransitionCoordinator()
|
H A D | ResourcesManager.java | 1194 final ResourcesKey newKey = rebaseActivityOverrideConfig(activityResource, in updateResourcesForActivity() local 1196 if (newKey == null) { in updateResourcesForActivity() 1203 findOrCreateResourcesImplForKeyLocked(newKey); in updateResourcesForActivity() 1271 final ResourcesKey newKey = new ResourcesKey(oldKey.mResDir, in rebaseActivityOverrideConfig() local 1277 + " to newKey=" + newKey + ", displayId=" + displayId); in rebaseActivityOverrideConfig() 1280 return newKey; in rebaseActivityOverrideConfig() 1646 final ResourcesKey newKey = new ResourcesKey( in onLoadersChanged() local 1656 final ResourcesImpl impl = findOrCreateResourcesImplForKeyLocked(newKey); in onLoadersChanged()
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/ |
H A D | ResultStoreTest.java | 107 String newKey = "new key"; in testPutInterimResultAndFlushToDisk_shouldReplaceExistingFile() local 111 TEST_INTERIM_BUNDLE.putString(newKey, newValue); in testPutInterimResultAndFlushToDisk_shouldReplaceExistingFile() 117 assertThat(bundle.getString(newKey)).isEqualTo(newValue); in testPutInterimResultAndFlushToDisk_shouldReplaceExistingFile()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
H A D | SlicesIndexerTest.java | 77 String newKey = "newKey"; in testAlreadyIndexed_doesNotIndexAgain() local 80 insertSpecialCase(newKey, newTitle); in testAlreadyIndexed_doesNotIndexAgain() 89 assertThat(cursor.getString(cursor.getColumnIndex(IndexColumns.KEY))).isEqualTo(newKey); in testAlreadyIndexed_doesNotIndexAgain()
|
/aosp12/packages/modules/StatsD/statsd/src/condition/ |
H A D | SimpleConditionTracker.cpp | 165 bool SimpleConditionTracker::hitGuardRail(const HashableDimensionKey& newKey) { in hitGuardRail() argument 166 if (!mSliced || mSlicedConditionState.find(newKey) != mSlicedConditionState.end()) { in hitGuardRail() 177 (long long)mConditionId, newKey.toString().c_str()); in hitGuardRail()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/listbuilder/ |
H A D | ShadeListBuilderLogger.kt | 113 fun logDuplicateSummary(buildId: Int, groupKey: String, existingKey: String, newKey: String) { 118 str3 = newKey
|
/aosp12/packages/modules/StatsD/statsd/src/metrics/ |
H A D | CountMetricProducer.cpp | 304 bool CountMetricProducer::hitGuardRailLocked(const MetricDimensionKey& newKey) { in hitGuardRailLocked() argument 305 if (mCurrentSlicedCounter->find(newKey) != mCurrentSlicedCounter->end()) { in hitGuardRailLocked() 316 (long long)mMetricId, newKey.toString().c_str()); in hitGuardRailLocked()
|
H A D | ValueMetricProducer.cpp | 753 bool ValueMetricProducer::hitGuardRailLocked(const MetricDimensionKey& newKey) { in hitGuardRailLocked() argument 756 if (mCurrentSlicedBucket.find(newKey) != mCurrentSlicedBucket.end()) { in hitGuardRailLocked() 765 newKey.toString().c_str()); in hitGuardRailLocked() 774 bool ValueMetricProducer::hitFullBucketGuardRailLocked(const MetricDimensionKey& newKey) { in hitFullBucketGuardRailLocked() argument 777 if (mCurrentFullBucket.find(newKey) != mCurrentFullBucket.end()) { in hitFullBucketGuardRailLocked() 786 newKey.toString().c_str()); in hitFullBucketGuardRailLocked()
|
H A D | ValueMetricProducer.h | 257 bool hitGuardRailLocked(const MetricDimensionKey& newKey); 261 bool hitFullBucketGuardRailLocked(const MetricDimensionKey& newKey);
|
/aosp12/frameworks/base/core/java/android/accounts/ |
H A D | AuthenticatorDescription.java | 77 public static AuthenticatorDescription newKey(String type) { in newKey() method in AuthenticatorDescription
|