Searched refs:mAppStateMap (Results 1 – 3 of 3) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/ |
D | CarRemoteDeviceServiceTest.java | 141 private final ArrayMap<ClientId, Integer> mAppStateMap = new ArrayMap<>(); field in CarRemoteDeviceServiceTest 166 mUserManager, mPerUserInfoMap, mCallbackMap, mAppStateMap, mOccupantZoneStateMap); in setUp() 207 assertThat(mAppStateMap.size()).isEqualTo(0); in testInit() 235 mAppStateMap.put(peerClient, in testPeerClientInstallUninstall() 246 assertThat(mAppStateMap.get(peerClient)).isEqualTo(INITIAL_APP_STATE); in testPeerClientInstallUninstall() 259 assertThat(mAppStateMap.get(peerClient)).isEqualTo( in testPeerClientInstallUninstall() 288 mAppStateMap.put(peerClient, in testNonPeerClientUninstall() 300 assertThat(mAppStateMap.get(peerClient)).isEqualTo( in testNonPeerClientUninstall() 840 assertThat(mAppStateMap.containsKey(discoveringClient)).isTrue(); in testUnregisterStateCallbackWithoutOtherDiscoverers() 846 for (int i = 0; i < mAppStateMap.size(); i++) { in testUnregisterStateCallbackWithoutOtherDiscoverers() [all …]
|
/packages/services/Car/service/src/com/android/car/occupantconnection/ |
D | CarRemoteDeviceService.java | 161 private final ArrayMap<ClientId, Integer> mAppStateMap; field in CarRemoteDeviceService 293 mAppStateMap = appStateMap; in CarRemoteDeviceService() 323 for (int i = 0; i < mAppStateMap.size(); i++) { in dump() 324 ClientId client = mAppStateMap.keyAt(i); in dump() 325 @AppState int state = mAppStateMap.valueAt(i); in dump() 834 for (int i = 0; i < mAppStateMap.size(); i++) { in clearAllAppStateAsUserLocked() 835 ClientId clientId = mAppStateMap.keyAt(i); in clearAllAppStateAsUserLocked() 837 mAppStateMap.removeAt(i); in clearAllAppStateAsUserLocked() 849 for (int i = 0; i < mAppStateMap.size(); i++) { in clearAllAppStateWithPackageNameLocked() 850 ClientId clientId = mAppStateMap.keyAt(i); in clearAllAppStateWithPackageNameLocked() [all …]
|
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/occupantconnection/ |
D | OccupantConnectionFragment.java | 61 private final ArrayMap<OccupantZoneInfo, Integer> mAppStateMap = new ArrayMap<>(); field in OccupantConnectionFragment 102 mAppStateMap.put(occupantZone, appStates); 211 int currentAppState = mAppStateMap.getOrDefault(zone, INITIAL_APP_STATE); in addPeerOccupantZoneItem() 250 int appStates = mAppStateMap.getOrDefault(zone, INITIAL_APP_STATE); in updateOccupantZoneState()
|