Home
last modified time | relevance | path

Searched refs:primaryKey (Results 1 – 18 of 18) sorted by relevance

/aosp12/packages/modules/StatsD/statsd/src/state/
H A DStateTracker.cpp35 HashableDimensionKey primaryKey; in onLogEvent() local
36 filterPrimaryKey(event.getValues(), &primaryKey); in onLogEvent()
41 clearStateForPrimaryKey(eventTimeNs, primaryKey); in onLogEvent()
50 clearStateForPrimaryKey(eventTimeNs, primaryKey); in onLogEvent()
62 StateValueInfo* stateValueInfo = &mStateMap[primaryKey]; in onLogEvent()
89 for (auto& [primaryKey, stateValueInfo] : mStateMap) { in handleReset()
90 updateStateForPrimaryKey(eventTimeNs, primaryKey, newState, in handleReset()
100 mStateMap.find(primaryKey); in clearStateForPrimaryKey()
106 updateStateForPrimaryKey(eventTimeNs, primaryKey, state, in clearStateForPrimaryKey()
123 mStateMap.erase(primaryKey); in updateStateForPrimaryKey()
[all …]
H A DStateTracker.h78 void clearStateForPrimaryKey(const int64_t eventTimeNs, const HashableDimensionKey& primaryKey);
81 void updateStateForPrimaryKey(const int64_t eventTimeNs, const HashableDimensionKey& primaryKey,
86 void notifyListeners(const int64_t eventTimeNs, const HashableDimensionKey& primaryKey,
H A DStateListener.h48 const HashableDimensionKey& primaryKey, const FieldValue& oldState,
/aosp12/packages/modules/StatsD/statsd/tests/
H A DHashableDimensionKey_test.cpp40 HashableDimensionKey primaryKey; in TEST() local
41 getUidProcessKey(uid1, &primaryKey); in TEST()
43 EXPECT_FALSE(containsLinkedStateValues(whatKey, primaryKey, mMetric2StateLinks, in TEST()
75 HashableDimensionKey primaryKey; in TEST() local
76 getUidProcessKey(uid1, &primaryKey); in TEST()
78 EXPECT_FALSE(containsLinkedStateValues(whatKey, primaryKey, mMetric2StateLinks, stateAtomId)); in TEST()
93 HashableDimensionKey primaryKey; in TEST() local
94 getUidProcessKey(uid1, &primaryKey); in TEST()
126 HashableDimensionKey primaryKey; in TEST() local
127 getUidProcessKey(uid1, &primaryKey); in TEST()
[all …]
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DKeyDetector.java96 Key primaryKey = null; in detectHitKey() local
108 if (primaryKey == null || distance < minDistance in detectHitKey()
109 || key.getCode() > primaryKey.getCode()) { in detectHitKey()
111 primaryKey = key; in detectHitKey()
114 return primaryKey; in detectHitKey()
/aosp12/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dproximity_info_utils.h62 const int primaryKey = inputCodes[i]; in initializeProximities() local
68 keyCount, x, y, primaryKey, locale, codeToKeyMap, proximities); in initializeProximities()
147 const int x, const int y, const int primaryKey, const std::vector<int> *locale, in calculateProximities() argument
151 proximities[insertPos++] = primaryKey; in calculateProximities()
162 if (c < KEYCODE_SPACE || c == primaryKey) { in calculateProximities()
181 AdditionalProximityChars::getAdditionalCharsSize(locale, primaryKey); in calculateProximities()
192 AdditionalProximityChars::getAdditionalChars(locale, primaryKey); in calculateProximities()
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/provider/
H A DClockProvider.kt248 val primaryKey: String?
254 primaryKey = uri.getLastPathSegment()
256 BaseColumns._ID.toString() + "=" + primaryKey
258 BaseColumns._ID.toString() + "=" + primaryKey + " AND (" + whereString + ")"
265 primaryKey = uri.getLastPathSegment()
267 BaseColumns._ID.toString() + "=" + primaryKey
269 BaseColumns._ID.toString() + "=" + primaryKey + " AND (" + whereString + ")"
/aosp12/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/
H A DTertiaryKeyStore.java176 long primaryKey = in putAll() local
181 if (primaryKey == -1) { in putAll()
/aosp12/packages/modules/StatsD/statsd/src/
H A DHashableDimensionKey.cpp242 const HashableDimensionKey& primaryKey, in containsLinkedStateValues() argument
244 if (whatKey.getValues().size() < primaryKey.getValues().size()) { in containsLinkedStateValues()
249 for (const auto& primaryValue : primaryKey.getValues()) { in containsLinkedStateValues()
H A DHashableDimensionKey.h213 const HashableDimensionKey& primaryKey,
/aosp12/packages/modules/StatsD/statsd/src/metrics/
H A DCountMetricProducer.h57 const HashableDimensionKey& primaryKey, const FieldValue& oldState,
H A DCountMetricProducer.cpp172 const HashableDimensionKey& primaryKey, in onStateChanged() argument
175 (long long)mMetricId, (long long)eventTimeNs, atomId, primaryKey.toString().c_str(), in onStateChanged()
H A DDurationMetricProducer.h63 const HashableDimensionKey& primaryKey, const FieldValue& oldState,
H A DValueMetricProducer.cpp236 const HashableDimensionKey& primaryKey, in onStateChanged() argument
239 (long long)mMetricId, (long long)eventTimeNs, atomId, primaryKey.toString().c_str(), in onStateChanged()
266 mStateChangePrimaryKey.second = primaryKey; in onStateChanged()
H A DDurationMetricProducer.cpp300 const HashableDimensionKey& primaryKey, in onStateChanged() argument
321 if (!containsLinkedStateValues(whatIt.first, primaryKey, mMetric2StateLinks, atomId)) { in onStateChanged()
H A DValueMetricProducer.h92 void onStateChanged(int64_t eventTimeNs, int32_t atomId, const HashableDimensionKey& primaryKey,
H A DMetricProducer.h225 const HashableDimensionKey& primaryKey, const FieldValue& oldState, in onStateChanged() argument
/aosp12/packages/modules/StatsD/statsd/tests/state/
H A DStateTracker_test.cpp54 const HashableDimensionKey& primaryKey, const FieldValue& oldState, in onStateChanged() argument
56 updates.emplace_back(primaryKey, newState.mValue.int_value); in onStateChanged()