Home
last modified time | relevance | path

Searched refs:mMgr (Results 1 – 11 of 11) sorted by relevance

/packages/services/Car/tests/CarLibUnitTest/src/android/car/user/
DCarUserManagerUnitTest.java97 private CarUserManager mMgr; field in CarUserManagerUnitTest
101 mMgr = new CarUserManager(mCar, mService, mUserManager, in setFixtures()
147 assertThat(mMgr.isValidUser(USER_SYSTEM)).isFalse(); in testIsValidUserId_headlessSystemUser()
154 assertThat(mMgr.isValidUser(SYSTEM)).isFalse(); in testIsValidUser_headlessSystemUser()
162 assertThat(mMgr.isValidUser(USER_SYSTEM)).isTrue(); in testIsValidUserId_nonHeadlessSystemUser()
170 assertThat(mMgr.isValidUser(SYSTEM)).isTrue(); in testIsValidUser_nonHeadlessSystemUser()
177 expectThat(mMgr.isValidUser(1)).isTrue(); in testIsValidUserId_found()
178 expectThat(mMgr.isValidUser(2)).isTrue(); in testIsValidUserId_found()
179 expectThat(mMgr.isValidUser(3)).isTrue(); in testIsValidUserId_found()
186 expectThat(mMgr.isValidUser(UserHandle.of(1))).isTrue(); in testIsValidUser_found()
[all …]
/packages/services/Car/tests/CarLibUnitTest/src/android/car/content/pm/
DCarPackageManagerUnitTest.java69 private CarPackageManager mMgr; field in CarPackageManagerUnitTest
73 mMgr = new CarPackageManager(mCar, mService); in setFixtures()
82 assertThat(mMgr.getTargetCarVersion()).isSameInstanceAs(apiVersion); in testGetTargetCarVersion_self_ok()
91 RuntimeException e = assertThrows(RuntimeException.class, () -> mMgr.getTargetCarVersion()); in testGetTargetCarVersion_self_remoteException()
101 assertThat(mMgr.getTargetCarVersion("dr.evil")).isSameInstanceAs(apiVersion); in testGetTargetCarVersion_ok()
110 () -> mMgr.getTargetCarVersion("the.meaning.of.life")); in testGetTargetCarVersion_runtimeException()
121 () -> mMgr.getTargetCarVersion("the.meaning.of.life")); in testGetTargetCarVersion_serviceException_unexpectedErrorCode()
134 () -> mMgr.getTargetCarVersion("the.meaning.of.life")); in testGetTargetCarVersion_serviceException_notFound()
142 mMgr.registerBlockingUiCommandListener(DEFAULT_DISPLAY, mExecutor, in registerBlockingUiCommandListener()
153 mMgr.registerBlockingUiCommandListener(DEFAULT_DISPLAY, mExecutor, in registerBlockingUiCommandListener_sameListenerNotRegisterForAnotherDisplay()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/admin/
DCarDevicePolicyManagerUnitTest.java56 private CarDevicePolicyManager mMgr; field in CarDevicePolicyManagerUnitTest
64 mMgr = new CarDevicePolicyManager(mCar, mService); in setFixtures()
71 RemoveUserResult result = mMgr.removeUser(UserHandle.of(100)); in testRemoveUser_success()
82 RemoveUserResult result = mMgr.removeUser(UserHandle.of(100)); in testRemoveUser_remoteException()
92 assertThrows(SecurityException.class, () -> mMgr.removeUser(UserHandle.of(100))); in testRemoveUser_securityException()
97 assertThrows(NullPointerException.class, () -> mMgr.removeUser(null)); in testRemoveUser_nullUser()
106 CreateUserResult result = mMgr.createUser("TheDude", 100); in testCreateUser_success()
119 CreateUserResult result = mMgr.createUser("TheDude", 100); in testCreateUser_remoteException()
131 assertThrows(SecurityException.class, () -> mMgr.createUser("TheDude", 100)); in testCreateUser_securityException()
138 StartUserInBackgroundResult result = mMgr.startUserInBackground(UserHandle.of(100)); in testStartUserInBackground_success()
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DDiscoverySession.java61 protected WeakReference<WifiAwareManager> mMgr; field in DiscoverySession
90 mMgr = new WeakReference<>(manager); in DiscoverySession()
110 WifiAwareManager mgr = mMgr.get(); in close()
117 mMgr.clear(); in close()
135 mMgr.clear(); in setTerminated()
223 WifiAwareManager mgr = mMgr.get(); in sendMessage()
294 WifiAwareManager mgr = mMgr.get(); in initiatePairingRequest()
334 WifiAwareManager mgr = mMgr.get(); in acceptPairingRequest()
364 WifiAwareManager mgr = mMgr.get(); in rejectPairingRequest()
395 WifiAwareManager mgr = mMgr.get(); in initiateBootstrappingRequest()
[all …]
DWifiAwareSession.java54 private final WeakReference<WifiAwareManager> mMgr; field in WifiAwareSession
65 mMgr = new WeakReference<>(manager); in WifiAwareSession()
85 WifiAwareManager mgr = mMgr.get(); in close()
92 mMgr.clear(); in close()
174 WifiAwareManager mgr = mMgr.get(); in publish()
234 WifiAwareManager mgr = mMgr.get(); in subscribe()
258 WifiAwareManager mgr = mMgr.get(); in setMasterPreference()
282 WifiAwareManager mgr = mMgr.get(); in getMasterPreference()
329 WifiAwareManager mgr = mMgr.get(); in createNetworkSpecifierOpen()
377 WifiAwareManager mgr = mMgr.get(); in createNetworkSpecifierPassphrase()
[all …]
DSubscribeDiscoverySession.java64 WifiAwareManager mgr = mMgr.get(); in updateSubscribe()
DPublishDiscoverySession.java59 WifiAwareManager mgr = mMgr.get(); in updatePublish()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiTwtSession.java42 private final WeakReference<WifiManager> mMgr; field in WifiTwtSession
70 WifiManager mgr = mMgr.get(); in getStats()
83 mMgr = new WeakReference<>(wifiManager); in WifiTwtSession()
95 WifiManager mgr = mMgr.get(); in teardown()
101 mMgr.clear(); in teardown()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/property/
DPropertyTestFragment.java94 private CarPropertyManager mMgr; field in PropertyTestFragment
156 mMgr = mKitchenSinkHelper.getPropertyManager(); in onRequestPermissionsResult()
203 CarPropertyValue value = mMgr.getProperty(propId, areaId); in onCreateView()
218 GetPropertyRequest getPropertyRequest = mMgr.generateGetPropertyRequest(propId, in onCreateView()
220 mMgr.getPropertiesAsync(List.of(getPropertyRequest), in onCreateView()
241 mMgr.setBooleanProperty(propId, areaId, boolVal); in onCreateView()
245 mMgr.setFloatProperty(propId, areaId, floatVal); in onCreateView()
249 mMgr.setIntProperty(propId, areaId, intVal); in onCreateView()
310 mPropInfo = mMgr.getPropertyList() in populateConfigList()
465 mMgr.subscribePropertyEvents(List.of( in onItemSelected()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java108 private final WifiAwareStateManager mMgr; field in WifiAwareDataPathStateManager
130 mMgr = mgr; in WifiAwareDataPathStateManager()
235 if (mMgr.getCapabilities() == null) { in createAllInterfaces()
240 for (int i = 0; i < mMgr.getCapabilities().maxNdiInterfaces; ++i) { in createAllInterfaces()
245 mMgr.deleteDataPathInterface(name); in createAllInterfaces()
251 mMgr.createDataPathInterface(name); in createAllInterfaces()
262 if (mMgr.getCapabilities() == null) { in deleteAllInterfaces()
267 for (int i = 0; i < mMgr.getCapabilities().maxNdiInterfaces; ++i) { in deleteAllInterfaces()
269 mMgr.deleteDataPathInterface(name); in deleteAllInterfaces()
321 mMgr.endDataPath(ndpId); in onDataPathInitiateSuccess()
[all …]
/packages/modules/Wifi/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt76 Landroid/net/wifi/aware/DiscoverySession;->mMgr:Ljava/lang/ref/WeakReference;
360 Landroid/net/wifi/aware/WifiAwareSession;->mMgr:Ljava/lang/ref/WeakReference;