Searched refs:targetSdkVersion (Results 1 - 25 of 34) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
H A DApplicationTestUtils.java31 * @param targetSdkVersion The app's target SDK version
36 int targetSdkVersion) {
41 info.targetSdkVersion = targetSdkVersion;
35 buildInfo(int uid, String packageName, int flags, int targetSdkVersion) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DAppWorkaroundsUtils.java43 return mPackageInfo.applicationInfo.targetSdkVersion < VERSION_CODES.JELLY_BEAN;
57 .append(mPackageInfo.applicationInfo.targetSdkVersion);
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/
H A DAnomaly.java69 public final int targetSdkVersion; field in class:Anomaly
91 targetSdkVersion = builder.mTargetSdkVersion;
103 targetSdkVersion = in.readInt();
121 dest.writeInt(targetSdkVersion);
142 && targetSdkVersion == other.targetSdkVersion
150 return Objects.hash(type, uid, displayName, packageName, wakelockTimeMs, targetSdkVersion,
222 public Builder setTargetSdkVersion(int targetSdkVersion) { argument
223 mTargetSdkVersion = targetSdkVersion;
H A DAnomalyUtils.java81 if (anomaly.targetSdkVersion >= Build.VERSION_CODES.O
82 || (anomaly.targetSdkVersion < Build.VERSION_CODES.O
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
H A DInstallStart.java76 final int targetSdkVersion = getMaxTargetSdkVersionForUid(originatingUid);
77 if (targetSdkVersion < 0) {
81 } else if (targetSdkVersion >= Build.VERSION_CODES.O && !declaresAppOpPermission(
154 int targetSdkVersion = -1;
159 targetSdkVersion = Math.max(targetSdkVersion, info.targetSdkVersion);
165 return targetSdkVersion;
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/action/
H A DBackgroundCheckAction.java47 if (anomaly.targetSdkVersion < Build.VERSION_CODES.O) {
56 return !mBatteryUtils.isBackgroundRestrictionEnabled(anomaly.targetSdkVersion, anomaly.uid,
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/checker/
H A DWakeupAlarmAnomalyDetector.java96 final int targetSdkVersion = mBatteryUtils.getTargetSdkVersion(packageName);
103 .setTargetSdkVersion(targetSdkVersion)
105 mBatteryUtils.isBackgroundRestrictionEnabled(targetSdkVersion,
/packages/apps/Settings/src/com/android/settings/applications/
H A DAppWithAdminGrantedPermissionsCounter.java55 if (info.targetSdkVersion >= Build.VERSION_CODES.M) {
H A DAppPermissions.java126 return info.targetSdkVersion > Build.VERSION_CODES.LOLLIPOP_MR1;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DAppWorkaroundsTests.java38 if (ai.targetSdkVersion < VERSION_CODES.JELLY_BEAN) {
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/anomaly/
H A DAnomalyTest.java67 assertThat(mAnomaly.targetSdkVersion).isEqualTo(SDK_VERSION);
/packages/services/Telecomm/src/com/android/server/telecom/
H A DVideoProviderProxy.java308 * @param targetSdkVersion The target SDK version of the calling InCallService where the camera
313 int callingPid, int targetSdkVersion) {
323 + "pid=%d, targetSdkVersion=%d",
324 callingPackage, callingUid, callingPid, targetSdkVersion);
328 if (targetSdkVersion > Build.VERSION_CODES.N_MR1) {
340 targetSdkVersion);
312 onSetCamera(String cameraId, String callingPackage, int callingUid, int callingPid, int targetSdkVersion) argument
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/
H A DGrantPermissionsActivity.java123 if (callingPackageInfo.applicationInfo.targetSdkVersion < Build.VERSION_CODES.M) {
392 && callingPackageInfo.applicationInfo.targetSdkVersion
463 if (callingPkg.applicationInfo.targetSdkVersion <= Build.VERSION_CODES.N_MR1) {
472 || callingPkg.applicationInfo.targetSdkVersion >= splitPerm.targetSdk
/packages/services/Telephony/src/com/android/phone/
H A DLocationAccessPolicy.java89 .targetSdkVersion <= Build.VERSION_CODES.O) {
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
H A DBackgroundActivityPreferenceControllerTest.java95 mHighApplicationInfo.targetSdkVersion = Build.VERSION_CODES.O;
96 mLowApplicationInfo.targetSdkVersion = Build.VERSION_CODES.L;
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
H A DUtilsTest.java418 private void setLauncherMock(int targetSdkVersion) throws Exception { argument
420 appInfo.targetSdkVersion = targetSdkVersion;
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DBatteryUtils.java287 * Find the targetSdkVersion for package with name {@code packageName}
289 * @return the targetSdkVersion, or {@link #SDK_NULL} if {@code packageName} doesn't exist
296 return info.targetSdkVersion;
307 public boolean isBackgroundRestrictionEnabled(final int targetSdkVersion, final int uid, argument
309 if (targetSdkVersion >= Build.VERSION_CODES.O) {
H A DBackgroundActivityPreferenceController.java124 return info.targetSdkVersion < Build.VERSION_CODES.O;
/packages/apps/Launcher3/src/com/android/launcher3/compat/
H A DLauncherAppsCompatVO.java84 if (ignoreTargetSdk || activityInfo.getApplicationInfo().targetSdkVersion >=
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DPackageManagerHelper.java140 return mPm.getApplicationInfo(srcPackage, 0).targetSdkVersion >= Build.VERSION_CODES.M;
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
H A DDefaultHomePicker.java127 return versionNumberAtLeastL(appInfo.targetSdkVersion);
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/defaultapps/
H A DDefaultHomePickerTest.java149 launcherAppInfo.targetSdkVersion = targetSdk;
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DIncomingCallNotifierTest.java57 info.targetSdkVersion = Build.VERSION_CODES.N_MR1;
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
H A DAppPermissionGroup.java146 if (packageInfo.applicationInfo.targetSdkVersion <= Build.VERSION_CODES.LOLLIPOP_MR1
198 .targetSdkVersion > Build.VERSION_CODES.LOLLIPOP_MR1;
/packages/apps/Bluetooth/src/com/android/bluetooth/
H A DUtils.java344 .targetSdkVersion >= Build.VERSION_CODES.M;

Completed in 1128 milliseconds

12