Home
last modified time | relevance | path

Searched refs:InstanceKey (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/utils/
DMockedServiceManager.java35 private final HashMap<InstanceKey, Object> mOldInstances = new HashMap<>();
37 private final LinkedList<InstanceKey> mInstanceKeys = new LinkedList<>();
39 private static class InstanceKey { class in MockedServiceManager
44 InstanceKey(final Class c, final String instName, final Object obj) { in InstanceKey() method in MockedServiceManager.InstanceKey
61 InstanceKey other = (InstanceKey) obj; in equals()
85 InstanceKey key = new InstanceKey(c, instanceName, obj); in replaceInstance()
94 Iterator<InstanceKey> it = mInstanceKeys.descendingIterator(); in restoreInstances()
97 InstanceKey key = it.next(); in restoreInstances()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DMockedServiceManager.java34 private final HashMap<InstanceKey, Object> mOldInstances = new HashMap<>();
36 private final LinkedList<InstanceKey> mInstanceKeys = new LinkedList<>();
38 private static class InstanceKey { class in MockedServiceManager
43 InstanceKey(final Class c, final String instName, final Object obj) { in InstanceKey() method in MockedServiceManager.InstanceKey
60 InstanceKey other = (InstanceKey) obj; in equals()
84 InstanceKey key = new InstanceKey(c, instanceName, obj); in replaceInstance()
93 Iterator<InstanceKey> it = mInstanceKeys.descendingIterator(); in restoreInstances()
96 InstanceKey key = it.next(); in restoreInstances()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastServiceTestBase.java83 private final HashMap<InstanceKey, Object> mOldInstances = new HashMap<>();
85 private final LinkedList<InstanceKey> mInstanceKeys = new LinkedList<>();
89 private static class InstanceKey { class in CellBroadcastServiceTestBase
94 InstanceKey(final Class c, final String instName, final Object obj) { in InstanceKey() method in CellBroadcastServiceTestBase.InstanceKey
111 InstanceKey other = (InstanceKey) obj; in equals()
191 InstanceKey key = new InstanceKey(c, instanceName, obj); in replaceInstance()
200 Iterator<InstanceKey> it = mInstanceKeys.descendingIterator(); in restoreInstances()
203 InstanceKey key = it.next(); in restoreInstances()