Home
last modified time | relevance | path

Searched refs:newKey (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/Camera2/src/com/android/camera/util/
DConcurrentSharedRingBuffer.java229 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()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboardView.java211 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()
DPointerTracker.java494 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()
775 private void processDraggingFingerInToNewKey(final Key newKey, final int x, final int y, in processDraggingFingerInToNewKey() argument
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()
909 dragFingerFromOldKeyToNewKey(newKey, x, y, eventTime, oldKey, lastX, lastY); in onMoveEventInternal()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/autofill/
DAutofillPickerFragment.java146 final String newKey = newPref.getKey(); in onPreferenceTreeClick() local
147 final boolean clickOnCurrent = currentKey.equals(newKey); in onPreferenceTreeClick()
149 if (!clickOnCurrent && !KEY_FOR_NONE.equals(newKey)) { in onPreferenceTreeClick()
157 RadioPreference pref = (RadioPreference) findPreference(newKey); in onPreferenceTreeClick()
161 setAutofillService(newKey); in onPreferenceTreeClick()
168 setAutofillService(newKey); in onPreferenceTreeClick()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DNonDistinctMultitouchHelper.java85 final Key newKey = mainTracker.getKeyOn(x, y); in processMotionEvent() local
86 if (mOldKey != newKey) { in processMotionEvent()
DKeyboardParams.java119 public void onAddKey(@Nonnull final Key newKey) { in onAddKey() argument
120 final Key key = mUniqueKeysCache.getUniqueKey(newKey); in onAddKey()
/packages/modules/StatsD/statsd/src/metrics/duration_helper/
DMaxDurationTracker.cpp39 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()
DOringDurationTracker.cpp40 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()
DOringDurationTracker.h83 bool hitGuardRail(const HashableDimensionKey& newKey);
DMaxDurationTracker.h79 bool hitGuardRail(const HashableDimensionKey& newKey);
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSlicesIndexerTest.java79 String newKey = "newKey"; in testAlreadyIndexed_doesNotIndexAgain() local
82 insertSpecialCase(newKey, newTitle); in testAlreadyIndexed_doesNotIndexAgain()
91 assertThat(cursor.getString(cursor.getColumnIndex(IndexColumns.KEY))).isEqualTo(newKey); in testAlreadyIndexed_doesNotIndexAgain()
/packages/modules/StatsD/statsd/src/condition/
DSimpleConditionTracker.cpp162 bool SimpleConditionTracker::hitGuardRail(const HashableDimensionKey& newKey) { in hitGuardRail() argument
163 if (!mSliced || mSlicedConditionState.find(newKey) != mSlicedConditionState.end()) { in hitGuardRail()
174 (long long)mConditionId, newKey.toString().c_str()); in hitGuardRail()
DSimpleConditionTracker.h126 bool hitGuardRail(const HashableDimensionKey& newKey);
/packages/modules/Connectivity/netd/
DBpfHandler.cpp177 UidTagValue newKey = {.uid = (uint32_t)chargeUid, .tag = tag}; in tagSocket() local
228 res = mCookieTagMap.writeValue(sock_cookie, newKey, BPF_ANY); in tagSocket()
/packages/modules/StatsD/statsd/src/metrics/
DCountMetricProducer.cpp304 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()
DNumericValueMetricProducer.cpp336 const MetricDimensionKey& newKey) const { in hitFullBucketGuardRailLocked()
339 if (mCurrentFullBucket.find(newKey) != mCurrentFullBucket.end()) { in hitFullBucketGuardRailLocked()
347 (long long)mMetricId, newKey.toString().c_str()); in hitFullBucketGuardRailLocked()
DGaugeMetricProducer.cpp495 bool GaugeMetricProducer::hitGuardRailLocked(const MetricDimensionKey& newKey) { in hitGuardRailLocked() argument
496 if (mCurrentSlicedBucket->find(newKey) != mCurrentSlicedBucket->end()) { in hitGuardRailLocked()
506 (long long)mMetricId, newKey.toString().c_str()); in hitGuardRailLocked()
DDurationMetricProducer.cpp619 bool DurationMetricProducer::hitGuardRailLocked(const MetricDimensionKey& newKey) { in hitGuardRailLocked() argument
620 auto whatIt = mCurrentSlicedDurationTrackerMap.find(newKey.getDimensionKeyInWhat()); in hitGuardRailLocked()
630 (long long)mMetricId, newKey.getDimensionKeyInWhat().toString().c_str()); in hitGuardRailLocked()
DValueMetricProducer.cpp611 const MetricDimensionKey& newKey) const { in hitGuardRailLocked()
614 if (mCurrentSlicedBucket.find(newKey) != mCurrentSlicedBucket.end()) { in hitGuardRailLocked()
623 (long long)mMetricId, newKey.toString().c_str()); in hitGuardRailLocked()
DCountMetricProducer.h127 bool hitGuardRailLocked(const MetricDimensionKey& newKey);
DDurationMetricProducer.h182 bool hitGuardRailLocked(const MetricDimensionKey& newKey);
DGaugeMetricProducer.h205 bool hitGuardRailLocked(const MetricDimensionKey& newKey);
DValueMetricProducer.h318 bool hitGuardRailLocked(const MetricDimensionKey& newKey) const;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/
DResultStoreTest.java151 String newKey = "new key"; in testPutInterimResultAndFlushToDisk_shouldReplaceExistingFile() local
155 TEST_INTERIM_BUNDLE.putString(newKey, newValue); in testPutInterimResultAndFlushToDisk_shouldReplaceExistingFile()
161 assertThat(bundle.getString(newKey)).isEqualTo(newValue); in testPutInterimResultAndFlushToDisk_shouldReplaceExistingFile()
/packages/modules/Connectivity/service/jni/
Dcom_android_server_connectivity_ClatCoordinator.cpp451 UidTagValue newKey = {.uid = (uint32_t)AID_CLAT, .tag = 0 /* unused */}; in com_android_server_connectivity_ClatCoordinator_tagSocketAsClat() local
452 res = cookieTagMap.writeValue(sock_cookie, newKey, BPF_ANY); in com_android_server_connectivity_ClatCoordinator_tagSocketAsClat()

12