Searched refs:mTestAppUid (Results 1 – 2 of 2) sorted by relevance
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | PermissionActivityTest.java | 121 private int mTestAppUid = -1; field in PermissionActivityTest 126 mTestAppUid = getContext().getPackageManager().getPackageUid(TEST_APP_PACKAGE_NAME, 0); in setUp() 149 assertThat(shouldShowActionDialog(getContext(), TEST_APP_PID, mTestAppUid, in testShouldShowActionDialog_favorite_false() local 155 assertThat(shouldShowActionDialog(getContext(), TEST_APP_PID, mTestAppUid, in testShouldShowActionDialog_unfavorite_false() local 168 mTestAppUid, enableAppOpsList, disableAppOpsList, TEST_APP_PACKAGE_NAME); in testShouldShowActionDialog_noRESAndMES_true() 170 assertThat(shouldShowActionDialog(getContext(), TEST_APP_PID, mTestAppUid, in testShouldShowActionDialog_noRESAndMES_true() local 173 restoreDefaultAppOpPermissions(mTestAppUid); in testShouldShowActionDialog_noRESAndMES_true() 284 mTestAppUid, enableAppOpsList, disableAppOpsList, TEST_APP_PACKAGE_NAME); in testShouldShowActionDialog_noMANAGE_MEDIA_true() 286 assertThat(shouldShowActionDialog(getContext(), TEST_APP_PID, mTestAppUid, in testShouldShowActionDialog_noMANAGE_MEDIA_true() local 289 restoreDefaultAppOpPermissions(mTestAppUid); in testShouldShowActionDialog_noMANAGE_MEDIA_true() [all …]
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | PermissionUpdateListenerTest.java | 70 private int mTestAppUid; field in PermissionUpdateListenerTest 92 mTestAppUid = mPackageManager.getPackageUid(PACKAGE_NAME, 0); in setup() 106 if (mTestAppUid == uid) { in testGrantPermissionInvokesOldCallback() 158 String deviceId = permissionsChangedListener.getNotifiedDeviceId(mTestAppUid); in testGrantPermissionNotifyListener() 198 String deviceId = permissionsChangedListener.getNotifiedDeviceId(mTestAppUid); in testRevokePermissionNotifyListener() 237 String deviceId = permissionsChangedListener.getNotifiedDeviceId(mTestAppUid); in testUpdatePermissionFlagsNotifyListener() 258 if (uid == mTestAppUid) { in onPermissionsChanged()
|