Home
last modified time | relevance | path

Searched refs:appTargetSdk (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/com/android/internal/compat/
DOverrideAllowedState.java76 public final int appTargetSdk; field in OverrideAllowedState
81 appTargetSdk = parcel.readInt(); in OverrideAllowedState()
85 public OverrideAllowedState(@State int state, int appTargetSdk, int changeIdTargetSdk) { in OverrideAllowedState() argument
87 this.appTargetSdk = appTargetSdk; in OverrideAllowedState()
99 out.writeInt(appTargetSdk); in writeToParcel()
126 changeId, packageName, appTargetSdk, changeIdTargetSdk)); in enforce()
165 && appTargetSdk == otherState.appTargetSdk in equals()
191 return "OverrideAllowedState(state=" + stateName() + "; appTargetSdk=" + appTargetSdk in toString()
/frameworks/base/services/core/java/com/android/server/compat/
DOverrideValidatorImpl.java134 int appTargetSdk = applicationInfo.targetSdkVersion; in getOverrideAllowedStateInternal() local
141 return new OverrideAllowedState(ALLOWED, appTargetSdk, maxTargetSdk); in getOverrideAllowedStateInternal()
145 return new OverrideAllowedState(DISABLED_NON_TARGET_SDK, appTargetSdk, maxTargetSdk); in getOverrideAllowedStateInternal()
148 if (disabled || appTargetSdk <= maxTargetSdk) { in getOverrideAllowedStateInternal()
149 return new OverrideAllowedState(ALLOWED, appTargetSdk, maxTargetSdk); in getOverrideAllowedStateInternal()
151 return new OverrideAllowedState(DISABLED_TARGET_SDK_TOO_HIGH, appTargetSdk, maxTargetSdk); in getOverrideAllowedStateInternal()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java183 Integer enabledSetting, Integer appTargetSdk) throws Exception { in setUpPackageManagerForAdmin() argument
184 setUpPackageManagerForFakeAdmin(admin, packageUid, enabledSetting, appTargetSdk, in setUpPackageManagerForAdmin()
203 Integer enabledSetting, Integer appTargetSdk, ComponentName copyFromAdmin) in setUpPackageManagerForFakeAdmin() argument
215 if (appTargetSdk != null) { in setUpPackageManagerForFakeAdmin()
216 ai.targetSdkVersion = appTargetSdk; in setUpPackageManagerForFakeAdmin()
DDevicePolicyManagerTest.java7965 ComponentName admin, int adminUid, ComponentName copyFromAdmin, int appTargetSdk)
7972 appTargetSdk, copyFromAdmin);