Home
last modified time | relevance | path

Searched refs:indexOfKey (Results 1 – 25 of 339) sorted by relevance

12345678910>>...14

/frameworks/base/core/java/android/database/
DRedactingCursor.java83 final int i = mRedactions.indexOfKey(columnIndex); in getDouble()
93 final int i = mRedactions.indexOfKey(columnIndex); in getFloat()
103 final int i = mRedactions.indexOfKey(columnIndex); in getInt()
113 final int i = mRedactions.indexOfKey(columnIndex); in getLong()
123 final int i = mRedactions.indexOfKey(columnIndex); in getShort()
133 final int i = mRedactions.indexOfKey(columnIndex); in getString()
143 final int i = mRedactions.indexOfKey(columnIndex); in copyStringToBuffer()
154 final int i = mRedactions.indexOfKey(columnIndex); in getBlob()
164 final int i = mRedactions.indexOfKey(columnIndex); in getType()
174 final int i = mRedactions.indexOfKey(columnIndex); in isNull()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/wakeups/
DCpuWakeupStatsTest.java184 assertThat(attribution.get(subsystems[i]).indexOfKey(uids[j])).isLessThan(0); in irqAttributionAllCombinations()
211 assertThat(attribution.get(CPU_WAKEUP_SUBSYSTEM_ALARM).indexOfKey(TEST_UID_1)).isLessThan( in alarmIrqAttributionSolo()
213 assertThat(attribution.get(CPU_WAKEUP_SUBSYSTEM_ALARM).indexOfKey(TEST_UID_2)).isLessThan( in alarmIrqAttributionSolo()
217 assertThat(attribution.get(CPU_WAKEUP_SUBSYSTEM_ALARM).indexOfKey(TEST_UID_4)).isLessThan( in alarmIrqAttributionSolo()
245 assertThat(attribution.get(CPU_WAKEUP_SUBSYSTEM_SOUND_TRIGGER).indexOfKey( in soundTriggerIrqAttributionSolo()
247 assertThat(attribution.get(CPU_WAKEUP_SUBSYSTEM_SOUND_TRIGGER).indexOfKey( in soundTriggerIrqAttributionSolo()
251 assertThat(attribution.get(CPU_WAKEUP_SUBSYSTEM_SOUND_TRIGGER).indexOfKey( in soundTriggerIrqAttributionSolo()
278 assertThat(attribution.get(CPU_WAKEUP_SUBSYSTEM_WIFI).indexOfKey(TEST_UID_1)).isLessThan(0); in wifiIrqAttributionSolo()
279 assertThat(attribution.get(CPU_WAKEUP_SUBSYSTEM_WIFI).indexOfKey(TEST_UID_2)).isLessThan(0); in wifiIrqAttributionSolo()
280 assertThat(attribution.get(CPU_WAKEUP_SUBSYSTEM_WIFI).indexOfKey(TEST_UID_3)).isLessThan(0); in wifiIrqAttributionSolo()
[all …]
DWakingActivityHistoryTest.java80 assertThat(recordedHistory.indexOfKey(timestamp - 1)).isLessThan(0); in recordActivityAppendsUids()
81 assertThat(recordedHistory.indexOfKey(timestamp)).isAtLeast(0); in recordActivityAppendsUids()
82 assertThat(recordedHistory.indexOfKey(timestamp + 1)).isLessThan(0); in recordActivityAppendsUids()
98 assertThat(recordedUids.indexOfKey(1)).isAtLeast(0); in recordActivityAppendsUids()
126 assertThat(recordedHistory.indexOfKey(timestamp - 1)).isLessThan(0); in recordActivityDoesNotDeleteExistingUids()
127 assertThat(recordedHistory.indexOfKey(timestamp)).isAtLeast(0); in recordActivityDoesNotDeleteExistingUids()
128 assertThat(recordedHistory.indexOfKey(timestamp + 1)).isLessThan(0); in recordActivityDoesNotDeleteExistingUids()
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp157 index = mByteArrayProperties.indexOfKey(String8("mock-request")); in getKeyRequest()
165 index = mStringProperties.indexOfKey(String8("mock-defaultUrl")); in getKeyRequest()
173 index = mStringProperties.indexOfKey(String8("mock-keyRequestType")); in getKeyRequest()
283 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-request")); in getProvisionRequest()
291 index = mStringProperties.indexOfKey(String8("mock-defaultUrl")); in getProvisionRequest()
325 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-secure-stop")); in getSecureStop()
345 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-secure-stop1")); in getSecureStops()
353 index = mByteArrayProperties.indexOfKey(String8("mock-secure-stop2")); in getSecureStops()
389 ssize_t index = mStringProperties.indexOfKey(name); in getPropertyString()
402 ssize_t index = mByteArrayProperties.indexOfKey(name); in getPropertyByteArray()
[all …]
/frameworks/base/services/core/java/com/android/server/utils/
DWatchedSparseBooleanMatrix.java207 int r = indexOfKey(row, false); in get()
208 int c = indexOfKey(col, false); in get()
221 int r = indexOfKey(row); in put()
222 int c = indexOfKey(col); in put()
228 r = indexOfKey(row, true); in put()
231 c = indexOfKey(col, true); in put()
233 r = indexOfKey(row); in put()
234 c = indexOfKey(col); in put()
250 int i = indexOfKey(key, false); in deleteKey()
386 public int indexOfKey(int key) { in indexOfKey() method in WatchedSparseBooleanMatrix
[all …]
DWatchedSparseIntArray.java122 final int index = mStorage.indexOfKey(key); in delete()
216 public int indexOfKey(int key) { in indexOfKey() method in WatchedSparseIntArray
217 return mStorage.indexOfKey(key); in indexOfKey()
/frameworks/base/services/permission/java/com/android/server/permission/access/immutable/
DIntSet.kt30 fun indexOf(element: Int): Int = array.indexOfKey(element) in isEmpty()
52 val index = array.indexOfKey(element) in isEmpty()
71 private fun SparseBooleanArray.contains(key: Int): Boolean = indexOfKey(key) >= 0
DIntMap.kt32 fun indexOfKey(key: Int): Int = array.indexOfKey(key) in isEmpty() method
61 val index = indexOfKey(key) in putReturnOld()
75 val index = indexOfKey(key) in removeReturnOld()
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuUidBpfMapReader.java98 int firstIndex = mData.indexOfKey(startUid); in removeUidsInRange()
101 firstIndex = mData.indexOfKey(startUid); in removeUidsInRange()
103 int lastIndex = mData.indexOfKey(endUid); in removeUidsInRange()
106 lastIndex = mData.indexOfKey(endUid); in removeUidsInRange()
/frameworks/av/media/img_utils/src/
DTiffWriter.cpp156 ssize_t index = mTagMaps[i].indexOfKey(tag); in lookupDefinition()
170 ssize_t index = mNamedIfds.indexOfKey(ifd); in getEntry()
179 ssize_t index = mNamedIfds.indexOfKey(ifd); in removeEntry()
195 ssize_t index = mNamedIfds.indexOfKey(ifd); in addEntry()
208 ssize_t index = mNamedIfds.indexOfKey(ifd); in addStrip()
218 ssize_t index = mNamedIfds.indexOfKey(ifd); in addIfd()
241 ssize_t index = mNamedIfds.indexOfKey(ifd); in addSubIfd()
247 ssize_t parentIndex = mNamedIfds.indexOfKey(parentIfd); in addSubIfd()
330 ssize_t index = mNamedIfds.indexOfKey(ifd); in hasIfd()
/frameworks/base/core/java/android/util/
DSparseDoubleArray.java93 final int index = mValues.indexOfKey(key); in get()
132 public int indexOfKey(int key) { in indexOfKey() method in SparseDoubleArray
133 return mValues.indexOfKey(key); in indexOfKey()
DSparseArrayMap.java129 public int indexOfKey(int key) { in indexOfKey() method in SparseArrayMap
130 return mData.indexOfKey(key); in indexOfKey()
138 public int indexOfKey(int key, @NonNull K mapKey) { in indexOfKey() method in SparseArrayMap
141 return data.indexOfKey(mapKey); in indexOfKey()
/frameworks/av/drm/common/
DDrmInfo.cpp50 if (NAME_NOT_FOUND != mAttributes.indexOfKey(key)) { in get()
56 int DrmInfo::indexOfKey(const String8& key) const { in indexOfKey() function in DrmInfo
57 return mAttributes.indexOfKey(key); in indexOfKey()
/frameworks/av/services/audiopolicy/engine/common/include/
DVolumeCurve.h88 if (indexOfKey(device) < 0) { in getCurvesFor()
140 ALOG_ASSERT(mOriginVolumeCurves.indexOfKey(deviceCategory) >= 0, "Invalid device category"); in getOriginVolumeCurve()
145 ALOG_ASSERT(indexOfKey(deviceCategory) >= 0, "Invalid device category for Volume Curve"); in setVolumeCurve()
152 ssize_t index = indexOfKey(deviceCategory); in add()
/frameworks/base/services/core/java/com/android/server/am/
DPendingTempAllowlists.java63 int indexOfKey(int key) { in indexOfKey() method in PendingTempAllowlists
65 return mPendingTempAllowlist.indexOfKey(key); in indexOfKey()
DAppFGSTracker.java270 final int indexOfKey = notificationIDs.indexOfKey(notificationId); in handleForegroundServiceNotificationUpdated() local
271 if (indexOfKey >= 0) { in handleForegroundServiceNotificationUpdated()
272 final boolean wasVisible = notificationIDs.valueAt(indexOfKey); in handleForegroundServiceNotificationUpdated()
273 notificationIDs.removeAt(indexOfKey); in handleForegroundServiceNotificationUpdated()
314 final int indexOfKey; in handleNotificationPosted() local
316 || (indexOfKey = notificationIDs.indexOfKey(notificationId)) < 0) { in handleNotificationPosted()
319 if (notificationIDs.valueAt(indexOfKey)) { in handleNotificationPosted()
331 notificationIDs.setValueAt(indexOfKey, true); in handleNotificationPosted()
344 final int indexOfKey; in handleNotificationRemoved() local
346 || (indexOfKey = notificationIDs.indexOfKey(notificationId)) < 0) { in handleNotificationRemoved()
[all …]
DForegroundServiceTypeLoggerModule.java162 int fgsIndex = uidState.mRunningFgs.indexOfKey(apiType); in logForegroundServiceStart()
165 fgsIndex = uidState.mRunningFgs.indexOfKey(apiType); in logForegroundServiceStart()
252 final int apiTypeIndex = uidState.mOpenWithFgsCount.indexOfKey(apiType); in logForegroundServiceStop()
302 uidState.mOpenedWithoutFgsCount.indexOfKey(apiType); in logForegroundServiceApiEventBegin()
307 uidState.mOpenedWithoutFgsCount.indexOfKey(apiType); in logForegroundServiceApiEventBegin()
326 int openWithFgsIndex = uidState.mOpenWithFgsCount.indexOfKey(apiType); in logForegroundServiceApiEventBegin()
330 openWithFgsIndex = uidState.mOpenWithFgsCount.indexOfKey(apiType); in logForegroundServiceApiEventBegin()
367 final int apiIndex = uidState.mOpenWithFgsCount.indexOfKey(apiType); in logForegroundServiceApiEventEnd()
395 if (uidState.mOpenedWithoutFgsCount.indexOfKey(apiType) < 0) { in logForegroundServiceApiEventEnd()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DCarrierConfigTracker.java153 if (mCallStrengthConfigs.indexOfKey(subId) >= 0) { in getCallStrengthConfig()
171 if (mNoCallingConfigs.indexOfKey(subId) >= 0) { in getNoCallingConfig()
189 if (mCarrierProvisionsWifiMergedNetworks.indexOfKey(subId) >= 0) { in getCarrierProvisionsWifiMergedNetworksBool()
238 if (mShowOperatorNameConfigs.indexOfKey(subId) >= 0) { in getShowOperatorNameInStatusBarConfig()
/frameworks/av/media/libmediahelper/
DAudioParameter.cpp113 if (mParameters.indexOfKey(key) < 0) { in AudioParameter()
150 if (mParameters.indexOfKey(key) < 0) { in add()
188 if (mParameters.indexOfKey(key) >= 0) { in remove()
198 if (mParameters.indexOfKey(key) >= 0) { in get()
261 return mParameters.indexOfKey(key) >= 0; in containsKey()
/frameworks/av/camera/include/camera/
DCameraParameters2.h136 ssize_t i = indexOfKey(key); in valueFor()
142 ssize_t indexOfKey(const KeyT& key) const { in indexOfKey() function
154 ssize_t vectorIdx = indexOfKey(key); in removeItem()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiSelector.java812 if (mSelectorAttributes.indexOfKey(UiSelector.SELECTOR_INSTANCE) >= 0) { in matchOrUpdateInstance()
818 if (mSelectorAttributes.indexOfKey(UiSelector.SELECTOR_COUNT) >= 0) { in matchOrUpdateInstance()
839 if (mSelectorAttributes.indexOfKey(UiSelector.SELECTOR_CHILD) < 0 && in isLeaf()
840 mSelectorAttributes.indexOfKey(UiSelector.SELECTOR_PARENT) < 0) { in isLeaf()
847 if (mSelectorAttributes.indexOfKey(UiSelector.SELECTOR_CHILD) < 0) { in hasChildSelector()
854 if (mSelectorAttributes.indexOfKey(UiSelector.SELECTOR_PATTERN) < 0) { in hasPatternSelector()
861 if (mSelectorAttributes.indexOfKey(UiSelector.SELECTOR_CONTAINER) < 0) { in hasContainerSelector()
868 if (mSelectorAttributes.indexOfKey(UiSelector.SELECTOR_PARENT) < 0) { in hasParentSelector()
882 if (mSelectorAttributes.indexOfKey(UiSelector.SELECTOR_CHILD) >= 0) { in getLastSubSelector()
888 } else if (mSelectorAttributes.indexOfKey(UiSelector.SELECTOR_PARENT) >= 0) { in getLastSubSelector()
/frameworks/av/media/libstagefright/omx/
DOMXStore.cpp168 if (mPluginByComponentName.indexOfKey(name8) >= 0) { in addPlugin()
216 ssize_t index = mPluginByComponentName.indexOfKey(String8(name)); in makeComponentInstance()
239 ssize_t index = mPluginByInstance.indexOfKey(component); in destroyComponentInstance()
278 ssize_t index = mPluginByComponentName.indexOfKey(String8(name)); in getRolesOfComponent()
/frameworks/av/media/module/mpeg2ts/
DCasManager.cpp83 ssize_t index = mStreamPidToCasMap.indexOfKey(elementaryPID); in addStream()
118 ssize_t index = mStreamPidToCasMap.indexOfKey(elementaryPID); in getCasSession()
283 ssize_t index = mProgramCasMap.indexOfKey(programNumber); in addProgram()
301 ssize_t index = mProgramCasMap.indexOfKey(programNumber); in addStream()
320 ssize_t index = mProgramCasMap.indexOfKey(programNumber); in getCasInfo()
334 ssize_t index = mCAPidToSessionIdMap.indexOfKey(pid); in parsePID()
/frameworks/base/services/core/java/com/android/server/wm/
DMirrorActiveUids.java47 final int index = mUidStates.indexOfKey(uid); in onUidProcStateChanged()
59 final int index = mNumNonAppVisibleWindowMap.indexOfKey(uid); in onNonAppSurfaceVisibilityChanged()
/frameworks/native/services/inputflinger/tests/
DFakeEventHub.cpp240 ssize_t index = mDevices.indexOfKey(deviceId); in getDevice()
270 ssize_t index = device->absoluteAxes.indexOfKey(axis); in getAbsoluteAxisInfo()
283 return device->relativeAxes.indexOfKey(axis) >= 0; in hasRelativeAxis()
326 ssize_t index = device->keysByUsageCode.indexOfKey(usageCode); in getKey()
332 ssize_t index = device->keysByScanCode.indexOfKey(scanCode); in getKey()
385 ssize_t index = device->scanCodeStates.indexOfKey(scanCode); in getScanCodeState()
401 ssize_t index = device->keyCodeStates.indexOfKey(keyCode); in getKeyCodeState()
412 ssize_t index = device->switchStates.indexOfKey(sw); in getSwitchState()
424 ssize_t index = device->absoluteAxisValue.indexOfKey(axis); in getAbsoluteAxisValue()
500 ssize_t index = device->keysByScanCode.indexOfKey(scanCode); in hasScanCode()
[all …]

12345678910>>...14