Home
last modified time | relevance | path

Searched refs:otherUser (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsProviderTest.java176 UserInfo otherUser = um.createUser("TestUser1", UserInfo.FLAG_GUEST); in testSettingsChangeForOtherUser() local
177 assertTrue(otherUser != null); in testSettingsChangeForOtherUser()
180 otherUser.id, UserHandle.getCallingUserId()); in testSettingsChangeForOtherUser()
186 Settings.Secure.putStringForUser(r, testKey, testValue2, otherUser.id); in testSettingsChangeForOtherUser()
189 assertEquals(testValue2, Settings.Secure.getStringForUser(r, testKey, otherUser.id)); in testSettingsChangeForOtherUser()
192 otherUser.id, UserHandle.getCallingUserId()); in testSettingsChangeForOtherUser()
195 um.removeUser(otherUser.id); in testSettingsChangeForOtherUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DTrampolineTest.java429 int otherUser = NON_USER_SYSTEM + 1; in setBackupServiceActive_forOneNonSystemUser_doesNotActivateForAllNonSystemUsers() local
430 File activateFile = new File(mTestDir, "activate-" + otherUser); in setBackupServiceActive_forOneNonSystemUser_doesNotActivateForAllNonSystemUsers()
431 TrampolineTestable.sActivatedFiles.append(otherUser, activateFile); in setBackupServiceActive_forOneNonSystemUser_doesNotActivateForAllNonSystemUsers()
437 assertFalse(mTrampoline.isBackupServiceActive(otherUser)); in setBackupServiceActive_forOneNonSystemUser_doesNotActivateForAllNonSystemUsers()