Home
last modified time | relevance | path

Searched refs:sdkName (Results 1 – 25 of 47) sorted by relevance

12

/packages/modules/AdServices/adservices/samples/topics/sampleapp1/java/com/example/adservices/samples/topics/sampleapp1/
DMainActivity.java96 for (String sdkName : SDK_NAMES) { in registerGetTopicsButton()
97 getTopics(sdkName, true); in registerGetTopicsButton()
107 for (String sdkName : SDK_NAMES) { in registerTopicsPreviewButton()
108 getTopics(sdkName, false); in registerTopicsPreviewButton()
138 private void getTopics(String sdkName, boolean shouldRecordObservation) { in getTopics() argument
144 .setSdkName(sdkName) in getTopics()
166 Log.d(TAG, "GetTopics for sdk " + sdkName + " succeeded!"); in getTopics()
176 sdkName in getTopics()
182 sdkName in getTopics()
189 Log.d(TAG, sdkName + "'s topics: " + NEWLINE + topics + NEWLINE); in getTopics()
[all …]
/packages/modules/AdServices/sdksandbox/SdkSandbox/src/com/android/sdksandbox/
DSdkSandboxServiceImpl.java169 String sdkName, in loadSdk() argument
188 sdkName, in loadSdk()
198 String sdkName, in unloadSdk() argument
204 unloadSdkInternal(sdkName); in unloadSdk()
340 @NonNull String sdkName, in loadSdkInternal() argument
347 if (mHeldSdk.containsKey(sdkName)) { in loadSdkInternal()
364 "Package name not found " + sdkName + ". errorMsg: " + e.getMessage(), in loadSdkInternal()
382 sdkName, in loadSdkInternal()
388 new SdkHolderToSdkSandboxServiceCallbackImpl(sdkName, sandboxedSdkHolder); in loadSdkInternal()
433 private void unloadSdkInternal(@NonNull String sdkName) { in unloadSdkInternal() argument
[all …]
/packages/modules/AdServices/adservices/samples/topics/sampleapp6/java/com/example/adservices/samples/topics/sampleapp6/
DMainActivity.java88 for (String sdkName : SDK_NAMES) { in registerGetTopicsButton()
92 .setSdkName(sdkName) in registerGetTopicsButton()
103 Log.d(TAG, "GetTopics for sdk " + sdkName + " succeeded!"); in registerGetTopicsButton()
112 sdkName in registerGetTopicsButton()
118 sdkName in registerGetTopicsButton()
128 sdkName in registerGetTopicsButton()
135 sdkName in registerGetTopicsButton()
150 + sdkName in registerGetTopicsButton()
159 + sdkName in registerGetTopicsButton()
/packages/modules/AdServices/adservices/samples/topics/sampleappwithnoperm/java/com/example/adservices/samples/topics/sampleappwithnoperm/
DMainActivity.java86 for (String sdkName : SDK_NAMES) { in registerGetTopicsButton()
90 .setSdkName(sdkName) in registerGetTopicsButton()
101 Log.d(TAG, "GetTopics for sdk " + sdkName + " succeeded!"); in registerGetTopicsButton()
111 sdkName in registerGetTopicsButton()
117 sdkName in registerGetTopicsButton()
128 sdkName in registerGetTopicsButton()
135 sdkName in registerGetTopicsButton()
151 + sdkName in registerGetTopicsButton()
161 + sdkName in registerGetTopicsButton()
/packages/modules/AdServices/adservices/samples/topics/sampleapp3/java/com/example/adservices/samples/topics/sampleapp3/
DMainActivity.java87 for (String sdkName : SDK_NAMES) { in registerGetTopicsButton()
91 .setSdkName(sdkName) in registerGetTopicsButton()
102 Log.d(TAG, "GetTopics for sdk " + sdkName + " succeeded!"); in registerGetTopicsButton()
112 sdkName in registerGetTopicsButton()
118 sdkName in registerGetTopicsButton()
129 sdkName in registerGetTopicsButton()
136 sdkName in registerGetTopicsButton()
152 + sdkName in registerGetTopicsButton()
162 + sdkName in registerGetTopicsButton()
/packages/modules/AdServices/adservices/samples/topics/sampleapp2/java/com/example/adservices/samples/topics/sampleapp2/
DMainActivity.java87 for (String sdkName : SDK_NAMES) { in registerGetTopicsButton()
91 .setSdkName(sdkName) in registerGetTopicsButton()
102 Log.d(TAG, "GetTopics for sdk " + sdkName + " succeeded!"); in registerGetTopicsButton()
112 sdkName in registerGetTopicsButton()
118 sdkName in registerGetTopicsButton()
129 sdkName in registerGetTopicsButton()
136 sdkName in registerGetTopicsButton()
152 + sdkName in registerGetTopicsButton()
162 + sdkName in registerGetTopicsButton()
/packages/modules/AdServices/adservices/samples/topics/sampleappwithoptoutall/java/com/example/adservices/samples/topics/sampleappwithoptoutall/
DMainActivity.java86 for (String sdkName : SDK_NAMES) { in registerGetTopicsButton()
90 .setSdkName(sdkName) in registerGetTopicsButton()
101 Log.d(TAG, "GetTopics for sdk " + sdkName + " succeeded!"); in registerGetTopicsButton()
111 sdkName in registerGetTopicsButton()
117 sdkName in registerGetTopicsButton()
128 sdkName in registerGetTopicsButton()
135 sdkName in registerGetTopicsButton()
151 + sdkName in registerGetTopicsButton()
161 + sdkName in registerGetTopicsButton()
/packages/modules/AdServices/adservices/samples/topics/sampleapp5/java/com/example/adservices/samples/topics/sampleapp5/
DMainActivity.java86 for (String sdkName : SDK_NAMES) { in registerGetTopicsButton()
90 .setSdkName(sdkName) in registerGetTopicsButton()
101 Log.d(TAG, "GetTopics for sdk " + sdkName + " succeeded!"); in registerGetTopicsButton()
110 sdkName in registerGetTopicsButton()
116 sdkName in registerGetTopicsButton()
127 sdkName in registerGetTopicsButton()
134 sdkName in registerGetTopicsButton()
150 + sdkName in registerGetTopicsButton()
160 + sdkName in registerGetTopicsButton()
/packages/modules/AdServices/adservices/samples/topics/sampleapp4/java/com/example/adservices/samples/topics/sampleapp4/
DMainActivity.java87 for (String sdkName : SDK_NAMES) { in registerGetTopicsButton()
91 .setSdkName(sdkName) in registerGetTopicsButton()
102 Log.d(TAG, "GetTopics for sdk " + sdkName + " succeeded!"); in registerGetTopicsButton()
112 sdkName in registerGetTopicsButton()
118 sdkName in registerGetTopicsButton()
129 sdkName in registerGetTopicsButton()
136 sdkName in registerGetTopicsButton()
152 + sdkName in registerGetTopicsButton()
162 + sdkName in registerGetTopicsButton()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DAppImportanceFilter.java144 @NonNull String appPackageName, int apiNameIdForLogging, @Nullable String sdkName) in assertCallerIsInForeground() argument
166 sdkName); in assertCallerIsInForeground()
188 int appUid, int apiNameLoggingId, @Nullable String sdkName) in assertCallerIsInForeground() argument
206 sdkName); in assertCallerIsInForeground()
227 sdkName); in assertCallerIsInForeground()
237 @Nullable String sdkName) { in logForegroundViolation() argument
243 .setSdkPackageName(sdkName != null ? sdkName : "") in logForegroundViolation()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DEncryptionManager.java104 public Optional<EncryptedTopic> encryptTopic(Topic topic, String sdkName) { in encryptTopic() argument
106 encryptTopicWithKey(topic, fetchPublicKeyFor(sdkName)); in encryptTopic()
115 private Optional<String> fetchPublicKeyFor(String sdkName) { in fetchPublicKeyFor() argument
121 sLogger.v("Fetching EnrollmentData for %s", sdkName); in fetchPublicKeyFor()
122 EnrollmentData enrollmentData = mEnrollmentDao.getEnrollmentDataFromSdkName(sdkName); in fetchPublicKeyFor()
136 sLogger.e("Failed to fetch encryption key for %s", sdkName); in fetchPublicKeyFor()
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/testutils/
DSdkSandboxStorageManagerUtility.java115 for (String sdkName : sdkNames) { in getSdkStorageDirInfoForTest()
116 String sdkCeSubDirPath = cePackageDir + "/" + sdkName + "@" + sdkName; in getSdkStorageDirInfoForTest()
117 String sdkDeSubDirPath = dePackageDir + "/" + sdkName + "@" + sdkName; in getSdkStorageDirInfoForTest()
DStubSdkSandboxManagerService.java57 String sdkName, in loadSdk() argument
64 String callingPackageName, String sdkName, SandboxLatencyInfo sandboxLatencyInfo) {} in unloadSdk() argument
69 String sdkName, in requestSurfacePackage() argument
DSdkSandboxUiTestRule.java82 public SdkSandboxUiTestRule(Context context, Class activityClass, String sdkName) { in SdkSandboxUiTestRule() argument
90 mLoadSdkInSandboxRule = new LoadSdkInSandboxRule(context, activityClass, sdkName); in SdkSandboxUiTestRule()
162 LoadSdkInSandboxRule(Context context, Class activityClass, String sdkName) { in LoadSdkInSandboxRule() argument
165 mSdkName = sdkName; in LoadSdkInSandboxRule()
DSdkLifecycleHelper.java37 public void unloadSdk(String sdkName) { in unloadSdk() argument
41 mSdkSandboxManager.unloadSdk(sdkName); in unloadSdk()
/packages/modules/AdServices/adservices/framework/java/android/adservices/topics/
DTopicsManager.java157 String sdkName = getTopicsRequest.getAdsSdkName(); in getTopics() local
168 if (!TextUtils.isEmpty(sdkName)) { in getTopics()
179 sdkName = sdkNameFromSandboxedContext; in getTopics()
182 if (null == sdkName) { in getTopics()
185 sdkName = EMPTY_SDK; in getTopics()
193 .setSdkName(sdkName) in getTopics()
DGetTopicsParam.java39 @NonNull String sdkName, in GetTopicsParam()
43 mSdkName = sdkName; in GetTopicsParam()
118 public @NonNull Builder setSdkName(@NonNull String sdkName) { in setSdkName() argument
119 mSdkName = sdkName; in setSdkName()
/packages/modules/AdServices/adservices/clients/java/android/adservices/clients/topics/
DAdvertisingTopicsClient.java48 @NonNull String sdkName, in AdvertisingTopicsClient() argument
52 mSdkName = sdkName; in AdvertisingTopicsClient()
132 public @NonNull Builder setSdkName(@NonNull String sdkName) { in setSdkName() argument
133 mSdkName = sdkName; in setSdkName()
/packages/modules/AdServices/sdksandbox/framework/java/android/app/sdksandbox/
DSdkSandboxManager.java508 @NonNull String sdkName, in loadSdk()
512 Objects.requireNonNull(sdkName, "sdkName should not be null"); in loadSdk()
534 sdkName, in loadSdk() local
571 public void unloadSdk(@NonNull String sdkName) { in unloadSdk() argument
572 Objects.requireNonNull(sdkName, "sdkName should not be null"); in unloadSdk()
577 mService.unloadSdk(mContext.getPackageName(), sdkName, sandboxLatencyInfo); in unloadSdk() local
619 @NonNull String sdkName, in requestSurfacePackage()
623 Objects.requireNonNull(sdkName, "sdkName should not be null"); in requestSurfacePackage()
669 sdkName, in requestSurfacePackage() local
DSandboxedSdkContext.java71 @NonNull String sdkName, in SandboxedSdkContext() argument
79 sdkName, in SandboxedSdkContext()
91 @NonNull String sdkName, in SandboxedSdkContext() argument
97 mSdkName = sdkName; in SandboxedSdkContext()
DISdkSandboxManager.aidl44 …oneway void loadSdk(in String callingPackageName, in IBinder appProcessToken, in String sdkName, i… in loadSdk() argument
45 …void unloadSdk(in String callingPackageName, in String sdkName, in SandboxLatencyInfo sandboxLaten… in unloadSdk() argument
47 …oneway void requestSurfacePackage(in String callingPackageName, in String sdkName, in IBinder host… in requestSurfacePackage() argument
/packages/modules/AdServices/sdksandbox/tests/testutils/testscenario/testrule/src/android/app/sdksandbox/testutils/testscenario/
DSdkSandboxScenarioRule.java92 public SdkSandboxScenarioRule(String sdkName) { in SdkSandboxScenarioRule() argument
93 this(sdkName, null, null, ENABLE_ALWAYS); in SdkSandboxScenarioRule()
97 String sdkName, Bundle testInstanceSetupParams, @Nullable IBinder customInterface) { in SdkSandboxScenarioRule() argument
98 this(sdkName, testInstanceSetupParams, customInterface, ENABLE_ALWAYS); in SdkSandboxScenarioRule()
102 String sdkName, in SdkSandboxScenarioRule() argument
106 mSdkName = sdkName; in SdkSandboxScenarioRule()
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DSdkSandboxStorageManager.java128 public StorageDirInfo getSdkStorageDirInfo(CallingInfo callingInfo, String sdkName) { in getSdkStorageDirInfo() argument
138 final String sdkCeSubDirPath = ceSubDirs.getSdkSubDir(sdkName, /*fullPath=*/ true); in getSdkStorageDirInfo()
139 final String sdkDeSubDirPath = deSubDirs.getSdkSubDir(sdkName, /*fullPath=*/ true); in getSdkStorageDirInfo()
541 public String getSdkSubDir(String sdkName) { in getSdkSubDir() argument
542 return getSdkSubDir(sdkName, /*fullPath=*/ false); in getSdkSubDir()
547 public String getSdkSubDir(String sdkName, boolean fullPath) { in getSdkSubDir() argument
548 final String subDir = mSdkSubDirs.getOrDefault(sdkName, null); in getSdkSubDir()
589 final String sdkName = sdkNames.get(i); in generateSubDirNames() local
590 final String subDirName = getOrGenerateSdkSubDir(sdkName); in generateSubDirNames()
605 private String getOrGenerateSdkSubDir(String sdkName) { in getOrGenerateSdkSubDir() argument
[all …]
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/helpers/
DPackageManagerHelper.java48 @NonNull String packageName, @NonNull String sdkName) in getSdkSharedLibraryInfoForSdk() argument
53 .filter(sharedLibraryInfo -> sharedLibraryInfo.getName().equals(sdkName)) in getSdkSharedLibraryInfoForSdk()
57 throw new PackageManager.NameNotFoundException(sdkName); in getSdkSharedLibraryInfoForSdk()
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/src/com/android/adservices/tests/cts/topics/
DPreviewApiTest.java137 String sdkName = "sdk1"; in testForTopicsAPITestCoverage() local
140 builder.setAdsSdkName(sdkName); in testForTopicsAPITestCoverage()
144 assertThat(request.getAdsSdkName()).isEqualTo(sdkName); in testForTopicsAPITestCoverage()

12