Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/compat/
DPlatformCompatTest.java54 PlatformCompat mPlatformCompat; field in PlatformCompatTest
66 mPlatformCompat = new PlatformCompat(mContext, mCompatConfig); in setUp()
83 mPlatformCompat = new PlatformCompat(mContext, mCompatConfig); in testListAllChanges()
84 assertThat(mPlatformCompat.listAllChanges()).asList().containsExactly( in testListAllChanges()
106 mPlatformCompat = new PlatformCompat(mContext, mCompatConfig); in testListUIChanges()
107 assertThat(mPlatformCompat.listUIChanges()).asList().containsExactly( in testListUIChanges()
117 mPlatformCompat.registerListener(1, mListener1); in testRegisterListenerToSameIdThrows()
119 mPlatformCompat.registerListener(2, mListener1); in testRegisterListenerToSameIdThrows()
122 () -> mPlatformCompat.registerListener(1, mListener1)); in testRegisterListenerToSameIdThrows()
127 mPlatformCompat.setOverrides( in testRegisterListenerReturn()
[all …]
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/
DPlatformCompatPermissionsTest.java51 private IPlatformCompat mPlatformCompat; field in PlatformCompatPermissionsTest
62 mPlatformCompat = IPlatformCompat.Stub in setUp()
83 mPlatformCompat.reportChange(1, mPackageManager.getApplicationInfo(packageName, 0)); in reportChange_noLogCompatChangePermission_throwsSecurityException()
92 mPlatformCompat.reportChange(1, mPackageManager.getApplicationInfo(packageName, 0)); in reportChange_logCompatChangePermission_noThrow()
101 mPlatformCompat.reportChangeByPackageName(1, packageName, 0); in reportChangeByPackageName_noLogCompatChangePermission_throwsSecurityException()
110 mPlatformCompat.reportChangeByPackageName(1, packageName, 0); in reportChangeByPackageName_logCompatChangePermission_noThrow()
118 mPlatformCompat.reportChangeByUid(1, Process.myUid()); in reportChangeByUid_noLogCompatChangePermission_throwsSecurityException()
126 mPlatformCompat.reportChangeByUid(1, Process.myUid()); in reportChangeByUid_logCompatChangePermission_noThrow()
135 mPlatformCompat.isChangeEnabled(1, mPackageManager.getApplicationInfo(packageName, 0)); in isChangeEnabled_noReadCompatConfigPermission_throwsSecurityException()
145 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/core/java/com/android/server/am/
DProcessList.java420 private PlatformCompat mPlatformCompat = null; field in ProcessList
648 mPlatformCompat = platformCompat; in init()
1680 || mPlatformCompat.isChangeEnabled(NATIVE_MEMORY_TAGGING, app.info)) {
1686 if (mPlatformCompat.isChangeEnabled(NATIVE_HEAP_POINTER_TAGGING, app.info)) {
1767 if (mPlatformCompat != null) {
1768 app.mDisabledCompatChanges = mPlatformCompat.getDisabledChanges(app.info);
DActivityManagerService.java1572 private final PlatformCompat mPlatformCompat; field in ActivityManagerService
2435 mPlatformCompat = null; in ActivityManagerService()
2436 mProcessList.init(this, activeUids, mPlatformCompat); in ActivityManagerService()
2485 mPlatformCompat = (PlatformCompat) ServiceManager.getService( in ActivityManagerService()
2487 mProcessList.init(this, activeUids, mPlatformCompat); in ActivityManagerService()
5073 if (mPlatformCompat != null) { in attachApplicationLocked()
5074 mPlatformCompat.resetReporting(app.info); in attachApplicationLocked()