Home
last modified time | relevance | path

Searched refs:userName (Results 1 – 25 of 28) sorted by relevance

12

/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioPlaybackRequestResults.java37 public static AudioPlaybackRequestResults newInstance(String userName, boolean allowed) { in newInstance() argument
38 return new AudioPlaybackRequestResults(userName, allowed); in newInstance()
41 private AudioPlaybackRequestResults(String userName, boolean allowed) { in AudioPlaybackRequestResults() argument
42 mUserName = Objects.requireNonNull(userName, "User name can not be null"); in AudioPlaybackRequestResults()
DAcceptAudioDialog.java37 public static AcceptAudioDialog newInstance(OnAudioAllowedCallback callback, String userName) { in newInstance() argument
38 return new AcceptAudioDialog(callback, userName); in newInstance()
41 private AcceptAudioDialog(OnAudioAllowedCallback callback, String userName) { in AcceptAudioDialog() argument
43 mUserName = Objects.requireNonNull(userName, "User name can not be null"); in AcceptAudioDialog()
/packages/modules/adb/sysdeps/
Denv.cpp99 const auto userName = GetEnvironmentVariable(kUserNameEnvVar); in GetLoginNameUTF8() local
100 if (userName && !userName->empty()) { in GetLoginNameUTF8()
101 return *userName; in GetLoginNameUTF8()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DExperimentalCarUserServiceTest.java141 String userName = "testUser"; in testCreatePassenger() local
144 mockCreateProfile(driverId, userName, passenger); in testCreatePassenger()
147 assertThat(mExperimentalCarUserService.createPassenger(userName, driverId)) in testCreatePassenger()
154 String userName = "testUser"; in testCreatePassenger_IfMaximumProfileAlreadyCreated() local
156 mockCreateProfile(driver.getIdentifier(), userName, null); in testCreatePassenger_IfMaximumProfileAlreadyCreated() local
158 assertThat(mExperimentalCarUserService.createPassenger(userName, driver.getIdentifier())) in testCreatePassenger_IfMaximumProfileAlreadyCreated()
166 String userName = "testUser"; in testCreatePassenger_IfDriverIsGuest() local
167 assertThat(mExperimentalCarUserService.createPassenger(userName, driverId)).isNull(); in testCreatePassenger_IfDriverIsGuest()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/user/
DUserHelperTest.java96 String userName = "NewUser"; in testAssignDefaultIcon() local
97 UserInfo newNonAdmin = newUser(userId, userName); in testAssignDefaultIcon()
108 String userName = "NewUser"; in testAssignDefaultIcon_nullContext_throwsException() local
109 UserInfo newNonAdmin = newUser(userId, userName); in testAssignDefaultIcon_nullContext_throwsException()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DEmergencyNamePreference.java178 CharSequence userName = mUserNameView.getText(); in onDialogClosed() local
179 if (!TextUtils.isEmpty(userName)) { in onDialogClosed()
181 || !userName.toString().equals(mUserManager.getUserName())) { in onDialogClosed()
182 mUserManager.setUserName(UserHandle.myUserId(), userName.toString()); in onDialogClosed()
183 setSummary(userName); in onDialogClosed()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/
DBluetoothPbapObexAuthenticatorTest.java56 byte[] userName = new byte[] {}; in onAuthenticationResponse()
58 assertThat(mAuthenticator.onAuthenticationResponse(userName)).isNull(); in onAuthenticationResponse()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/
DBluetoothPbapObexAuthenticator.java54 public byte[] onAuthenticationResponse(byte[] userName) { in onAuthenticationResponse() argument
55 Log.v(TAG, "onAuthenticationResponse: " + Arrays.toString(userName)); in onAuthenticationResponse()
/packages/services/Telephony/src/com/android/phone/
DEmergencyInfoGroup.java174 final String userName = userManager.getUserName(); in getUserName() local
176 return TextUtils.isEmpty(userName) ? getContext().getText( in getUserName()
177 R.string.emergency_information_owner_hint) : userName; in getUserName()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/
DBluetoothPbapAuthenticatorTest.java139 byte[] userName = "test_user_name".getBytes(); in testOnAuthenticationResponse()
142 assertThat(mAuthenticator.onAuthenticationResponse(userName)).isNull(); in testOnAuthenticationResponse()
DBluetoothPbapObexServerTest.java285 byte[] userName = {0x57, 0x68, 0x79}; in testOnAuthenticationFailure()
287 mServer.onAuthenticationFailure(userName); in testOnAuthenticationFailure()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DCloneBackend.java95 String userName = "cloneUser"; in installCloneApp() local
103 cloneUserHandle = um.createProfile(userName, USER_TYPE_PROFILE_CLONE, in installCloneApp()
/packages/apps/Car/DebuggingRestrictionController/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/
DLoginActivity.java104 String userName = loginResult.getSuccess().getDisplayName(); in onCreate()
105 Log.d(TAG, "User " + userName + " signed in"); in onCreate()
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/
DUserTestingHelper.java108 public static UserInfo newUser(@UserIdInt int userId, @NonNull String userName) { in newUser() argument
109 return new UserInfoBuilder(userId).setName(userName).build(); in newUser()
/packages/apps/Settings/src/com/android/settings/network/apn/
DApnStatus.kt37 val userName: String = "", constant in com.android.settings.network.apn.ApnData
62 Telephony.Carriers.USER to userName, in getContentValueMap()
DApnEditPageProvider.kt182 value = apnData.userName, in ApnPage()
185 ) { apnData = apnData.copy(userName = it) } in ApnPage()
DApnRepository.kt79 userName = cursor.getString(Telephony.Carriers.USER), in <lambda>()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbap/
DBluetoothPbapAuthenticator.java96 public byte[] onAuthenticationResponse(final byte[] userName) { in onAuthenticationResponse() argument
/packages/apps/Settings/src/com/android/settings/privatespace/
DPrivateSpaceMaintainer.java106 final String userName = "Private space"; in createPrivateSpace() local
111 userName, USER_TYPE_PROFILE_PRIVATE, new ArraySet<>()); in createPrivateSpace()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileHelper.java324 private UserInfo createNewAdminProfile(Context context, String userName) { in createNewAdminProfile() argument
331 mCarUserManager.createUser(userName, UserInfo.FLAG_ADMIN)); in createNewAdminProfile()
/packages/apps/Settings/src/com/android/settings/users/
DUserSettings.java922 (userName, userIcon, isAdmin) -> {
924 mPendingUserName = userName;
1029 void createUser(final int userType, String userName) {
1038 userName,
1045 user = mUserManager.createRestrictedProfile(userName);
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapMsChapV2MethodStateMachine.java631 String userName, in checkAuthenticatorResponse() argument
636 password, ntResponse, peerChallenge, authenticatorChallenge, userName); in checkAuthenticatorResponse()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DTestActivity.java594 public void onAuthenticationFailure(byte[] userName) {} in onAuthenticationFailure() argument
/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DRotaryService.java1022 String userName = mUserManager.getUserName(); in registerInputMethodObserver()
1024 + userName); in registerInputMethodObserver()
1026 .putString(TOUCH_INPUT_METHOD_PREFIX + userName, mTouchInputMethod) in registerInputMethodObserver()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java796 String userName = resp.userNameToCreate; in initBootUser()
800 .setNewUserName(userName) in initBootUser()

12