Home
last modified time | relevance | path

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

12345678910>>...15

/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/notification/src/com/android/server/notification/
DSnoozeHelperTest.java79 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); in testSnoozeForTime()
89 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
99 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
101 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey()));
107 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
109 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey()));
121 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
123 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey()));
125 UserHandle.USER_ALL, r3.sbn.getPackageName(), r3.getKey()));
131 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/
DPreferenceControllerTest.java64 when(mPreference.getKey()).thenReturn(TestPrefController.KEY_PREF); in removeExistingPref_shouldBeRemoved()
91 when(mPreference.getKey()).thenReturn(TestPrefController.KEY_PREF); in doNotDisplayPref_ifNotAvailable()
107 when(pref1.getKey()).thenReturn("key1"); in removePreference_shouldRemoveRecursively()
110 when(prefGroup2.getKey()).thenReturn("group2"); in removePreference_shouldRemoveRecursively()
112 when(pref3.getKey()).thenReturn("key3"); in removePreference_shouldRemoveRecursively()
115 when(prefGroup4.getKey()).thenReturn("group4"); in removePreference_shouldRemoveRecursively()
123 when(pref21.getKey()).thenReturn("key21"); in removePreference_shouldRemoveRecursively()
125 when(pref22.getKey()).thenReturn("key22"); in removePreference_shouldRemoveRecursively()
129 when(prefGroup41.getKey()).thenReturn("group41"); in removePreference_shouldRemoveRecursively()
132 when(pref42.getKey()).thenReturn("key42"); in removePreference_shouldRemoveRecursively()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DStatusBarSwitch.java60 setChecked(!mBlacklist.contains(getKey())); in onTuningChanged()
67 if (!mBlacklist.contains(getKey())) { in persistBoolean()
69 getKey()); in persistBoolean()
70 mBlacklist.add(getKey()); in persistBoolean()
74 if (mBlacklist.remove(getKey())) { in persistBoolean()
75 MetricsLogger.action(getContext(), MetricsEvent.TUNER_STATUS_BAR_ENABLE, getKey()); in persistBoolean()
/frameworks/base/core/tests/coretests/src/android/content/
DRestrictionsManagerTest.java43 if ("bundle_key".equals(entry.getKey())) { in testGetManifestRestrictions()
46 verifiedKeys.remove(entry.getKey()); in testGetManifestRestrictions()
47 } else if ("bundle_array_key".equals(entry.getKey())) { in testGetManifestRestrictions()
52 if ("bundle_array_bundle_key".equals(childEntry.getKey())) { in testGetManifestRestrictions()
56 verifiedKeys.remove(childEntry.getKey()); in testGetManifestRestrictions()
59 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/packages/Osu/src/com/android/hotspot2/osu/
DOSUCache.java129 ScanInstance current = aged.remove(entry.getKey()); in scanEnd()
131 mCache.put(entry.getKey(), new ScanInstance(entry.getValue(), mInstant)); in scanEnd()
135 "Add OSU " + entry.getKey() + " from " + entry.getValue().SSID); in scanEnd()
137 Log.d(OSUManager.TAG, "Update OSU " + entry.getKey() + " with " + in scanEnd()
141 Log.d(OSUManager.TAG, "Existing OSU " + entry.getKey() + ", " in scanEnd()
149 Log.d(OSUManager.TAG, "Remove OSU " + entry.getKey() + ", " in scanEnd()
151 mCache.remove(entry.getKey()); in scanEnd()
163 results.put(entry.getKey(), entry.getValue().getScanResult()); in scanEnd()
DOSUManager.java187 OSUInfo existing = mOSUMap.get(entry.getKey()); in updateOSUInfoCache()
191 osus.put(entry.getKey(), new OSUInfo(entry.getValue(), entry.getKey(), in updateOSUInfoCache()
196 OSUInfo osuInfo = new OSUInfo(entry.getValue(), entry.getKey(), in updateOSUInfoCache()
199 osus.put(entry.getKey(), osuInfo); in updateOSUInfoCache()
201 osus.put(entry.getKey(), new OSUInfo(entry.getValue(), in updateOSUInfoCache()
202 entry.getKey(), mOSUSequence.getAndIncrement())); in updateOSUInfoCache()
206 osus.put(entry.getKey(), existing); in updateOSUInfoCache()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/
DPrinterHashMap.java23 public static String getKey(NsdServiceInfo serviceInfo) { in getKey() method in PrinterHashMap
28 return put(getKey(device), device); in addPrinter()
32 return remove(getKey(device)); in removePrinter()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
DPrinterHashMap.java24 public static String getKey(NsdServiceInfo serviceInfo) { in getKey() method in PrinterHashMap
28 return put(getKey(device), device); in addPrinter()
31 return remove(getKey(device)); in removePrinter()
/frameworks/ml/bordeaux/learning/predictor_histogram/java/android/bordeaux/learning/
DHistogramPredictor.java126 String app = entry.getKey(); in getClassScores()
190 result += "{ " + entry.getKey() + " : " + in toString()
209 String featureName = entry.getKey(); in findTopClasses()
222 String appName = item.getKey(); in findTopClasses()
234 String appName = entry.getKey(); in findTopClasses()
276 String featureName = entry.getKey(); in addSample()
309 model.put(entry.getKey(), entry.getValue().getCounter()); in getModel()
343 useFeature(entry.getKey()); in setModel()
344 mPredictor.get(entry.getKey()).setCounter(entry.getValue()); in setModel()
367 String className = entry.getKey(); in loadClassCounter()
/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/base/core/tests/coretests/src/com/android/internal/app/procstats/
DSparseMappingTableTest.java105 key = table1.getKey(ID1); in testParceling()
108 key = table1.getKey(ID2); in testParceling()
152 key = table1.getKey(ID1); in testParcelingWithReset()
155 key = table1.getKey(ID2); in testParcelingWithReset()
200 key = table.getKey(ID1); in testInvalidKey()
/frameworks/base/services/core/java/com/android/server/notification/
DGroupHelper.java49 if (DEBUG) Log.i(TAG, "POSTED " + sbn.getKey()); in onNotificationPosted()
68 notificationsForPackage.add(sbn.getKey()); in onNotificationPosted()
114 if (notificationsForPackage.remove(sbn.getKey())) { in maybeUngroup()
117 notificationsToUnAutogroup.add(sbn.getKey()); in maybeUngroup()
DSnoozeHelper.java133 scheduleRepost(record.sbn.getPackageName(), record.getKey(), record.getUserId(), duration); in snooze()
142 Slog.d(TAG, "Snoozing " + record.getKey()); in snooze()
153 pkgRecords.put(record.getKey(), record); in snooze()
156 mPackages.put(record.getKey(), record.sbn.getPackageName()); in snooze()
157 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()
/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/ml/bordeaux/learning/stochastic_linear_ranker/java/android/bordeaux/learning/
DStochasticLinearRanker.java113 wKeys[i] = e.getKey(); in loadModel()
122 res = setModelParameter(e.getKey(), e.getValue()); in loadModel()
145 Sw = Sw + "<" + e.getKey() + "," + e.getValue() + "> "; in print()
147 Sp = Sp + "<" + e.getKey() + "," + e.getValue() + "> "; in print()
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DBordeauxSessionManager.java148 skey.value = session.getKey(); in saveSessions()
184 new LearningUpdateCallback(session.getKey())); in loadSessions()
193 if (session.getKey().startsWith(callingUid + "#")) { in removeAllSessionsFromCaller()
194 remove_keys.add(session.getKey()); in removeAllSessionsFromCaller()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DSignature.java147 stringBuffer.append(entry.getValue().toString("input", entry.getKey()) + "\n"); in toString()
150 stringBuffer.append(entry.getValue().toString("output", entry.getKey()) + "\n"); in toString()
176 String portName = entry.getKey(); in checkInputPortsConform()
197 String portName = entry.getKey(); in checkOutputPortsConform()
/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()
/frameworks/base/core/java/android/net/
DPskKeyManager.java205 public SecretKey getKey(String identityHint, String identity, Socket socket) { in getKey() method in PskKeyManager
223 public SecretKey getKey(String identityHint, String identity, SSLEngine engine) { in getKey() method in PskKeyManager
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationGroupManager.java181 return mGroupMap.get(sbn.getKey()).summary; in getIsolatedChild()
336 return mIsolatedEntries.containsKey(sbn.getKey()); in isIsolated()
355 return sbn.getKey(); in getGroupKey()
380 mIsolatedEntries.put(sbn.getKey(), sbn); in onHeadsUpStateChanged()
393 if (mIsolatedEntries.containsKey(sbn.getKey())) { in onHeadsUpStateChanged()
396 mIsolatedEntries.remove(sbn.getKey()); in onHeadsUpStateChanged()
456 pw.println("\n key: " + entry.getKey()); pw.println(entry.getValue()); in dump()
460 pw.print(" "); pw.print(entry.getKey()); in dump()
/frameworks/av/services/mediaanalytics/
DMediaAnalyticsService.cpp476 if (only != NULL && strcmp(only, (*it)->getKey()) != 0) { in dumpSummaries()
477 ALOGV("Told to omit '%s'", (*it)->getKey()); in dumpSummaries()
523 strcmp(only, (*it)->getKey().c_str()) != 0) { in dumpQueue()
524 ALOGV("Omit '%s', it's not '%s'", (*it)->getKey().c_str(), only); in dumpQueue()
580 if (nitem->getKey() == oitem->getKey()) { in compatibleItems()
657 AString key = item->getKey(); in contentValid()
710 ALOGD("no handler for type %s", item->getKey().c_str()); in summarize()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DTestResizingRelayoutWithAutoMeasure.java139 Rect rect = endPositions.get(entry.getKey()); in assertStartItemPositions()
140 assertThat(log + "view for position " + entry.getKey() + " at" + entry.getValue(), rect, in assertStartItemPositions()
142 assertThat(log + "rect for position " + entry.getKey(), entry.getValue(), is(rect)); in assertStartItemPositions()
150 logBuilder.append(entry.getKey()).append(":").append(entry.getValue()).append("\n"); in log()
154 logBuilder.append(entry.getKey()).append(":").append(entry.getValue()).append("\n"); in log()

12345678910>>...15