/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
H A D | ApplicationTestUtils.java | 31 * @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 D | AppWorkaroundsUtils.java | 43 return mPackageInfo.applicationInfo.targetSdkVersion < VERSION_CODES.JELLY_BEAN; 57 .append(mPackageInfo.applicationInfo.targetSdkVersion);
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/ |
H A D | Anomaly.java | 69 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 D | AnomalyUtils.java | 81 if (anomaly.targetSdkVersion >= Build.VERSION_CODES.O 82 || (anomaly.targetSdkVersion < Build.VERSION_CODES.O
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
H A D | InstallStart.java | 76 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 D | BackgroundCheckAction.java | 47 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 D | WakeupAlarmAnomalyDetector.java | 96 final int targetSdkVersion = mBatteryUtils.getTargetSdkVersion(packageName); 103 .setTargetSdkVersion(targetSdkVersion) 105 mBatteryUtils.isBackgroundRestrictionEnabled(targetSdkVersion,
|
/packages/apps/Settings/src/com/android/settings/applications/ |
H A D | AppWithAdminGrantedPermissionsCounter.java | 55 if (info.targetSdkVersion >= Build.VERSION_CODES.M) {
|
H A D | AppPermissions.java | 126 return info.targetSdkVersion > Build.VERSION_CODES.LOLLIPOP_MR1;
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | AppWorkaroundsTests.java | 38 if (ai.targetSdkVersion < VERSION_CODES.JELLY_BEAN) {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/anomaly/ |
H A D | AnomalyTest.java | 67 assertThat(mAnomaly.targetSdkVersion).isEqualTo(SDK_VERSION);
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | VideoProviderProxy.java | 308 * @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 D | GrantPermissionsActivity.java | 123 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 D | LocationAccessPolicy.java | 89 .targetSdkVersion <= Build.VERSION_CODES.O) {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
H A D | BackgroundActivityPreferenceControllerTest.java | 95 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 D | UtilsTest.java | 418 private void setLauncherMock(int targetSdkVersion) throws Exception { argument 420 appInfo.targetSdkVersion = targetSdkVersion;
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
H A D | BatteryUtils.java | 287 * 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 D | BackgroundActivityPreferenceController.java | 124 return info.targetSdkVersion < Build.VERSION_CODES.O;
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
H A D | LauncherAppsCompatVO.java | 84 if (ignoreTargetSdk || activityInfo.getApplicationInfo().targetSdkVersion >=
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | PackageManagerHelper.java | 140 return mPm.getApplicationInfo(srcPackage, 0).targetSdkVersion >= Build.VERSION_CODES.M;
|
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/ |
H A D | DefaultHomePicker.java | 127 return versionNumberAtLeastL(appInfo.targetSdkVersion);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/defaultapps/ |
H A D | DefaultHomePickerTest.java | 149 launcherAppInfo.targetSdkVersion = targetSdk;
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
H A D | IncomingCallNotifierTest.java | 57 info.targetSdkVersion = Build.VERSION_CODES.N_MR1;
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/ |
H A D | AppPermissionGroup.java | 146 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 D | Utils.java | 344 .targetSdkVersion >= Build.VERSION_CODES.M;
|