Home
last modified time | relevance | path

Searched refs:getIndexForValue (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/src/com/android/settings/accessibility/
DListDialogPreference.java89 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/
DCollectionUtilsTest.kt195 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/
DMulticastRoutingCoordinatorService.java30 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/
DCollectionUtils.java403 public static <T> int getIndexForValue(SparseArray<T> sparseArray, T value) { in getIndexForValue() method in CollectionUtils