/frameworks/av/packages/MediaComponents/tests/src/com/android/media/ |
D | SessionPlaylistAgentTest.java | 62 private SessionPlaylistAgent mAgent; field in SessionPlaylistAgentTest 243 mAgent = new SessionPlaylistAgent(mSessionImpl, mPlayer); in setUp() 244 mAgent.setOnDataSourceMissingHelper(mDataSourceHelper); in setUp() 246 mAgent.registerPlaylistEventCallback(mHandlerExecutor, mEventCallback); in setUp() 258 int shuffleMode = mAgent.getShuffleMode(); in testSetAndGetShuflleMode() 262 mAgent.setShuffleMode(MediaPlaylistAgent.SHUFFLE_MODE_NONE); in testSetAndGetShuflleMode() 266 assertEquals(MediaPlaylistAgent.SHUFFLE_MODE_NONE, mAgent.getShuffleMode()); in testSetAndGetShuflleMode() 271 mAgent.setShuffleMode(MediaPlaylistAgent.SHUFFLE_MODE_ALL); in testSetAndGetShuflleMode() 275 assertEquals(MediaPlaylistAgent.SHUFFLE_MODE_ALL, mAgent.getShuffleMode()); in testSetAndGetShuflleMode() 279 mAgent.setShuffleMode(MediaPlaylistAgent.SHUFFLE_MODE_GROUP); in testSetAndGetShuflleMode() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | FullBackupEngine.java | 68 IBackupAgent mAgent; field in FullBackupEngine 83 IBackupAgent mAgent; field in FullBackupEngine.FullBackupRunner 94 mAgent = agent; in FullBackupRunner() 151 mAgent.doFullBackup(mPipe, mQuota, mToken, in run() 196 int result = mPreflightHook.preflightFullBackup(mPkg, mAgent); in preflightCheck() 228 FullBackupRunner runner = new FullBackupRunner(mPkg, mAgent, pipes[1], in backupOnePackage() 276 mAgent.doQuotaExceeded(backupDataBytes, quotaBytes); in sendQuotaExceeded() 284 if (mAgent == null) { in initializeAgent() 288 mAgent = backupManagerService.bindToAgentSynchronous(mPkg.applicationInfo, in initializeAgent() 291 return mAgent != null; in initializeAgent()
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | FullRestoreEngine.java | 83 private IBackupAgent mAgent; field in FullRestoreEngine 150 return mAgent; in getAgent() 206 if (mAgent != null) { in restoreOneFile() 318 if (MORE_DEBUG && okay && mAgent != null) { in restoreOneFile() 321 if (okay && mAgent == null) { in restoreOneFile() 364 mAgent = mBackupManagerService.bindToAgentSynchronous(mTargetApp, in restoreOneFile() 373 if (mAgent == null) { in restoreOneFile() 426 mAgent, token); in restoreOneFile() 439 mBackupManagerService, mAgent, info, mPipes[0], token); in restoreOneFile() 442 mAgent.doRestoreFile(mPipes[0], info.size, info.type, in restoreOneFile() [all …]
|
D | RestoreFileRunnable.java | 34 private final IBackupAgent mAgent; field in RestoreFileRunnable 42 mAgent = agent; in RestoreFileRunnable() 58 mAgent.doRestoreFile(mSocket, mInfo.size, mInfo.type, in run()
|
D | PerformAdbRestoreTask.java | 96 private IBackupAgent mAgent; field in PerformAdbRestoreTask 111 private final IBackupAgent mAgent; field in PerformAdbRestoreTask.RestoreFinishedRunnable 117 mAgent = agent; in RestoreFinishedRunnable() 125 mAgent.doRestoreFinished(mToken, mBackupManagerService.getBackupManagerBinder()); in run() 155 mAgent = null; in PerformAdbRestoreTask() 465 if (mAgent != null) { in restoreOneFile() 579 if (DEBUG && okay && mAgent != null) { in restoreOneFile() 582 if (okay && mAgent == null) { in restoreOneFile() 620 mAgent = mBackupManagerService.bindToAgentSynchronous(mTargetApp, in restoreOneFile() 631 if (mAgent == null) { in restoreOneFile() [all …]
|
D | PerformUnifiedRestoreTask.java | 124 private IBackupAgent mAgent; field in PerformUnifiedRestoreTask 417 mAgent = IBackupAgent.Stub.asInterface(mPmAgent.onBind()); in startRestore() 640 mAgent = backupManagerService.bindToAgentSynchronous( in restoreKeyValue() 643 if (mAgent == null) { in restoreKeyValue() 769 mAgent.doRestore(mBackupData, appVersionCode, mNewState, in initiateOneRestore() 826 mAgent.doRestoreFinished(mEphemeralOpToken, in restoreFinished() 971 mAgent = mEngine.getAgent(); in run()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 52 @Mock NetworkAgentInfo mAgent; field in NetworkMonitorTest 62 when(mAgent.network()).thenReturn(new Network(TEST_ID)); in setUp() 68 return new NetworkMonitor(mContext, mHandler, mAgent, mRequest, mLogger, mSettings); in makeMonitor()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | KeyValueAdbRestoreEngine.java | 48 IBackupAgent mAgent; field in KeyValueAdbRestoreEngine 58 mAgent = agent; in KeyValueAdbRestoreEngine() 67 invokeAgentForAdbRestore(mAgent, mInfo, restoreData); in run()
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | AndroidCameraAgentImpl.java | 261 private CameraAgent mAgent; field in AndroidCameraAgentImpl.CameraHandler 284 mAgent = agent; in CameraHandler() 385 mAgent, cameraId, mCamera, mCharacteristics, mCapabilities); in handleMessage() 416 … cbForward.onReconnectionFailure(mAgent, generateHistoryString(mCameraId)); in handleMessage() 642 CameraExceptionHandler exceptionHandler = mAgent.getCameraExceptionHandler(); in handleMessage()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerShellCommand.java | 133 private String mAgent; // Agent to attach on startup. field in ActivityManagerShellCommand 326 if (mAgent != null) { in makeIntent() 331 mAgent = getNextArgRequired(); in makeIntent() 334 if (mAgent != null) { in makeIntent() 339 mAgent = getNextArgRequired(); in makeIntent() 421 if (mProfileFile != null || mAgent != null) { 430 mStreaming, mAgent, mAttachAgentDuringBind);
|