/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SplashScreenExceptionListTest.java | 156 private void assertIsNotException(String packageName, int targetSdk) { in assertIsNotException() argument 157 assertIsNotException(packageName, targetSdk, null); in assertIsNotException() 160 private void assertIsNotException(String packageName, int targetSdk, in assertIsNotException() argument 163 packageName, targetSdk), in assertIsNotException() 164 mList.isException(packageName, targetSdk, () -> activityInfo)); in assertIsNotException() 167 private void assertIsException(String packageName, int targetSdk) { in assertIsException() argument 168 assertIsException(packageName, targetSdk, null); in assertIsException() 172 int targetSdk, ApplicationInfo activityInfo) { in assertIsException() argument 174 packageName, targetSdk), in assertIsException() 175 mList.isException(packageName, targetSdk, () -> activityInfo)); in assertIsException()
|
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/ |
D | PlatformCompatCommandNotInstalledTest.kt | 76 Params(enableDisable = null, targetSdk = 29, result = false), in <lambda>() 77 Params(enableDisable = null, targetSdk = 30, result = true), in <lambda>() 79 Params(enableDisable = true, targetSdk = 29, result = false), in <lambda>() 80 Params(enableDisable = true, targetSdk = 30, result = true), in <lambda>() 82 Params(enableDisable = false, targetSdk = 29, result = false), in <lambda>() 83 Params(enableDisable = false, targetSdk = 30, result = true) in <lambda>() 87 data class Params(val enableDisable: Boolean?, val targetSdk: Int, val result: Boolean) in <lambda>() constant in com.android.tests.gating.PlatformCompatCommandNotInstalledTest.Params 128 this.targetSdkVersion = params.targetSdk in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/library/ |
D | ApexSharedLibraryUpdater.java | 72 private static boolean isTargetSdkAtMost(int targetSdk, String onBcpBefore) { in isTargetSdkAtMost() argument 74 return targetSdk < 10000; in isTargetSdkAtMost() 76 return targetSdk < Integer.parseInt(onBcpBefore); in isTargetSdkAtMost()
|
/frameworks/base/core/java/android/content/pm/permission/ |
D | SplitPermissionInfoParcelable.java | 89 @IntRange(from = 0) int targetSdk) { in SplitPermissionInfoParcelable() 96 this.mTargetSdk = targetSdk; in SplitPermissionInfoParcelable() 184 int targetSdk = in.readInt(); in SplitPermissionInfoParcelable() local 192 this.mTargetSdk = targetSdk; in SplitPermissionInfoParcelable()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SplashScreenExceptionList.java | 83 public boolean isException(@NonNull String packageName, int targetSdk, in isException() argument 85 if (targetSdk > Build.VERSION_CODES.TIRAMISU) { in isException() 93 packageName, targetSdk, in isException()
|
D | StartingSurfaceController.java | 96 boolean isExceptionApp(@NonNull String packageName, int targetSdk, in isExceptionApp() argument 98 return mSplashScreenExceptionsList.isException(packageName, targetSdk, infoProvider); in isExceptionApp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | ApplicationInfoBuilder.java | 35 ApplicationInfoBuilder withTargetSdk(int targetSdk) { in withTargetSdk() argument 36 mTargetSdk = targetSdk; in withTargetSdk()
|
/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/ |
D | DevSdkIgnoreRule.kt | 33 private val targetSdk = InstrumentationRegistry.getContext().applicationInfo.targetSdkVersion in <lambda>() constant 131 assumeTrue("Skipping test, target SDK $targetSdk greater than $maxTargetSdk", in evaluate() 132 targetSdk <= maxTargetSdk) in evaluate()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | TargetSdkResolverTest.kt | 82 assertEquals(SDK_VERSION, entry.targetSdk) in resolveFromNotificationExtras() 95 assertEquals(SDK_VERSION, entry.targetSdk) in resolveFromPackageManager() 108 assertEquals(0, entry.targetSdk) in resolveFromPackageManager_andPackageManagerCrashes()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationListenerServiceTest.java | 72 int targetSdk = 0; field in NotificationListenerServiceTest 76 targetSdk = mContext.getApplicationInfo().targetSdkVersion; in setUp() 81 mContext.getApplicationInfo().targetSdkVersion = targetSdk; in tearDown() 206 service.targetSdk = Build.VERSION_CODES.LOLLIPOP_MR1; in testLegacyIcons_preM() 228 service.targetSdk = Build.VERSION_CODES.M; in testLegacyIcons_mPlus() 468 public int targetSdk = 0; field in NotificationListenerServiceTest.TestListenerService 499 if (targetSdk != 0) { in getApplicationInfo() 500 info.targetSdkVersion = targetSdk; in getApplicationInfo()
|
/frameworks/av/media/libstagefright/ |
D | SurfaceUtils.cpp | 333 int targetSdk = android_get_application_target_sdk_version(); in disableLegacyBufferDropPostQ() local 337 targetSdk < __ANDROID_API_Q__ || in disableLegacyBufferDropPostQ() 338 targetSdk == __ANDROID_API_FUTURE__; in disableLegacyBufferDropPostQ() 343 targetSdk); in disableLegacyBufferDropPostQ()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 82 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion; in hasEmbeddedTabs() local 83 if (targetSdk >= Build.VERSION_CODES.JELLY_BEAN) { in hasEmbeddedTabs()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerNative.java | 139 int targetSdk = mPm.snapshotComputer().getTargetSdkVersion(packageName); in getTargetSdkVersionForPackage() local 140 if (targetSdk != -1) { in getTargetSdkVersionForPackage() 141 return targetSdk; in getTargetSdkVersionForPackage()
|
/frameworks/base/tools/aapt/ |
D | Command.cpp | 647 static void addImpliedFeaturesForPermission(const int targetSdk, const String8& name, in addImpliedFeaturesForPermission() argument 655 if (targetSdk < SDK_LOLLIPOP) { in addImpliedFeaturesForPermission() 667 if (targetSdk < SDK_LOLLIPOP) { in addImpliedFeaturesForPermission() 686 if (targetSdk > SDK_DONUT) { in addImpliedFeaturesForPermission() 1074 int targetSdk = 0; in doDump() local 1507 if (name == "Donut") targetSdk = SDK_DONUT; in doDump() 1511 targetSdk = code; in doDump() 1529 if (name == "Donut" && targetSdk < SDK_DONUT) { in doDump() 1530 targetSdk = SDK_DONUT; in doDump() 1531 } else if (name != "" && targetSdk == 0) { in doDump() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerServiceMigrationTest.java | 299 private void prepareAdmin1AsPo(int profileUserId, int targetSdk) throws Exception { in prepareAdmin1AsPo() argument 301 R.raw.comp_policies_profile_same_package, COPE_ADMIN1_APP_ID, targetSdk); in prepareAdmin1AsPo() 311 int policyXmlResId, int adminAppId, int targetSdk) throws Exception { in preparePo() argument 315 /* enabledSetting =*/ null, targetSdk, admin1); in preparePo()
|
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/netlink/ |
D | NetlinkSocketTest.java | 80 final int targetSdk = in testGetNeighborsQuery() local 86 if (SdkLevel.isAtLeastT() && targetSdk > 31) { in testGetNeighborsQuery() 90 + " target SDK version: " + targetSdk); in testGetNeighborsQuery()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | EventLogTags.logtags | 121 … (User|1|5),(Component Name|3),(allowWhileInUse|1),(startReasonCode|3),(targetSdk|1|1),(callerTarg… 122 … (User|1|5),(Component Name|3),(allowWhileInUse|1),(startReasonCode|3),(targetSdk|1|1),(callerTarg… 123 … (User|1|5),(Component Name|3),(allowWhileInUse|1),(startReasonCode|3),(targetSdk|1|1),(callerTarg…
|
/frameworks/base/core/java/android/os/ |
D | StrictMode.java | 504 final int targetSdk = VMRuntime.getRuntime().getTargetSdkVersion(); in detectAll() local 505 if (targetSdk >= Build.VERSION_CODES.HONEYCOMB) { in detectAll() 508 if (targetSdk >= Build.VERSION_CODES.M) { in detectAll() 511 if (targetSdk >= Build.VERSION_CODES.O) { in detectAll() 865 final int targetSdk = VMRuntime.getRuntime().getTargetSdkVersion(); in detectAll() local 866 if (targetSdk >= Build.VERSION_CODES.HONEYCOMB) { in detectAll() 870 if (targetSdk >= Build.VERSION_CODES.JELLY_BEAN) { in detectAll() 873 if (targetSdk >= Build.VERSION_CODES.JELLY_BEAN_MR2) { in detectAll() 876 if (targetSdk >= Build.VERSION_CODES.M) { in detectAll() 883 if (targetSdk >= Build.VERSION_CODES.O) { in detectAll() [all …]
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/ |
D | SessionParamsBuilder.java | 125 public SessionParamsBuilder setTargetSdk(int targetSdk) { in setTargetSdk() argument 126 mTargetSdk = targetSdk; in setTargetSdk()
|
/frameworks/base/core/java/com/android/internal/accessibility/util/ |
D | AccessibilityUtils.java | 148 final int targetSdk = accessibilityServiceInfo.getResolveInfo() in getAccessibilityServiceFragmentType() local 153 if (targetSdk <= Build.VERSION_CODES.Q) { in getAccessibilityServiceFragmentType()
|
/frameworks/base/core/java/android/content/pm/parsing/ |
D | PackageLite.java | 116 int targetSdk, Set<String>[] requiredSplitTypes, Set<String>[] splitTypes) { in PackageLite() argument 146 mTargetSdk = targetSdk; in PackageLite()
|
D | FrameworkParsingPackageUtils.java | 228 @NonNull SigningDetails existingSigningDetails, int targetSdk) { in getSigningDetails() argument 230 targetSdk); in getSigningDetails()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | TargetSdkResolver.kt | 38 entry.targetSdk = resolveNotificationSdk(sbn) in initialize()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenLog.java | 130 public static void traceSetNotificationPolicy(String pkg, int targetSdk, in traceSetNotificationPolicy() argument 132 String policyLog = "pkg=" + pkg + " targetSdk=" + targetSdk in traceSetNotificationPolicy()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/inflation/ |
D | NotificationRowBinderImpl.java | 196 row.setLegacy(entry.targetSdk >= Build.VERSION_CODES.GINGERBREAD in updateRow() 197 && entry.targetSdk < Build.VERSION_CODES.LOLLIPOP); in updateRow()
|