Home
last modified time | relevance | path

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

12345678910>>...13

/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/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/base/packages/SystemUI/src/com/android/systemui/tuner/
DStatusBarSwitch.java59 setChecked(!mBlacklist.contains(getKey())); in onTuningChanged()
66 if (!mBlacklist.contains(getKey())) { in persistBoolean()
68 getKey()); in persistBoolean()
69 mBlacklist.add(getKey()); in persistBoolean()
73 if (mBlacklist.remove(getKey())) { in persistBoolean()
74 MetricsLogger.action(getContext(), MetricsEvent.TUNER_STATUS_BAR_ENABLE, getKey()); in persistBoolean()
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DOSUCache.java124 ScanInstance current = aged.remove(entry.getKey()); in scanEnd()
126 mCache.put(entry.getKey(), new ScanInstance(entry.getValue(), mInstant)); in scanEnd()
129 Log.d("ZXZ", "Add OSU " + entry.getKey() + " from " + entry.getValue().SSID); in scanEnd()
131 Log.d("ZXZ", "Update OSU " + entry.getKey() + " with " + in scanEnd()
135 Log.d("ZXZ", "Existing OSU " + entry.getKey() + ", " in scanEnd()
143 Log.d("ZXZ", "Remove OSU " + entry.getKey() + ", " in scanEnd()
145 mCache.remove(entry.getKey()); in scanEnd()
157 results.put(entry.getKey(), entry.getValue().getScanResult()); in scanEnd()
DIconCache.java103 private IconKey getKey() { in getKey() method in IconCache.QueryEntry
162 if (queryEntry.getKey().getFileName().equals(fileName)) { in updateIcon()
163 key = queryEntry.getKey(); in updateIcon()
181 if (queryEntry.getKey().equals(key)) { in updateIcon()
233 HSIconFileElement iconElement = mCache.get(entry.getKey()); in startIconQuery()
235 osuInfo.setIconFileElement(iconElement, entry.getKey().getFileName()); in startIconQuery()
273 mOSUManager.doIconQuery(bssid, queryEntry.getKey().getFileName()); in initiateQuery()
/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/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/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/
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/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/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()
198 key = table.getKey(ID1); in testInvalidKey()
/frameworks/base/packages/ExtServices/src/android/ext/services/notification/
DRanker.java54 if (DEBUG) Log.i(TAG, "ENQUEUED " + sbn.getKey()); in onNotificationEnqueued()
60 if (DEBUG) Log.i(TAG, "POSTED " + sbn.getKey()); in onNotificationPosted()
79 notificationsForPackage.add(sbn.getKey()); in onNotificationPosted()
131 if (notificationsForPackage.remove(sbn.getKey())) { in maybeUnbundle()
134 notificationsToUnAutobundle.add(sbn.getKey()); in maybeUnbundle()
/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/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/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/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()
452 pw.println("\n key: " + entry.getKey()); pw.println(entry.getValue()); in dump()
456 pw.print(" "); pw.print(entry.getKey()); in dump()
/frameworks/base/core/java/android/content/
DRestrictionsManager.java702 bundle.putBoolean(entry.getKey(), entry.getSelectedState()); in addRestrictionToBundle()
707 bundle.putStringArray(entry.getKey(), entry.getAllSelectedStrings()); in addRestrictionToBundle()
710 bundle.putInt(entry.getKey(), entry.getIntValue()); in addRestrictionToBundle()
714 bundle.putString(entry.getKey(), entry.getSelectedString()); in addRestrictionToBundle()
719 bundle.putBundle(entry.getKey(), childBundle); in addRestrictionToBundle()
727 bundle.putParcelableArray(entry.getKey(), bundleArray); in addRestrictionToBundle()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DTestResizingRelayoutWithAutoMeasure.java140 Rect rect = endPositions.get(entry.getKey()); in assertStartItemPositions()
141 assertThat(log + "view for position " + entry.getKey() + " at" + entry.getValue(), rect, in assertStartItemPositions()
143 assertThat(log + "rect for position " + entry.getKey(), entry.getValue(), is(rect)); in assertStartItemPositions()
151 logBuilder.append(entry.getKey()).append(":").append(entry.getValue()).append("\n"); in log()
155 logBuilder.append(entry.getKey()).append(":").append(entry.getValue()).append("\n"); in log()
/frameworks/opt/bitmap/src/com/android/bitmap/
DUnrefedPooledCache.java155 mCache.remove(eldestUnref.getKey()); in poll()
157 Log.e(TAG, "POOL SCAVENGE SUCCESS, oldKey=" + eldestUnref.getKey()); in poll()
194 sb.append(item.getKey()); in toDebugString()
204 sb.append(item.getKey()); in toDebugString()
/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.java203 public SecretKey getKey(String identityHint, String identity, Socket socket) { in getKey() method in PskKeyManager
221 public SecretKey getKey(String identityHint, String identity, SSLEngine engine) { in getKey() method in PskKeyManager
/frameworks/support/v7/preference/src/android/support/v7/preference/
DPreferenceGroup.java186 final String key = preference.getKey(); in addPreference()
233 final String key = preference.getKey(); in removePreferenceInt()
286 if (TextUtils.equals(getKey(), key)) { in findPreference()
292 final String curKey = preference.getKey(); in findPreference()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DXMLNode.java61 … mAttributes.put(entry.getKey(), new NodeAttribute(entry.getKey(), "", entry.getValue())); in XMLNode()
87 if (!entry.getValue().equals(that.mAttributes.get(entry.getKey()))) { in equals()
203 map.put(entry.getKey(), entry.getValue().getValue()); in getTextualAttributes()
226 …sb.append(' ').append(entry.getKey()).append("='").append(entry.getValue().getValue()).append('\''… in toString()

12345678910>>...13