Home
last modified time | relevance | path

Searched refs:agentBinder (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupAgentTest.java158 IBackupAgent agentBinder = (IBackupAgent) agent.onBind(); in doRestoreFile_agentOverrideIgnoresFile_consumesAllBytesInBuffer() local
165 agentBinder.doRestoreFile(pipes[0], /* length= */ 5, BackupAgent.TYPE_FILE, in doRestoreFile_agentOverrideIgnoresFile_consumesAllBytesInBuffer()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DBackupManagerServiceRoboTest.java225 IBinder agentBinder = mock(IBinder.class); in testAgentConnected_onRegisteredUser_callsMethodForUser() local
227 backupManagerService.agentConnected(mUserOneId, TEST_PACKAGE, agentBinder); in testAgentConnected_onRegisteredUser_callsMethodForUser()
229 verify(mUserOneService).agentConnected(TEST_PACKAGE, agentBinder); in testAgentConnected_onRegisteredUser_callsMethodForUser()
238 IBinder agentBinder = mock(IBinder.class); in testAgentConnected_onUnknownUser_doesNotPropagateCall() local
240 backupManagerService.agentConnected(mUserTwoId, TEST_PACKAGE, agentBinder); in testAgentConnected_onUnknownUser_doesNotPropagateCall()
242 verify(mUserOneService, never()).agentConnected(TEST_PACKAGE, agentBinder); in testAgentConnected_onUnknownUser_doesNotPropagateCall()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java1099 verify(agentMock.agentBinder).fail(any()); in testRunTask_whenAgentUsesProhibitedKey_failsAgent()
1210 verify(agentMock1.agentBinder).fail(any()); in testRunTask_whenFirstAgentUsesProhibitedKeyButLastAgentUsesPermittedKey()
1476 .when(agentMock.agentBinder) in testRunTask_whenFinishBackupSucceeds_sendsAgentLogsToMonitor()
2894 .when(agentMock.agentBinder) in remoteAgentOnBackupThrows()
3018 private final IBackupAgent agentBinder; field in AgentMock
3023 private AgentMock(IBackupAgent agentBinder, BackupAgent agent) { in AgentMock() argument
3024 this.agentBinder = agentBinder; in AgentMock()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java656 public void agentConnected(@UserIdInt int userId, String packageName, IBinder agentBinder) { in agentConnected() argument
661 userBackupManagerService.agentConnected(packageName, agentBinder); in agentConnected()
DUserBackupManagerService.java3797 public void agentConnected(String packageName, IBinder agentBinder) { in agentConnected() argument
3804 "agentConnected pkg=" + packageName + " agent=" + agentBinder)); in agentConnected()
3805 mConnectedAgent = IBackupAgent.Stub.asInterface(agentBinder); in agentConnected()