Home
last modified time | relevance | path

Searched refs:authContext (Results 1 – 8 of 8) sorted by relevance

/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/security/
DAuthorizationContextTest.java107 AuthorizationContext authContext = in updateAuthState_success() local
115 authContext.updateAuthState(AUTH_METADATA, mMockTrainingEventLogger); in updateAuthState_success()
117 assertFalse(authContext.isFirstAuthTry()); in updateAuthState_success()
118 assertNotNull(authContext.getAttestationRecord()); in updateAuthState_success()
124 AuthorizationContext authContext = in generateAuthHeader_emptyToken() local
132 Map<String, String> headers = authContext.generateAuthHeaders(); in generateAuthHeader_emptyToken()
140 AuthorizationContext authContext = in generateAuthHeader_token() local
148 Map<String, String> headers = authContext.generateAuthHeaders(); in generateAuthHeader_token()
154 AuthorizationContext authContext = in generateAuthHeader_attestationRecord() local
171 authContext.updateAuthState(AUTH_METADATA, mMockTrainingEventLogger); in generateAuthHeader_attestationRecord()
[all …]
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/http/
DHttpFederatedProtocol.java127 AuthorizationContext authContext) { in createTaskAssignment() argument
133 return FluentFuture.from(createTaskAssignment(authContext, networkStats)) in createTaskAssignment()
137 authContext, response, networkStats), in createTaskAssignment()
168 AuthorizationContext authContext) {
175 performReportResult(computationResult, authContext, reportResultStats))
180 if (authContext.isFirstAuthTry()) {
222 performReportResult(computationResult, authContext, reportResultStats))
237 AuthorizationContext authContext,
241 if (authContext.isFirstAuthTry()) {
272 AuthorizationContext authContext, NetworkStats networkStats) {
[all …]
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/training/
DFederatedComputeWorker.java297 AuthorizationContext authContext =
305 return FluentFuture.from(mHttpFederatedProtocol.createTaskAssignment(authContext))
318 run, taskAssignmentResponse, authContext);
343 AuthorizationContext authContext) {
345 authContext.updateAuthState(
348 return FluentFuture.from(mHttpFederatedProtocol.createTaskAssignment(authContext))
1085 AuthorizationContext authContext,
1092 computationResult, encryptionKey, authContext))
1096 if (authContext.isFirstAuthTry() && resp.hasAuthMetadata()) {
1097 authContext.updateAuthState(
[all …]
/packages/apps/Settings/src/com/android/settings/accounts/
DChooseAccountPreferenceController.java247 final Context authContext = mActivity in getDrawableForType() local
250 authContext.getDrawable(desc.iconId), mUserHandle); in getDrawableForType()
276 final Context authContext = mActivity in getLabelForType() local
278 label = authContext.getResources().getText(desc.labelId); in getLabelForType()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/http/
DHttpFederatedProtocolTest.java375 AuthorizationContext authContext = createAuthContext(); in testIssueCheckin_unauthenticatedWithSecondTry() local
376 authContext.updateAuthState(AUTH_METADATA, mTrainingEventLogger); in testIssueCheckin_unauthenticatedWithSecondTry()
380 () -> mHttpFederatedProtocol.createTaskAssignment(authContext).get()); in testIssueCheckin_unauthenticatedWithSecondTry()
470 AuthorizationContext authContext = createAuthContextWithAttestationRecord(); in testCreateTaskAssignment_unauthorized() local
474 () -> mHttpFederatedProtocol.createTaskAssignment(authContext).get()); in testCreateTaskAssignment_unauthorized()
885 AuthorizationContext authContext = createAuthContext(); in testReportResult_throws() local
886 authContext.updateAuthState(AUTH_METADATA, mTrainingEventLogger); in testReportResult_throws()
894 computationResult, ENCRYPTION_KEY, authContext) in testReportResult_throws()
951 AuthorizationContext authContext = in createAuthContextWithAttestationRecord() local
959 authContext.updateAuthState(AUTH_METADATA, mTrainingEventLogger); in createAuthContextWithAttestationRecord()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DFactoryResetAccountsPreferenceController.java121 Context authContext = getContext().createPackageContextAsUser( in getAccountIcon() local
124 authContext.getDrawable(description.iconId), userHandle); in getAccountIcon()
/packages/apps/Settings/src/com/android/settings/
DSettingsActivity.java536 Context authContext = createPackageContextAsUser(initialTitleResPackageName, in setTitleFromIntent() local
538 mInitialTitle = authContext.getResources().getText(mInitialTitleResId); in setTitleFromIntent()
DMainClear.java568 Context authContext = context.createPackageContextAsUser(desc.packageName, in loadAccountList() local
571 authContext.getDrawable(desc.iconId), userHandle); in loadAccountList()