/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
H A D | FullBackupPreflight.java | 24 * agent prior to asking it to move data. 32 * @param agent Live BackupAgent binding to the target app's agent 36 int preflightFullBackup(PackageInfo pkg, IBackupAgent agent); argument
|
H A D | FullBackupEngine.java | 89 FullBackupRunner(PackageInfo pack, IBackupAgent agent, ParcelFileDescriptor pipe, argument 94 mAgent = agent; 156 Slog.e(TAG, "Remote agent vanished during full backup of " + mPackage.packageName); 202 Slog.w(TAG, "Unable to bind to full agent for " + mPkg.packageName); 267 Slog.w(TAG, "Unable to bind to full agent for " + mPkg.packageName); 278 Slog.e(TAG, "Remote exception while telling agent about quota exceeded"); 286 Slog.d(TAG, "Binding to full backup agent : " + mPkg.packageName);
|
H A D | PerformFullTransportBackupTask.java | 75 * - If preflight data size is within limit, start reading data from agent pipe and writing 90 * - This task blocks at 3 points: 1. Preflight result check 2. Reading on agent side pipe 93 * preflight operation which counts down on the preflight latch. 2. Tears down the agent, 194 // as well as any explicit mention of the 'special' shared-storage agent 494 // errors take precedence over agent/app-specific errors for purposes of 505 Slog.i(TAG, "Transport-level failure; cancelling agent work"); 600 Slog.i(TAG, "Unbinding agent in " + packageName); 704 public int preflightFullBackup(PackageInfo pkg, IBackupAgent agent) { argument 715 agent.doMeasureFullBackup(mQuota, mCurrentOpToken, 742 agent [all...] |
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
H A D | RestoreFileRunnable.java | 40 RestoreFileRunnable(BackupManagerService backupManagerService, IBackupAgent agent, argument 42 mAgent = agent;
|
H A D | PerformAdbRestoreTask.java | 115 RestoreFinishedRunnable(IBackupAgent agent, int token, argument 117 mAgent = agent; 463 // Clean up the previous agent relationship if necessary, 578 // data to the agent. 580 Slog.i(TAG, "Reusing existing agent instance"); 584 Slog.d(TAG, "Need to launch agent for " + pkg); 606 Slog.d(TAG, "backup agent (" 618 // All set; now set up the IPC and launch the agent 632 Slog.e(TAG, "Unable to create agent for " + pkg); 643 + " but agent i [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ProfilerInfo.java | 55 * Denotes an agent (and its parameters) to attach for profiling. 57 public final String agent; field in class:ProfilerInfo 60 * Whether the {@link agent} should be attached early (before bind-application) or during 69 boolean streaming, String agent, boolean attachAgentDuringBind) { 75 this.agent = agent; 85 agent = in.agent; 91 * and {@link agent} and {@link attachAgentDuringBind} as given. 93 public ProfilerInfo setAgent(String agent, boolea argument 68 ProfilerInfo(String filename, ParcelFileDescriptor fd, int interval, boolean autoStop, boolean streaming, String agent, boolean attachAgentDuringBind) argument [all...] |
H A D | ActivityThread.java | 1011 public void attachAgent(String agent) { argument 1012 sendMessage(H.ATTACH_AGENT, agent); 3301 private static boolean attemptAttachAgent(String agent, ClassLoader classLoader) { argument 3303 VMDebug.attachAgent(agent, classLoader); 3306 Slog.e(TAG, "Attaching agent with " + classLoader + " failed: " + agent); 3311 static void handleAttachAgent(String agent, LoadedApk loadedApk) { argument 3313 if (attemptAttachAgent(agent, classLoader)) { 3317 attemptAttachAgent(agent, null); 3423 Slog.d(TAG, "Asked to create backup agent fo [all...] |
/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | KeyValueAdbRestoreEngine.java | 52 File dataDir, FileMetadata info, ParcelFileDescriptor inFD, IBackupAgent agent, 58 mAgent = agent; 85 private void invokeAgentForAdbRestore(IBackupAgent agent, FileMetadata info, File restoreData) argument 99 agent.doRestore(backupData, info.version, newState, mToken, 104 Slog.e(TAG, "Exception calling doRestore on agent: " + e); 51 KeyValueAdbRestoreEngine(BackupManagerServiceInterface backupManagerService, File dataDir, FileMetadata info, ParcelFileDescriptor inFD, IBackupAgent agent, int token) argument
|
H A D | KeyValueAdbBackupEngine.java | 97 IBackupAgent agent = bindToAgent(targetApp); 99 if (agent == null) { 100 // We failed binding to the agent, so ignore this package 106 // We are bound to agent, initiate backup. 107 if (!invokeAgentForAdbBackup(mCurrentPackage.packageName, agent)) { 119 // We are either done, failed or have timed out, so do cleanup and kill the agent. 147 Slog.e(TAG, "error in binding to agent for package " + targetApp.packageName 154 private boolean invokeAgentForAdbBackup(String packageName, IBackupAgent agent) { argument 162 agent.doBackup( 174 Slog.e(TAG, "Error invoking agent fo [all...] |
H A D | Trampoline.java | 226 public void agentConnected(String packageName, IBinder agent) throws RemoteException { argument 229 svc.agentConnected(packageName, agent);
|
/frameworks/base/services/core/java/com/android/server/trust/ |
H A D | TrustArchive.java | 47 final ComponentName agent; field in class:TrustArchive.Event 58 private Event(int type, int userId, ComponentName agent, String message, argument 62 this.agent = agent; 73 public void logGrantTrust(int userId, ComponentName agent, String message, argument 75 addEvent(new Event(TYPE_GRANT_TRUST, userId, agent, message, duration, 79 public void logRevokeTrust(int userId, ComponentName agent) { argument 80 addEvent(new Event(TYPE_REVOKE_TRUST, userId, agent, null, 0, 0, false)); 83 public void logTrustTimeout(int userId, ComponentName agent) { argument 84 addEvent(new Event(TYPE_TRUST_TIMEOUT, userId, agent, nul 87 logAgentDied(int userId, ComponentName agent) argument 91 logAgentConnected(int userId, ComponentName agent) argument 95 logAgentStopped(int userId, ComponentName agent) argument 99 logManagingTrust(int userId, ComponentName agent, boolean managing) argument [all...] |
H A D | TrustManagerService.java | 180 SettingsAttrs settings; // setting to launch to modify agent. 181 TrustAgentWrapper agent; field in class:TrustManagerService.AgentInfo 229 // Wait a few minutes before committing to flash, in case the trust agent is transiently not 324 // Disable agent if no features are enabled. 355 + "'s trust agent " + name + ": FBE still locked and " 356 + " the agent cannot unlock user profile."); 375 if (agentInfo.agent == null) { 376 agentInfo.agent = new TrustAgentWrapper(mContext, this, 392 if (info.agent.isManagingTrust()) { 395 info.agent [all...] |
/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
H A D | PerformBackupTask.java | 95 * - Bind to agent. 96 * - Call agent.doBackup() 97 * - Wait either for cancel/timeout or operationComplete() callback from the agent. 110 * response from a backup agent. This is used to plumb timeouts and completion callbacks. 332 // its agent directly. Thus we always run this pass because it's cheap and this way 362 // here in the system process we can just set up its agent directly and use a synthetic 421 backupManagerService.addBackupTrace("launch agent for " + request.packageName); 427 // package's backup agent. 477 IBackupAgent agent = null; 481 agent 662 invokeAgentForBackup(String packageName, IBackupAgent agent) argument 752 failAgent(IBackupAgent agent, String message) argument [all...] |
/frameworks/base/services/robotests/src/com/android/server/backup/ |
H A D | PerformBackupTaskTest.java | 191 verify(agentMock.agent) 208 verify(agentMock.agent).onBackup(any(), argThat(dataOutputWithTransportFlags(0)), any()); 216 BackupAgent agent1 = agentMocks.get(0).agent; 217 BackupAgent agent2 = agentMocks.get(1).agent; 249 verify(agentMock.agent) 292 agentMock.agent, 317 // Verifying that what we passed to the transport is what the agent wrote 367 agentMock.agent, 491 verify(agentMock.agent).onQuotaExceeded(anyLong(), anyLong()); 606 private static void agentOnBackupDo(BackupAgent agent, BackupAgentOnBacku argument 631 private final BackupAgent agent; field in class:PerformBackupTaskTest.AgentMock 633 AgentMock(IBackupAgent agentBinder, BackupAgent agent) argument [all...] |
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | AndroidCamera2AgentImpl.java | 985 AndroidCamera2AgentImpl agent, 990 mCameraAgent = agent; 984 AndroidCamera2ProxyImpl( AndroidCamera2AgentImpl agent, int cameraIndex, CameraDevice camera, CameraDeviceInfo.Characteristics characteristics, CameraCharacteristics properties) argument
|
H A D | AndroidCameraAgentImpl.java | 282 CameraHandler(CameraAgent agent, Looper looper) { argument 284 mAgent = agent;
|
/frameworks/av/packages/MediaComponents/src/com/android/media/ |
H A D | MediaSession2Impl.java | 225 private void updatePlayer(MediaPlayerBase player, MediaPlaylistAgent agent, argument 234 if (agent == null) { 239 agent = mSessionPlaylistAgent; 241 mPlaylistAgent = agent; 252 if (agent != oldAgent) { 253 agent.registerPlaylistEventCallback(mCallbackExecutor, mPlaylistEventCallback); 264 // TODO(jaewan): Repeat the same thing for the playlist agent. 316 final MediaPlaylistAgent agent; 320 agent = mPlaylistAgent; 327 if (agent ! [all...] |
/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | Vpn.java | 904 private boolean updateLinkPropertiesInPlaceIfPossible(NetworkAgent agent, VpnConfig oldConfig) { argument 931 agent.sendLinkProperties(lp);
|
/frameworks/base/tests/net/java/com/android/server/ |
H A D | ConnectivityServiceTest.java | 302 public void waitForIdle(MockNetworkAgent agent, long timeoutMs) { argument 303 if (agent == null) { 306 waitForIdleHandler(agent.mHandlerThread, timeoutMs); 750 // TODO : the interactions between this mock and the mock network agent are too 754 // parent class of MockVpn agent wants that responsibility. 769 public void setNetworkAgent(MockNetworkAgent agent) { argument 770 waitForIdle(agent, TIMEOUT_MS); 771 mMockNetworkAgent = agent; 772 mNetworkAgent = agent.getNetworkAgent(); 773 mNetworkCapabilities.set(agent 1526 expectCallback(CallbackState state, MockNetworkAgent agent, int timeoutMs) argument 1543 expectCallback(CallbackState state, MockNetworkAgent agent) argument 1575 expectAvailableCallbacks(MockNetworkAgent agent, boolean expectSuspended, boolean expectValidated, int timeoutMs) argument 1590 expectAvailableAndSuspendedCallbacks(MockNetworkAgent agent, boolean expectValidated) argument 1594 expectAvailableCallbacksValidated(MockNetworkAgent agent) argument 1598 expectAvailableCallbacksUnvalidated(MockNetworkAgent agent) argument 1606 expectAvailableDoubleValidatedCallbacks(MockNetworkAgent agent) argument 1617 expectAvailableThenValidatedCallbacks(MockNetworkAgent agent) argument 1622 expectCapabilitiesWith(int capability, MockNetworkAgent agent) argument 1626 expectCapabilitiesWith(int capability, MockNetworkAgent agent, int timeoutMs) argument 1634 expectCapabilitiesWithout(int capability, MockNetworkAgent agent) argument 1638 expectCapabilitiesWithout(int capability, MockNetworkAgent agent, int timeoutMs) argument 1646 expectCapabilitiesLike(Predicate<NetworkCapabilities> fn, MockNetworkAgent agent) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | Resource.cpp | 3064 String8 agent = AaptXml::getAttribute(tree, local 3067 if (agent.length() > 0) { 3068 addProguardKeepRule(keep, agent, pkg.string(),
|
/frameworks/base/core/java/android/app/admin/ |
H A D | DevicePolicyManager.java | 3680 * whitelist specific features of some trust agent, {@link #setTrustAgentConfiguration} can be 3681 * used in conjuction to set trust-agent-specific configurations. 5784 * Sets a list of configuration features to enable for a trust agent component. This is meant to 5789 * For any specific trust agent, whether it is disabled or not depends on the aggregated state 5790 * of each admin's {@link #KEYGUARD_DISABLE_TRUST_AGENTS} setting and its trust agent 5793 * trust agent configuration, the trust agent is disabled completely. Otherwise, the trust agent 5796 * behavior. The exact meaning of aggregation is trust-agent-specific. 5807 * @param target Component name of the agent t 5843 getTrustAgentConfiguration( @ullable ComponentName admin, @NonNull ComponentName agent) argument 5849 getTrustAgentConfiguration( @ullable ComponentName admin, @NonNull ComponentName agent, int userHandle) argument [all...] |
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | DevicePolicyManagerService.java | 845 private static final String TAG_MANAGE_TRUST_AGENT_FEATURES = "manage-trust-agent-features"; 846 private static final String TAG_TRUST_AGENT_COMPONENT_OPTIONS = "trust-agent-component-options"; 8246 public void setTrustAgentConfiguration(ComponentName admin, ComponentName agent, argument 8252 Preconditions.checkNotNull(agent, "agent is null"); 8257 ap.trustAgentInfos.put(agent.flattenToString(), new TrustAgentInfo(args)); 8264 ComponentName agent, int userHandle, boolean parent) { 8268 Preconditions.checkNotNull(agent, "agent null"); 8272 final String componentName = agent 8263 getTrustAgentConfiguration(ComponentName admin, ComponentName agent, int userHandle, boolean parent) argument [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ActivityManagerService.java | 1685 * Stores a map of process name -> agent string. When a process is started and mAgentAppMap 1686 * is not null, this map is checked and the mapped agent installed during bind-time. Note: 1687 * A non-null agent in mProfileInfo overrides this. 7721 // an agent should be loaded at bind-time. 7725 if (mProfilerInfo.agent != null) { 7726 preBindAgent = mProfilerInfo.agent; 7737 String agent = mAppAgentMap.get(processName); 7738 // Do not overwrite already requested agent. 7742 } else if (profilerInfo.agent == null) { 7791 // If we were asked to attach an agent o 13623 setAgentApp(@onNull String packageName, @Nullable String agent) argument 20672 backupAgentCreated(String agentPackageName, IBinder agent) argument [all...] |