/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | SparseWeakArray.java | 81 int i = binarySearch(mKeys, 0, mSize, key); in get() 94 int i = binarySearch(mKeys, 0, mSize, key); in delete() 153 int i = binarySearch(mKeys, 0, mSize, key); in put() 170 i = ~binarySearch(mKeys, 0, mSize, key); in put() 240 return binarySearch(mKeys, 0, mSize, key); in indexOfKey() 307 private static int binarySearch(long[] a, int start, int len, long key) { in binarySearch() method in SparseWeakArray
|
/frameworks/base/telephony/java/android/telephony/ |
D | AccessNetworkUtils.java | 295 || Arrays.binarySearch(addlBand2, uarfcn) >= 0) { in getOperatingBandForUarfcn() 300 || Arrays.binarySearch(addlBand4, uarfcn) >= 0) { in getOperatingBandForUarfcn() 311 || Arrays.binarySearch(addlBand5, uarfcn) >= 0) { in getOperatingBandForUarfcn() 313 } else if (Arrays.binarySearch(addlBand6, uarfcn) >= 0) { in getOperatingBandForUarfcn() 316 || Arrays.binarySearch(addlBand7, uarfcn) >= 0) { in getOperatingBandForUarfcn() 323 || Arrays.binarySearch(addlBand10, uarfcn) >= 0) { in getOperatingBandForUarfcn() 328 || Arrays.binarySearch(addlBand12, uarfcn) >= 0) { in getOperatingBandForUarfcn() 331 || Arrays.binarySearch(addlBand13, uarfcn) >= 0) { in getOperatingBandForUarfcn() 334 || Arrays.binarySearch(addlBand14, uarfcn) >= 0) { in getOperatingBandForUarfcn() 337 || Arrays.binarySearch(addlBand19, uarfcn) >= 0) { in getOperatingBandForUarfcn() [all …]
|
/frameworks/base/core/java/android/util/ |
D | SparseLongArray.java | 101 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get() 114 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete() 153 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put() 229 return ContainerHelpers.binarySearch(mKeys, mSize, key); in indexOfKey()
|
D | SparseIntArray.java | 108 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get() 121 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete() 143 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put() 236 return ContainerHelpers.binarySearch(mKeys, mSize, key); in indexOfKey()
|
D | SparseArray.java | 134 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get() 147 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete() 162 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in removeReturnOld() 260 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put() 277 i = ~ContainerHelpers.binarySearch(mKeys, mSize, key); in put() 389 return ContainerHelpers.binarySearch(mKeys, mSize, key); in indexOfKey()
|
D | ContainerHelpers.java | 22 static int binarySearch(int[] array, int size, int value) { in binarySearch() method in ContainerHelpers 41 static int binarySearch(long[] array, int size, long value) { in binarySearch() method in ContainerHelpers
|
D | LongSparseLongArray.java | 110 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get() 123 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete() 145 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put() 221 return ContainerHelpers.binarySearch(mKeys, mSize, key); in indexOfKey()
|
D | SparseBooleanArray.java | 101 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get() 114 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete() 140 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put() 242 return ContainerHelpers.binarySearch(mKeys, mSize, key); in indexOfKey()
|
D | LongSparseArray.java | 121 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get() 134 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete() 217 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put() 234 i = ~ContainerHelpers.binarySearch(mKeys, mSize, key); in put() 346 return ContainerHelpers.binarySearch(mKeys, mSize, key); in indexOfKey()
|
D | IntArray.java | 131 public int binarySearch(int value) { in binarySearch() method in IntArray 132 return ContainerHelpers.binarySearch(mValues, mSize, value); in binarySearch()
|
D | ArraySet.java | 95 private int binarySearch(int[] hashes, int hash) { in binarySearch() method in ArraySet 97 return ContainerHelpers.binarySearch(hashes, mSize, hash); in binarySearch() 113 int index = binarySearch(mHashes, hash); in indexOf() 152 int index = binarySearch(mHashes, 0); in indexOfNull()
|
/frameworks/base/core/java/android/preference/ |
D | PreferenceGroupAdapter.java | 205 int insertPos = Collections.binarySearch(mPreferenceLayouts, pl); in addPreferenceClassName() 251 if (Collections.binarySearch(mPreferenceLayouts, mTempPreferenceLayout) < 0 || in getView() 314 int viewType = Collections.binarySearch(mPreferenceLayouts, mTempPreferenceLayout); in getItemViewType()
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | SparseMappingTable.java | 122 final int idx = binarySearch(id); in getOrAddKey() 166 final int idx = binarySearch(id); in getKey() 226 final int idx = binarySearch(id); in getValueForId() 397 private int binarySearch(byte id) { in binarySearch() method in SparseMappingTable.Table
|
/frameworks/base/core/java/android/content/pm/split/ |
D | SplitDependencyLoader.java | 183 final int depIdx = Arrays.binarySearch(pkg.getSplitNames(), splitDependency); in createDependenciesFromPackage() 210 final int depIdx = Arrays.binarySearch(pkg.getSplitNames(), configForSplit); in createDependenciesFromPackage()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationHistoryProtoHelper.java | 260 final int packageIndex = Arrays.binarySearch(stringPool, notification.getPackage()); in writeNotification() 269 final int channelNameIndex = Arrays.binarySearch(stringPool, notification.getChannelName()); in writeNotification() 277 final int channelIdIndex = Arrays.binarySearch(stringPool, notification.getChannelId()); in writeNotification() 286 final int conversationIdIndex = Arrays.binarySearch( in writeNotification()
|
/frameworks/base/core/java/android/app/ |
D | AppCompatCallbacks.java | 56 if (Arrays.binarySearch(mDisabledChanges, changeId) < 0) { in isChangeEnabled()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BinderLatencyBuckets.java | 81 int searchResult = Arrays.binarySearch(mBuckets, sample); in sampleToBucket()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
D | ItemGroup.java | 37 private static int binarySearch(SparseIntArray array, int value) { in binarySearch() method in ItemGroup 301 int result = binarySearch(hierarchyStart, position); in getItemIndex()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | SparseRectFArray.java | 268 final int arrayIndex = Arrays.binarySearch(mKeys, index); in get() 286 final int arrayIndex = Arrays.binarySearch(mKeys, index); in getFlags()
|
/frameworks/base/services/core/java/com/android/server/utils/ |
D | WatchedSparseBooleanMatrix.java | 352 return binarySearch(mKeys, mSize, key); in indexOfKey() 367 int i = binarySearch(mKeys, mSize, key); in indexOfKey() 691 private static int binarySearch(int[] array, int size, int value) { in binarySearch() method in WatchedSparseBooleanMatrix
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | PersistentDataStore.java | 359 int index = Collections.binarySearch(mKeyboardLayouts, keyboardLayout); in addKeyboardLayout() 371 int index = Collections.binarySearch(mKeyboardLayouts, keyboardLayout); in removeKeyboardLayout() 400 int index = Collections.binarySearch(mKeyboardLayouts, mCurrentKeyboardLayout); in switchKeyboardLayout()
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | CameraMetadata.java | 237 if (filterTags != null && Arrays.binarySearch(filterTags, in getKeys() 298 return Arrays.binarySearch(filterTags, keyTag) >= 0; in shouldKeyBeAdded()
|
/frameworks/base/core/java/android/os/health/ |
D | HealthKeys.java | 163 final int index = Arrays.binarySearch(mKeys[type], key); in getIndex()
|
/frameworks/base/telephony/java/android/telephony/gba/ |
D | TlsParams.java | 279 return Arrays.binarySearch(CS_EXPECTED, csId) >= 0; in isTlsCipherSuiteSupported()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/ |
D | BatchingAlarmStore.java | 257 int index = Collections.binarySearch(list, newBatch, sBatchOrder); in addBatch() 305 int index = Collections.binarySearch(mAlarms, alarm, sIncreasingTimeOrder); in add()
|