/packages/modules/SdkExtensions/gen_sdk/ |
D | gen_sdk_test.sh | 42 gen_sdk --action new_sdk --sdk 1 --modules MEDIA_PROVIDER --database ${db} 43 gen_sdk --action new_sdk --sdk 2 --modules MEDIA,IPSEC --database ${db} 44 gen_sdk --action new_sdk --sdk 3 --modules MEDIA_PROVIDER --database ${db} 45 gen_sdk --action new_sdk --sdk 4 --modules SDK_EXTENSIONS,IPSEC --database ${db} 55 gen_sdk --action new_sdk --sdk 1 --database ${db} | grep -q MEDIA_PROVIDER 56 gen_sdk --action new_sdk --sdk 2 --database ${db} | grep -q ART 57 ! gen_sdk --action new_sdk --sdk 3 --database ${db} | grep -q UNKNOWN 72 gen_sdk --action new_sdk --sdk 1 --modules MEDIA_PROVIDER --database ${db} 73 if gen_sdk --action new_sdk --sdk 1 --modules SDK_EXTENSIONS --database ${db}; then 101 if gen_sdk --action new_sdk --sdk 1 --modules UNKNOWN --database ${db}; then [all …]
|
D | bump_sdk.sh | 9 sdk="$1" 10 if [[ -z "$sdk" ]]; then 30 --sdk "$sdk" \ 33 message="Bump SDK Extension version to ${sdk}\n" 46 $ gen_sdk --action new_sdk --sdk $sdk
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/ |
D | TopicsWorkerTest.java | 289 final String sdk = "sdk"; in testGetTopics_handleSdkTopicAssignment() local 310 earliestEpochIdToLearnFrom, Map.of(topic, Set.of(sdk))); in testGetTopics_handleSdkTopicAssignment() 316 GetTopicsResult getTopicsResult = mTopicsWorker.getTopics(app, sdk); in testGetTopics_handleSdkTopicAssignment() 343 final String sdk = "sdk"; in testGetTopics_handleSdkTopicAssignment_existingTopicsForSdk() local 346 Pair<String, String> appSdkCaller = Pair.create(app, sdk); in testGetTopics_handleSdkTopicAssignment_existingTopicsForSdk() 365 earliestEpochIdToLearnFrom, Map.of(topic, Set.of(sdk))); in testGetTopics_handleSdkTopicAssignment_existingTopicsForSdk() 377 GetTopicsResult getTopicsResult = mTopicsWorker.getTopics(app, sdk); in testGetTopics_handleSdkTopicAssignment_existingTopicsForSdk() 627 final String sdk = "sdk"; in testClearAllTopicsData() local 642 returnedAppSdkTopicsMap.put(Pair.create(app, sdk), currentTopic); in testClearAllTopicsData() 667 GetTopicsResult getTopicsResultAppSdk1 = mTopicsWorker.getTopics(app, sdk); in testClearAllTopicsData() [all …]
|
D | AppUpdateManagerTest.java | 237 final String sdk = "sdk"; in testReconcileUninstalledApps_handleTopicsWithoutContributor() local 276 mTopicsDao.persistReturnedAppTopicsMap(epoch1, Map.of(Pair.create(app1, sdk), topic3)); in testReconcileUninstalledApps_handleTopicsWithoutContributor() 277 mTopicsDao.persistReturnedAppTopicsMap(epoch1, Map.of(Pair.create(app2, sdk), topic3)); in testReconcileUninstalledApps_handleTopicsWithoutContributor() 278 mTopicsDao.persistReturnedAppTopicsMap(epoch2, Map.of(Pair.create(app1, sdk), topic3)); in testReconcileUninstalledApps_handleTopicsWithoutContributor() 279 mTopicsDao.persistReturnedAppTopicsMap(epoch2, Map.of(Pair.create(app2, sdk), topic3)); in testReconcileUninstalledApps_handleTopicsWithoutContributor() 290 Map.of(epoch2, Map.of(Pair.create(app1, sdk), topic3)); in testReconcileUninstalledApps_handleTopicsWithoutContributor() 314 final String sdk = "sdk"; in testReconcileUninstalledApps_contributorDeletionsToSameTopic() local 344 mTopicsDao.persistReturnedAppTopicsMap(epoch1, Map.of(Pair.create(app1, sdk), topic1)); in testReconcileUninstalledApps_contributorDeletionsToSameTopic() 345 mTopicsDao.persistReturnedAppTopicsMap(epoch1, Map.of(Pair.create(app2, sdk), topic1)); in testReconcileUninstalledApps_contributorDeletionsToSameTopic() 346 mTopicsDao.persistReturnedAppTopicsMap(epoch1, Map.of(Pair.create(app3, sdk), topic1)); in testReconcileUninstalledApps_contributorDeletionsToSameTopic() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/ |
D | TopicsWorker.java | 194 public GetTopicsResult getTopics(@NonNull String app, @NonNull String sdk) { in getTopics() argument 195 sLogger.v("TopicsWorker.getTopics for %s, %s", app, sdk); in getTopics() 199 handleSdkTopicsAssignment(app, sdk); in getTopics() 208 sdk); in getTopics() 229 app, sdk, result.toString()); in getTopics() 245 public void recordUsage(@NonNull String app, @NonNull String sdk) { in recordUsage() argument 248 mEpochManager.recordUsageHistory(app, sdk); in recordUsage() 374 private void handleSdkTopicsAssignment(@NonNull String app, @NonNull String sdk) { in handleSdkTopicsAssignment() argument 376 List<Topic> existingTopics = getExistingTopicsForAppSdk(app, sdk); in handleSdkTopicsAssignment() 384 app, sdk, mEpochManager.getCurrentEpochId())) { in handleSdkTopicsAssignment() [all …]
|
D | CacheManager.java | 171 String sdk, in getTopics() argument 184 Topic topic = mCachedTopics.get(epochId - numEpoch).get(Pair.create(app, sdk)); in getTopics() 231 int numberOfLookBackEpochs, long currentEpochId, String app, String sdk) { in getTopics() argument 232 return getTopics(numberOfLookBackEpochs, currentEpochId, app, sdk, new Random()); in getTopics() 248 long epochLowerBound, long epochUpperBound, @NonNull String app, @NonNull String sdk) { in getTopicsInEpochRange() argument 257 Topic topic = mCachedTopics.get(epochId).get(Pair.create(app, sdk)); in getTopicsInEpochRange() 351 String sdk = pair.second; in dump() local 353 writer.println(String.format("(%s, %s): %s", app, sdk, topic.toString())); in dump()
|
D | EpochManager.java | 264 public void recordUsageHistory(String app, String sdk) { in recordUsageHistory() argument 269 epochId, app, sdk); in recordUsageHistory() 270 mTopicsDao.recordUsageHistory(epochId, app, sdk); in recordUsageHistory() 362 for (String sdk : appSdksUsageMap.get(app)) { in computeCallersCanLearnMap() 363 if (TextUtils.isEmpty(sdk)) { in computeCallersCanLearnMap() 370 callersCanLearnMap.get(topic).add(sdk); in computeCallersCanLearnMap() 416 for (String sdk : appSdks.getValue()) { in computeReturnedAppSdkTopics() 419 sdk, in computeReturnedAppSdkTopics() 423 returnedAppSdkTopics.put(Pair.create(app, sdk), returnedTopic); in computeReturnedAppSdkTopics() 428 returnedTopic, app, sdk); in computeReturnedAppSdkTopics()
|
/packages/modules/Permission/SafetyCenter/ConfigLintChecker/java/android/safetycenter/lint/ |
D | ConfigSchemaDetector.kt | 68 for (sdk in fileSdk downTo TIRAMISU) { in run() variable 69 if (testSchema(sdk, context)) { in run() 82 for (sdk in fileSdk + 1..FileSdk.getMaxSdkVersion()) { in run() variable 83 testSchema(sdk, context) in run() 87 private fun testSchema(sdk: Int, context: Context): Boolean { in testSchema() 88 val xsdInputStream = FileSdk.getSchemaAsStream(sdk) ?: return false in testSchema() 100 "SAXException exception at sdk=$sdk: \"${e.message}\"" in testSchema() 106 "IOException exception at sdk=$sdk: \"${e.message}\"" in testSchema()
|
D | FileSdk.kt | 76 fun getSchemaAsStream(sdk: Int): InputStream? = in getSchemaAsStream() 79 private fun toQualifier(sdk: Int): String = if (sdk == TIRAMISU) "" else "-v$sdk" in getSchemaAsStream()
|
D | ParserExceptionDetector.kt | 129 for (sdk in minSdk..maxSdk) { in run() constant 131 SdkLevel.setSdkInt(sdk) in run() 144 mNameToIndex.filterValues { sdk >= mIndexToMinSdk[it]!! }, in run() 145 mIndexToValue.filterKeys { sdk >= mIndexToMinSdk[it]!! } in run() 152 "Parser exception at sdk=$sdk: \"${e.message}\", cause: " + in run()
|
/packages/modules/SdkExtensions/javatests/com/android/os/ext/ |
D | SdkExtensionsTest.java | 117 for (int sdk = Integer.MIN_VALUE; sdk < VERSION_CODES.R; sdk += step) { in testBadArgument() 118 final int finalSdk = sdk; in testBadArgument() 133 for (int sdk = VERSION_CODES.R; sdk <= 1_000_000; sdk++) { in testZeroValues() 134 if (assignedCodes.contains(sdk)) { in testZeroValues() 138 int version = SdkExtensions.getExtensionVersion(sdk); in testZeroValues() 139 assertEquals("Extension ID " + sdk + " has non-zero version", 0, version); in testZeroValues()
|
/packages/modules/common/build/ |
D | mainline_modules_sdks.py | 370 sdk_snapshot_zip_file(self.mainline_sdks_dir, sdk) 372 for sdk in module.sdks 515 for sdk in module.sdks: 516 sdk_type = sdk_type_from_name(sdk) 521 sdk) 546 def create_snapshot_gantry_metadata_and_api_diff(self, sdk, target_dict, argument 555 sdk_info_file = sdk_snapshot_info_file(snapshots_dir, sdk) 556 sdk_zip_file = sdk_snapshot_zip_file(snapshots_dir, sdk) 557 sdk_api_diff_file = sdk_snapshot_api_diff_file(snapshots_dir, sdk) 585 snapshots_dir, sdk) [all …]
|
D | mainline_modules_sdks_test.py | 73 for sdk in module.sdks: 74 self.create_snapshot_file(sdks_out_dir, sdk, module.for_r_build) 77 def get_art_module_info_file_data(self, sdk): argument 104 def create_snapshot_info_file(self, module, sdk_info_file, sdk): argument 107 self.get_art_module_info_file_data(sdk)) 120 for sdk in module.sdks: 121 if "host-exports" in sdk or "test-exports" in sdk: 125 Path(self.mainline_sdks_dir).joinpath("test"), sdk) 126 self.create_snapshot_info_file(module, sdk_info_file, sdk)
|
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/ |
D | SdkSandboxManagerTest.java | 144 ICtsSdkProviderApi sdk = loadSdk(); in testLoadSdkAndCheckClassloader() local 145 sdk.checkClassloaders(); in testLoadSdkAndCheckClassloader() 150 ICtsSdkProviderApi sdk = loadSdk(); in testGetOpPackageName() local 153 assertThat(sdk.getOpPackageName()).isEqualTo(pm.getSdkSandboxPackageName()); in testGetOpPackageName() 406 ICtsSdkProviderApi sdk = loadSdk(); in testResourcesAndAssets() local 407 sdk.checkResourcesAndAssets(); in testResourcesAndAssets() 516 ICtsSdkProviderApi sdk = loadSdk(); in testSdkAndAppProcessImportanceIsAligned_AppIsBackgrounded() local 517 assertThat(sdk.getProcessImportance()).isEqualTo(getAppProcessImportance()); in testSdkAndAppProcessImportanceIsAligned_AppIsBackgrounded() 523 assertThat(sdk.getProcessImportance()).isEqualTo(getAppProcessImportance()); in testSdkAndAppProcessImportanceIsAligned_AppIsBackgrounded() 532 ICtsSdkProviderApi sdk = loadSdk(); in testSdkAndAppProcessImportanceIsAligned_AppIsBackgroundedAndForegrounded() local [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | AppManifestConfig.java | 117 public boolean isAllowedAdIdAccess(@NonNull String sdk) { in isAllowedAdIdAccess() argument 119 || mAdIdConfig.getAllowAdPartnersToAccess().contains(sdk); in isAllowedAdIdAccess() 130 public boolean isAllowedAppSetIdAccess(@NonNull String sdk) { in isAllowedAppSetIdAccess() argument 132 || mAppSetIdConfig.getAllowAdPartnersToAccess().contains(sdk); in isAllowedAppSetIdAccess()
|
/packages/modules/SdkExtensions/ |
D | README.md | 35 read the version of a particular sdk extension, e.g. 47 …tps://android.googlesource.com/platform/packages/modules/common/+/refs/heads/master/proto/sdk.proto 100 7) **prebuilts/sdk & module sdk repos:** Once the train is finalized, the API 119 [finalize]: https://android.googlesource.com/platform/prebuilts/sdk/+/d77e77b6746acba806c263344711e… 131 - Add any new modules to the SdkModule enum in sdk.proto. e.g. 134 - Add the binary "current sdk version" proto to the apexes of the new modules. 160 - Add a new sdk tag in sdk-extensions-info.xml
|
D | Android.bp | 57 sdk { 58 name: "sdkextensions-sdk", 60 // Adds exportable dependencies of the APEX to the sdk, 97 name: "sdk-extensions-info", 98 srcs: ["sdk-extensions-info.xml"],
|
/packages/modules/common/build/mainline_modules_sdks_test_data/ |
D | art_Android.bp.input | 5 // be unnecessary as every module in the sdk already has its own licenses property. 15 "//art/build/sdk", 53 "//art/build/sdk", 66 "//art/build/sdk",
|
D | art_Android.bp.expected | 32 // be unnecessary as every module in the sdk already has its own licenses property. 48 "//art/build/sdk", 92 "//art/build/sdk", 111 "//art/build/sdk",
|
D | art_host_exports_Android.bp.expected | 32 // be unnecessary as every module in the sdk already has its own licenses property. 48 "//art/build/sdk", 92 "//art/build/sdk", 111 "//art/build/sdk",
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/topics/ |
D | TopicsDaoTest.java | 692 for (String sdk : new String[] {sdk1, sdk2}) { in testDeleteAllTopicsTables() 693 mTopicsDao.recordUsageHistory(epochId, app, sdk); in testDeleteAllTopicsTables() 697 epochId, Map.of(Pair.create(app, sdk), topic1)); in testDeleteAllTopicsTables() 699 epochId, Map.of(Pair.create(app, sdk), topic2)); in testDeleteAllTopicsTables() 756 final String sdk = "sdk"; in testDeleteFromTableByColumn() local 793 returnedAppSdkTopics.put(Pair.create(app1, sdk), topic1); in testDeleteFromTableByColumn() 795 returnedAppSdkTopics.put(Pair.create(app2, sdk), topic1); in testDeleteFromTableByColumn() 848 final String sdk = "sdk"; in testDeleteEntriesFromTableByColumnWithEqualCondition() local 854 mTopicsDao.persistReturnedAppTopicsMap(epochId1, Map.of(Pair.create(app, sdk), topic1)); in testDeleteEntriesFromTableByColumnWithEqualCondition() 855 mTopicsDao.persistReturnedAppTopicsMap(epochId2, Map.of(Pair.create(app, sdk), topic2)); in testDeleteEntriesFromTableByColumnWithEqualCondition() [all …]
|
/packages/modules/AdServices/sdksandbox/tests/testutils/testscenario/ |
D | README.md | 28 test cases. Create a new module for your sdk side tests. 43 // this sdk. 63 <sdk-library android:name="<your.test.package>" 124 <uses-sdk-library android:name="<your.test.sdk.package>" 169 "your.test.sdk.package"); 213 There may be times when you need to pass through custom setup information to your sdk. 219 One example is if you want to reuse an sdk in order to test multiple test instances. For this you 263 "your.test.sdk.package", new SharedCustomBinder.Stub() { 297 "any.sdk.you.want");
|
/packages/modules/Media/apex/ |
D | Android.bp | 24 sdk { 25 name: "media-module-sdk", 27 // Adds exportable dependencies of the APEX to the sdk,
|
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/appupdate/testapps/testapp1/java/com/android/adservices/tests/cts/topics/testapp1/ |
D | MainActivity.java | 96 private GetTopicsResponse callTopicsApi(@NonNull String sdk) throws Exception { in callTopicsApi() argument 101 if (!sdk.isEmpty()) { in callTopicsApi() 102 builder.setSdkName(sdk); in callTopicsApi()
|
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxMetricsHostTest/app/src/com/android/tests/sdksandbox/ |
D | SdkSandboxMetricsTestApp.java | 89 final ICrashTestSdkApi sdk = in testSdkCanAccessSdkSandboxExitReasons() local 91 final ApplicationExitInfo info = sdk.getLastApplicationExitInfo(); in testSdkCanAccessSdkSandboxExitReasons() 178 final ICrashTestSdkApi sdk = in generateSdkSandboxCrash() local 180 sdk.triggerCrash(); in generateSdkSandboxCrash()
|