Home
last modified time | relevance | path

Searched refs:mPlatformCompat (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/compat/
DPlatformCompatTest.java64 PlatformCompat mPlatformCompat; field in PlatformCompatTest
81 mPlatformCompat = new PlatformCompat(mContext, mCompatConfig, mBuildClassifier); in setUp()
103 mPlatformCompat = new PlatformCompat(mContext, mCompatConfig, mBuildClassifier); in testListAllChanges()
104 assertThat(mPlatformCompat.listAllChanges()).asList().containsExactly( in testListAllChanges()
131 mPlatformCompat = new PlatformCompat(mContext, mCompatConfig, mBuildClassifier); in testListUIChanges()
132 assertThat(mPlatformCompat.listUIChanges()).asList().containsExactly( in testListUIChanges()
149 mPlatformCompat = new PlatformCompat(mContext, mCompatConfig, mBuildClassifier); in testOverrideAtInstallTime()
152 assertThat(mPlatformCompat.isChangeEnabledByPackageName(1, PACKAGE_NAME, 0)).isTrue(); in testOverrideAtInstallTime()
153 assertThat(mPlatformCompat.isChangeEnabledByPackageName(2, PACKAGE_NAME, 0)).isFalse(); in testOverrideAtInstallTime()
154 assertThat(mPlatformCompat.isChangeEnabledByPackageName(3, PACKAGE_NAME, 0)).isTrue(); in testOverrideAtInstallTime()
[all …]
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/
DPlatformCompatPermissionsTest.java52 private IPlatformCompat mPlatformCompat; field in PlatformCompatPermissionsTest
63 mPlatformCompat = IPlatformCompat.Stub in setUp()
84 mPlatformCompat.reportChange(1, mPackageManager.getApplicationInfo(packageName, 0)); in reportChange_noLogCompatChangePermission_throwsSecurityException()
93 mPlatformCompat.reportChange(1, mPackageManager.getApplicationInfo(packageName, 0)); in reportChange_logCompatChangePermission_noThrow()
102 mPlatformCompat.reportChangeByPackageName(1, packageName, 0); in reportChangeByPackageName_noLogCompatChangePermission_throwsSecurityException()
111 mPlatformCompat.reportChangeByPackageName(1, packageName, 0); in reportChangeByPackageName_logCompatChangePermission_noThrow()
119 mPlatformCompat.reportChangeByUid(1, Process.myUid()); in reportChangeByUid_noLogCompatChangePermission_throwsSecurityException()
127 mPlatformCompat.reportChangeByUid(1, Process.myUid()); in reportChangeByUid_logCompatChangePermission_noThrow()
136 mPlatformCompat.isChangeEnabled(1, mPackageManager.getApplicationInfo(packageName, 0)); in isChangeEnabled_noReadCompatConfigPermission_throwsSecurityException()
146 mPlatformCompat.isChangeEnabled(1, mPackageManager.getApplicationInfo(packageName, 0)); in isChangeEnabled_noLogCompatChangeConfigPermission_throwsSecurityException()
[all …]
/frameworks/base/services/core/java/com/android/server/compat/
DPlatformCompatNative.java27 private final PlatformCompat mPlatformCompat; field in PlatformCompatNative
30 mPlatformCompat = platformCompat; in PlatformCompatNative()
35 mPlatformCompat.reportChangeByPackageName(changeId, packageName, userId); in reportChangeByPackageName()
40 mPlatformCompat.reportChangeByUid(changeId, uid); in reportChangeByUid()
46 return mPlatformCompat.isChangeEnabledByPackageName(changeId, packageName, userId); in isChangeEnabledByPackageName()
51 return mPlatformCompat.isChangeEnabledByUid(changeId, uid); in isChangeEnabledByUid()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/compat/overrides/
DAppCompatOverridesServiceTest.java108 private IPlatformCompat mPlatformCompat; field in AppCompatOverridesServiceTest
154 mService = new AppCompatOverridesService(mMockContext, mPlatformCompat, in setUp()
176 verify(mPlatformCompat).putAllOverridesOnReleaseBuilds( in onPropertiesChanged_removeOverridesFlagNotSet_appliesPackageOverrides()
178 verify(mPlatformCompat).removeAllOverridesOnReleaseBuilds( in onPropertiesChanged_removeOverridesFlagNotSet_appliesPackageOverrides()
222 verify(mPlatformCompat).putAllOverridesOnReleaseBuilds( in onPropertiesChanged_ownedChangeIdsFlagNotSet_onlyAddsOverrides()
224 verify(mPlatformCompat, never()).removeAllOverridesOnReleaseBuilds( in onPropertiesChanged_ownedChangeIdsFlagNotSet_onlyAddsOverrides()
251 verify(mPlatformCompat).putAllOverridesOnReleaseBuilds( in onPropertiesChanged_removeOverridesFlagSetBefore_skipsOverridesToRemove()
253 verify(mPlatformCompat).removeAllOverridesOnReleaseBuilds( in onPropertiesChanged_removeOverridesFlagSetBefore_skipsOverridesToRemove()
290 verify(mPlatformCompat, never()).putAllOverridesOnReleaseBuilds( in onPropertiesChanged_removeOverridesFlagChangedNoPackageOverridesFlags_removesOnly()
292 verify(mPlatformCompat, times(2)).removeAllOverridesOnReleaseBuilds( in onPropertiesChanged_removeOverridesFlagChangedNoPackageOverridesFlags_removesOnly()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DPlatformCompatCache.java70 private final PlatformCompat mPlatformCompat; field in PlatformCompatCache
80 mPlatformCompat = (PlatformCompat) ServiceManager.getService( in PlatformCompatCache()
83 mCaches.put(changeId, new CacheItem(mPlatformCompat, changeId)); in PlatformCompatCache()
90 mPlatformCompat = null; in PlatformCompatCache()
144 private final PlatformCompat mPlatformCompat; field in PlatformCompatCache.CacheItem
152 mPlatformCompat = platformCompat; in CacheItem()
154 mPlatformCompat.registerListener(changeId, this); in CacheItem()
182 mPlatformCompat.isChangeEnabledInternalNoLogging(mChangeId, app), in fetchLocked()
DComponentAliasResolver.java86 private PlatformCompat mPlatformCompat; field in ComponentAliasResolver
140 mPlatformCompat = (PlatformCompat) ServiceManager.getService( in onSystemReady()
152 if (mPlatformCompat == null) { in update()
DProcessList.java540 private PlatformCompat mPlatformCompat = null; field in ProcessList
886 mPlatformCompat = platformCompat; in init()
2068 definingAppInfo, app.processInfo, instructionSet, mPlatformCompat);
2147 if (mPlatformCompat != null) {
2148 app.setDisabledCompatChanges(mPlatformCompat.getDisabledChanges(app.info));
2149 app.setLoggableCompatChanges(mPlatformCompat.getLoggableChanges(app.info));
2436 && mPlatformCompat.isChangeEnabled(APP_DATA_DIRECTORY_ISOLATION, app.info);
/frameworks/base/core/java/android/app/compat/
DChangeIdStateCache.java37 private volatile IPlatformCompat mPlatformCompat; field in ChangeIdStateCache
68 IPlatformCompat platformCompat = mPlatformCompat; in getPlatformCompatService()
71 platformCompat = mPlatformCompat; in getPlatformCompatService()
79 mPlatformCompat = platformCompat; in getPlatformCompatService()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DImePlatformCompatUtils.java33 private final IPlatformCompat mPlatformCompat = IPlatformCompat.Stub.asInterface( field in ImePlatformCompatUtils
59 result = mPlatformCompat.isChangeEnabledByUid(changeFlag, uid); in isChangeEnabledByUid()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationChannelExtractorTest.java70 IPlatformCompat mPlatformCompat; field in NotificationChannelExtractorTest
84 mExtractor.setCompatChangeLogger(mPlatformCompat); in setUp()
174 verify(mPlatformCompat, never()).reportChangeByUid(anyLong(), anyInt()); in testAudioAttributes_callStyleCanUseCallUsage()
193 verify(mPlatformCompat).reportChangeByUid(RESTRICT_AUDIO_ATTRIBUTES, r.getUid()); in testAudioAttributes_nonCallStyleCannotUseCallUsage()
215 verify(mPlatformCompat, never()).reportChangeByUid(anyLong(), anyInt()); in testAudioAttributes_alarmCategoryCanUseAlarmUsage()
234 verify(mPlatformCompat).reportChangeByUid(RESTRICT_AUDIO_ATTRIBUTES, r.getUid()); in testAudioAttributes_nonAlarmCategoryCannotUseAlarmUsage()
255 verify(mPlatformCompat).reportChangeByUid(RESTRICT_AUDIO_ATTRIBUTES, r.getUid()); in testAudioAttributes_noMediaUsage()
276 verify(mPlatformCompat).reportChangeByUid(RESTRICT_AUDIO_ATTRIBUTES, r.getUid()); in testAudioAttributes_noUnknownUsage()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationChannelExtractor.java52 private IPlatformCompat mPlatformCompat; field in NotificationChannelExtractor
60 mPlatformCompat = platformCompat; in setCompatChangeLogger()
116 mPlatformCompat.reportChangeByUid(RESTRICT_AUDIO_ATTRIBUTES, uid); in reportAudioAttributesChanged()
DNotificationManagerService.java625 private IPlatformCompat mPlatformCompat; field in NotificationManagerService
2435 mPlatformCompat = IPlatformCompat.Stub.asInterface( in init()
2522 mZenModeHelper, mUsageStats, extractorNames, mPlatformCompat); in init()
9177 mPlatformCompat.reportChangeByUid(RATE_LIMIT_TOASTS, uid);
/frameworks/base/services/core/java/com/android/server/compat/overrides/
DAppCompatOverridesService.java79 private final IPlatformCompat mPlatformCompat; field in AppCompatOverridesService
95 mPlatformCompat = platformCompat; in AppCompatOverridesService()
276 mPlatformCompat.putAllOverridesOnReleaseBuilds(config); in putAllPackageOverrides()
289 mPlatformCompat.putOverridesOnReleaseBuilds(config, packageName); in putPackageOverrides()
303 mPlatformCompat.removeAllOverridesOnReleaseBuilds(config); in removeAllPackageOverrides()
316 mPlatformCompat.removeOverridesOnReleaseBuilds(config, packageName); in removePackageOverrides()
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationCollector.java57 private final PlatformCompat mPlatformCompat; field in DomainVerificationCollector
67 mPlatformCompat = platformCompat; in DomainVerificationCollector()
151 DomainVerificationUtils.isChangeEnabled(mPlatformCompat, pkg, RESTRICT_DOMAINS);
DDomainVerificationService.java142 private final PlatformCompat mPlatformCompat; field in DomainVerificationService
174 mPlatformCompat = platformCompat; in DomainVerificationService()
1968 if (pkg != null && !DomainVerificationUtils.isChangeEnabled(mPlatformCompat, pkg, in approvalLevelForDomainInternal()
/frameworks/base/services/core/java/com/android/server/pm/
DResolveIntentHelper.java72 private final PlatformCompat mPlatformCompat; field in ResolveIntentHelper
95 mPlatformCompat = platformCompat; in ResolveIntentHelper()
132 args.platformCompat = mPlatformCompat; in resolveIntentInternal()
366 args.platformCompat = mPlatformCompat; in queryIntentReceiversInternal()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DSharedLibrariesImplTest.kt98 private lateinit var mPlatformCompat: PlatformCompat in <lambda>() variable in com.android.server.pm.SharedLibrariesImplTest
130 whenever(mMockSystem.mocks().injector.compatibility).thenReturn(mPlatformCompat) in <lambda>()
/frameworks/base/core/java/android/app/
DStatusBarManager.java611 private final IPlatformCompat mPlatformCompat = IPlatformCompat.Stub.asInterface( field in StatusBarManager
1265 mPlatformCompat.reportChangeByPackageName(MEDIA_CONTROL_BLANK_TITLE, packageName, in logBlankMediaTitle()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
DAppIntegrityManagerServiceImplTest.java138 @Mock PlatformCompat mPlatformCompat; field in AppIntegrityManagerServiceImplTest
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerServiceImpl.java286 private final IPlatformCompat mPlatformCompat = IPlatformCompat.Stub.asInterface( field in PermissionManagerServiceImpl
1947 && mPlatformCompat.isChangeEnabledByPackageName(BACKGROUND_RATIONALE_CHANGE_ID, in shouldShowRequestPermissionRationale()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java292 private final IPlatformCompat mPlatformCompat = IPlatformCompat.Stub.asInterface( field in AppOpsService
4646 if (!mPlatformCompat.isChangeEnabledByPackageName( in verifyAndGetBypass()
4648 userId) || !mPlatformCompat.isChangeEnabledByUid( in verifyAndGetBypass()