Searched refs:getIndexForValue (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | ListDialogPreference.java | 89 mValueIndex = getIndexForValue(mValue); in setValues() 167 final int selectedPosition = getIndexForValue(mValue); in onPrepareDialogBuilder() 180 protected int getIndexForValue(int value) { in getIndexForValue() method in ListDialogPreference 204 mValueIndex = getIndexForValue(value); in setValue()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | CollectionUtilsTest.kt | 195 assertEquals(1, CollectionUtils.getIndexForValue(sparseArray, value1)); in testGetIndexForValue() 196 assertEquals(1, CollectionUtils.getIndexForValue(sparseArray, value1Copy)); in testGetIndexForValue() 197 assertEquals(2, CollectionUtils.getIndexForValue(sparseArray, value2)); in testGetIndexForValue()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | MulticastRoutingCoordinatorService.java | 30 import static com.android.net.module.util.CollectionUtils.getIndexForValue; 155 int mapIndex = getIndexForValue(mInterfaces, ifName); in getInterfaceIndex() 255 mInterfaces.removeAt(getIndexForValue(mInterfaces, ifName)); in removeInterfaceFromMulticastRouting() 284 int mapIndex = getIndexForValue(mVirtualInterfaces, ifName); in getVirtualInterfaceIndex() 309 if (getIndexForValue(mVirtualInterfaces, ifName) >= 0) return true; in maybeAddAndTrackInterface()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | CollectionUtils.java | 403 public static <T> int getIndexForValue(SparseArray<T> sparseArray, T value) { in getIndexForValue() method in CollectionUtils
|