Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/src/state/
DStateTracker.cpp35 HashableDimensionKey primaryKey; in onLogEvent() local
36 filterPrimaryKey(event.getValues(), &primaryKey); in onLogEvent()
43 clearStateForPrimaryKey(eventTimeNs, primaryKey); in onLogEvent()
52 clearStateForPrimaryKey(eventTimeNs, primaryKey); in onLogEvent()
64 updateStateForPrimaryKey(eventTimeNs, primaryKey, newState, nested, mStateMap[primaryKey]); in onLogEvent()
91 for (auto& [primaryKey, stateValueInfo] : mStateMap) { in handleReset()
92 updateStateForPrimaryKey(eventTimeNs, primaryKey, newState, in handleReset()
99 const HashableDimensionKey& primaryKey) { in clearStateForPrimaryKey() argument
102 mStateMap.find(primaryKey); in clearStateForPrimaryKey()
108 updateStateForPrimaryKey(eventTimeNs, primaryKey, state, in clearStateForPrimaryKey()
[all …]
DStateTracker.h79 void clearStateForPrimaryKey(const int64_t eventTimeNs, const HashableDimensionKey& primaryKey);
82 void updateStateForPrimaryKey(const int64_t eventTimeNs, const HashableDimensionKey& primaryKey,
87 void notifyListeners(const int64_t eventTimeNs, const HashableDimensionKey& primaryKey,
DStateListener.h48 const HashableDimensionKey& primaryKey, const FieldValue& oldState,
/packages/modules/StatsD/statsd/tests/
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()
96 EXPECT_FALSE(containsLinkedStateValues(whatKey, primaryKey, mMetric2StateLinks, stateAtomId)); in TEST()
126 HashableDimensionKey primaryKey; in TEST() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
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()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/
DDBConsentedDebugConfigurationTest.java43 long primaryKey = 123L; in test_create_success() local
46 primaryKey, in test_create_success()
53 .setConsentedDebugConfigurationPrimaryKey(primaryKey) in test_create_success()
80 long primaryKey = 123L; in test_create_debugTokenEmpty() local
83 primaryKey, IS_CONSENTED, "", CREATION_TIMESTAMP, EXPIRY_TIMESTAMP); in test_create_debugTokenEmpty()
86 .setConsentedDebugConfigurationPrimaryKey(primaryKey) in test_create_debugTokenEmpty()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
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()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DClockProvider.kt248 val primaryKey: String? in delete() constant
254 primaryKey = uri.getLastPathSegment() in delete()
256 BaseColumns._ID.toString() + "=" + primaryKey in delete()
258 BaseColumns._ID.toString() + "=" + primaryKey + " AND (" + whereString + ")" in delete()
265 primaryKey = uri.getLastPathSegment() in delete()
267 BaseColumns._ID.toString() + "=" + primaryKey in delete()
269 BaseColumns._ID.toString() + "=" + primaryKey + " AND (" + whereString + ")" in delete()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/host/src/android/healthconnect/cts/database/
DTableInfo.java68 public Builder addPrimaryKeyColumn(@NonNull String primaryKey) { in addPrimaryKeyColumn() argument
69 Objects.requireNonNull(primaryKey); in addPrimaryKeyColumn()
70 mPrimaryKey.add(primaryKey); in addPrimaryKeyColumn()
/packages/modules/StatsD/statsd/src/
DHashableDimensionKey.cpp281 const HashableDimensionKey& primaryKey, in containsLinkedStateValues() argument
283 if (whatKey.getValues().size() < primaryKey.getValues().size()) { in containsLinkedStateValues()
288 for (const auto& primaryValue : primaryKey.getValues()) { in containsLinkedStateValues()
DHashableDimensionKey.h260 const HashableDimensionKey& primaryKey,
/packages/modules/StatsD/statsd/src/metrics/
DCountMetricProducer.h60 const HashableDimensionKey& primaryKey, const FieldValue& oldState,
DCountMetricProducer.cpp187 const HashableDimensionKey& primaryKey, in onStateChanged() argument
190 (long long)mMetricId, (long long)eventTimeNs, atomId, primaryKey.toString().c_str(), in onStateChanged()
DValueMetricProducer.cpp255 int64_t eventTimeNs, int32_t atomId, const HashableDimensionKey& primaryKey, in onStateChanged() argument
259 (long long)mMetricId, (long long)eventTimeNs, atomId, primaryKey.toString().c_str(), in onStateChanged()
288 mStateChangePrimaryKey.second = primaryKey; in onStateChanged()
DDurationMetricProducer.h63 const HashableDimensionKey& primaryKey, const FieldValue& oldState,
DValueMetricProducer.h133 void onStateChanged(int64_t eventTimeNs, int32_t atomId, const HashableDimensionKey& primaryKey,
DDurationMetricProducer.cpp320 const HashableDimensionKey& primaryKey, in onStateChanged() argument
342 if (!containsLinkedStateValues(whatIt.first, primaryKey, mMetric2StateLinks, atomId)) { in onStateChanged()
DMetricProducer.h239 const HashableDimensionKey& primaryKey, const FieldValue& oldState, in onStateChanged() argument
/packages/modules/StatsD/statsd/tests/state/
DStateTracker_test.cpp55 const HashableDimensionKey& primaryKey, const FieldValue& oldState, in onStateChanged() argument
57 updates.emplace_back(primaryKey, newState.mValue.int_value); in onStateChanged()