Searched refs:mockApp (Results 1 – 1 of 1) sorted by relevance
53 ApplicationInfo mockApp = createMockApp(); in testAlwaysOnVersionRestriction() local56 mockApp.targetSdkVersion = Build.VERSION_CODES.M; in testAlwaysOnVersionRestriction()57 assertFalse(isAlwaysOnSupportedByApp(mockApp)); in testAlwaysOnVersionRestriction()60 mockApp.targetSdkVersion = Build.VERSION_CODES.N; in testAlwaysOnVersionRestriction()61 assertTrue(isAlwaysOnSupportedByApp(mockApp)); in testAlwaysOnVersionRestriction()64 mockApp.targetSdkVersion = Build.VERSION_CODES.N_MR1; in testAlwaysOnVersionRestriction()65 assertTrue(isAlwaysOnSupportedByApp(mockApp)); in testAlwaysOnVersionRestriction()70 ApplicationInfo mockApp = createMockApp(); in testAppOpsRequiredToOpenFragment() local73 new AppOpsManager.PackageOps(mockApp.packageName, mockApp.uid, new ArrayList<>()), in testAppOpsRequiredToOpenFragment()74 new AppOpsManager.PackageOps(mockApp.packageName, mockApp.uid, new ArrayList<>()) in testAppOpsRequiredToOpenFragment()[all …]