/aosp14/frameworks/base/core/tests/coretests/src/android/app/backup/ |
H A D | BackupAgentTest.java | 80 BackupAgent agent = new TestFullBackupAgent(); in getBackupRestoreEventLogger_beforeOnCreate_isNull() local 87 BackupAgent agent = new TestFullBackupAgent(); in getBackupRestoreEventLogger_afterOnCreateForBackup_initializedForBackup() local 96 BackupAgent agent = new TestFullBackupAgent(); in getBackupRestoreEventLogger_afterOnCreateForRestore_initializedForRestore() local 106 BackupAgent agent = new TestFullBackupAgent(); in getBackupRestoreEventLogger_afterBackup_containsLogsLoggedByAgent() local 118 BackupAgent agent = new TestFullBackupAgent(); in testClearLogger_clearsPendingLogs() local 122 agent.clearBackupRestoreEventLogger(); in testClearLogger_clearsPendingLogs() 129 BackupAgent agent = new TestFullBackupAgent(); in testClearLoggerBetweenBackups_restartsSuccessCount() local 133 agent.clearBackupRestoreEventLogger(); in testClearLoggerBetweenBackups_restartsSuccessCount() 141 BackupAgent agent = new TestFullBackupAgent(); in getAgentForBackupDestination() local 142 agent.onCreate(USER_HANDLE, backupDestination); in getAgentForBackupDestination() [all …]
|
H A D | BackupManagerTest.java | 58 BackupAgent agent = getTestAgent(); in testGetBackupRestoreEventLogger_returnsBackupLoggerForBackup() local 59 agent.onCreate(UserHandle.SYSTEM, BackupDestination.CLOUD, in testGetBackupRestoreEventLogger_returnsBackupLoggerForBackup() 62 BackupRestoreEventLogger logger = mBackupManager.getBackupRestoreEventLogger(agent); in testGetBackupRestoreEventLogger_returnsBackupLoggerForBackup() 69 BackupAgent agent = getTestAgent(); in testGetBackupRestoreEventLogger_returnsRestoreLoggerForRestore() local 70 agent.onCreate(UserHandle.SYSTEM, BackupDestination.CLOUD, in testGetBackupRestoreEventLogger_returnsRestoreLoggerForRestore() 73 BackupRestoreEventLogger logger = mBackupManager.getBackupRestoreEventLogger(agent); in testGetBackupRestoreEventLogger_returnsRestoreLoggerForRestore() 80 BackupAgent agent = getTestAgent(); in testGetBackupRestoreEventLogger_uninitialisedAgent_throwsException() local 83 () -> mBackupManager.getBackupRestoreEventLogger(agent)); in testGetBackupRestoreEventLogger_uninitialisedAgent_throwsException()
|
/aosp14/frameworks/base/services/core/java/com/android/server/trust/ |
H A D | TrustArchive.java | 47 final ComponentName agent; field in TrustArchive.Event 62 this.agent = agent; in Event() 73 public void logGrantTrust(int userId, ComponentName agent, String message, in logGrantTrust() argument 79 public void logRevokeTrust(int userId, ComponentName agent) { in logRevokeTrust() argument 83 public void logTrustTimeout(int userId, ComponentName agent) { in logTrustTimeout() argument 87 public void logAgentDied(int userId, ComponentName agent) { in logAgentDied() argument 91 public void logAgentConnected(int userId, ComponentName agent) { in logAgentConnected() argument 95 public void logAgentStopped(int userId, ComponentName agent) { in logAgentStopped() argument 131 if (ev.agent != null) { in dump() 134 writer.print(ev.agent.flattenToShortString()); in dump() [all …]
|
H A D | TrustManagerService.java | 527 TrustAgentWrapper agent; field in TrustManagerService.AgentInfo 906 info.agent.destroy(); in refreshAgentList() 1033 if (agent.userId == userId) { in dispatchDeviceLocked() 1035 agent.agent.onDeviceLocked(); in dispatchDeviceLocked() 1037 agent.agent.onDeviceUnlocked(); in dispatchDeviceLocked() 1046 if (agent.userId == userId) { in dispatchEscrowTokenActivatedLocked() 1047 agent.agent.onEscrowTokenActivated(handle, userId); in dispatchEscrowTokenActivatedLocked() 1056 if (info.agent.isConnected()) { in updateDevicePolicyFeatures() 1075 info.agent.destroy(); in removeAgentsOfPackage() 1093 info.agent.destroy(); in resetAgent() [all …]
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/tare/ |
H A D | AgentTest.java | 102 final Agent agent = new Agent(mIrs, mScribe, mAnalyst); in testAppRemoval() local 114 agent.onPackageRemovedLocked(userId, pkgName); in testAppRemoval() 121 Agent agent = new Agent(mIrs, mScribe, mAnalyst); in testRecordTransaction_UnderMax() local 128 agent.recordTransactionLocked(0, "com.test", ledger, transaction, false); in testRecordTransaction_UnderMax() 132 agent.recordTransactionLocked(0, "com.test", ledger, transaction, false); in testRecordTransaction_UnderMax() 136 agent.recordTransactionLocked(0, "com.test", ledger, transaction, false); in testRecordTransaction_UnderMax() 140 agent.recordTransactionLocked(0, "com.test", ledger, transaction, false); in testRecordTransaction_UnderMax() 144 agent.recordTransactionLocked(0, "com.test", ledger, transaction, false); in testRecordTransaction_UnderMax() 150 Agent agent = new Agent(mIrs, mScribe, mAnalyst); in testRecordTransaction_MaxConsumptionLimit() local 157 agent.recordTransactionLocked(0, "com.test", ledger, transaction, false); in testRecordTransaction_MaxConsumptionLimit() [all …]
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | ProfilerInfo.java | 69 public final String agent; field in ProfilerInfo 87 boolean streaming, String agent, boolean attachAgentDuringBind, int clockType) { in ProfilerInfo() argument 94 this.agent = agent; in ProfilerInfo() 104 agent = in.agent; in ProfilerInfo() 131 public ProfilerInfo setAgent(String agent, boolean attachAgentDuringBind) { in setAgent() argument 133 this.autoStopProfiler, this.streamingOutput, agent, attachAgentDuringBind, in setAgent() 172 out.writeString(agent); in writeToParcel() 187 proto.write(ProfilerInfoProto.AGENT, agent); in dumpDebug() 211 agent = in.readString(); in ProfilerInfo() 230 && Objects.equals(agent, other.agent) in equals() [all …]
|
/aosp14/frameworks/base/tests/TrustTests/src/android/trust/test/ |
H A D | TemporaryAndRenewableTrustTest.kt | 60 trustAgentRule.agent.setManagingTrust(true) 78 trustAgentRule.agent.grantTrust( 86 trustAgentRule.agent.grantTrust( 95 trustAgentRule.agent.grantTrust( 102 trustAgentRule.agent.grantTrust( 111 trustAgentRule.agent.grantTrust( 123 trustAgentRule.agent.grantTrust( 135 trustAgentRule.agent.grantTrust( 141 trustAgentRule.agent.revokeTrust() 145 trustAgentRule.agent.grantTrust(
|
H A D | UserUnlockRequestTest.kt | 55 val oldCount = trustAgentRule.agent.onUserRequestedUnlockCallCount 59 assertThat(trustAgentRule.agent.onUserRequestedUnlockCallCount) 68 assertThat(trustAgentRule.agent.lastCallDismissKeyguard) 74 val oldCount = trustAgentRule.agent.onUserMayRequestUnlockCallCount 78 assertThat(trustAgentRule.agent.onUserMayRequestUnlockCallCount) 84 val oldCount = trustAgentRule.agent.onUserMayRequestUnlockCallCount 88 assertThat(trustAgentRule.agent.onUserMayRequestUnlockCallCount)
|
H A D | GrantAndRevokeTrustTest.kt | 58 trustAgentRule.agent.setManagingTrust(true) 72 trustAgentRule.agent.grantTrust(GRANT_MESSAGE, 10000, 0) {} 80 trustAgentRule.agent.grantTrust(GRANT_MESSAGE, 0, 0) {} 83 trustAgentRule.agent.revokeTrust() 91 trustAgentRule.agent.grantTrust(GRANT_MESSAGE, 0, 0, callback)
|
H A D | CanUnlockWithActiveUnlockTest.kt | 74 trustAgentRule.agent.setManagingTrust(true) 95 trustAgentRule.agent.grantTrust( 104 trustAgentRule.agent.grantTrust( 116 trustAgentRule.agent.grantTrust( 119 trustAgentRule.agent.revokeTrust()
|
/aosp14/frameworks/base/tests/TrustTests/ |
H A D | README.md | 10 Each test file has its own trust agent. To create a new trust agent: 13 2. Add a new `<service>` stanza to `AndroidManifest.xml` in this directory for the new agent 22 1. Test the agent service as a black box; avoid inspecting internal state of the service or 25 1. `TrustAgentService`, your agent created by the `TrustAgentRule` and accessible via 26 the `agent` property of the rule. 27 1. Call command methods (e.g. `grantTrust`) directly on the agent 29 your test's agent class and tracking invocations. See `UserUnlockRequestTest` for an
|
/aosp14/frameworks/base/tools/dump-coverage/ |
H A D | README.md | 3 libdumpcoverage.so is a JVMTI agent designed to dump coverage information for a process, where the … 5 The JVMTI agent is used to make the calls to JaCoCo in its process. 19 adb shell 'am attach-agent com.android.deskclock /system/lib/libdumpcoverage.so=dump:/data/data/com… 25 adb shell 'am attach-agent com.android.deskclock /system/lib/libdumpcoverage.so=reset' 38 In dump mode, the agent makes JNI calls equivalent to
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
H A D | AdbRestoreFinishedRunnable.java | 18 AdbRestoreFinishedRunnable(IBackupAgent agent, int token, in AdbRestoreFinishedRunnable() argument 20 mAgent = agent; in AdbRestoreFinishedRunnable()
|
H A D | RestoreFileRunnable.java | 40 RestoreFileRunnable(UserBackupManagerService backupManagerService, IBackupAgent agent, in RestoreFileRunnable() argument 42 mAgent = agent; in RestoreFileRunnable()
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | KeyValueAdbRestoreEngine.java | 49 File dataDir, FileMetadata info, ParcelFileDescriptor inFD, IBackupAgent agent, in KeyValueAdbRestoreEngine() argument 55 mAgent = agent; in KeyValueAdbRestoreEngine() 82 private void invokeAgentForAdbRestore(IBackupAgent agent, FileMetadata info, File restoreData) in invokeAgentForAdbRestore() argument 96 agent.doRestore(backupData, info.version, newState, mToken, in invokeAgentForAdbRestore()
|
H A D | KeyValueAdbBackupEngine.java | 102 IBackupAgent agent = bindToAgent(targetApp); in backupOnePackage() local 104 if (agent == null) { in backupOnePackage() 112 if (!invokeAgentForAdbBackup(mCurrentPackage.packageName, agent)) { in backupOnePackage() 160 private boolean invokeAgentForAdbBackup(String packageName, IBackupAgent agent) { in invokeAgentForAdbBackup() argument 171 agent.doBackup( in invokeAgentForAdbBackup()
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/ |
H A D | BackupManagerMonitorEventSenderTest.java | 222 IBackupAgent agent = setUpLoggingAgentForOperation(OperationType.BACKUP); in monitorAgentLoggingResults_onBackup_fillsBundleCorrectly() local 225 mBackupManagerMonitorEventSender.monitorAgentLoggingResults(packageInfo, agent); in monitorAgentLoggingResults_onBackup_fillsBundleCorrectly() 236 IBackupAgent agent = setUpLoggingAgentForOperation(OperationType.RESTORE); in monitorAgentLoggingResults_onRestore_fillsBundleCorrectly() local 238 mBackupManagerMonitorEventSender.monitorAgentLoggingResults(packageInfo, agent); in monitorAgentLoggingResults_onRestore_fillsBundleCorrectly() 246 IBackupAgent agent = spy(IBackupAgent.class); in setUpLoggingAgentForOperation() local 256 .when(agent) in setUpLoggingAgentForOperation() 264 .when(agent) in setUpLoggingAgentForOperation() 266 return agent; in setUpLoggingAgentForOperation()
|
/aosp14/frameworks/base/tools/lock_agent/ |
H A D | Android.bp | 13 srcs: ["agent.cpp"], 34 srcs: ["agent.cpp"],
|
H A D | start_with_lockagent.sh | 4 if [[ "$1" == --agent-options ]] ; then
|
/aosp14/frameworks/base/core/proto/android/app/ |
H A D | profilerinfo.proto | 36 // Denotes an agent (and its parameters) to attach for profiling. 37 optional string agent = 6; field
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
H A D | BackupManagerMonitorEventSender.java | 140 public void monitorAgentLoggingResults(PackageInfo pkg, IBackupAgent agent) { in monitorAgentLoggingResults() argument 149 agent.getLoggerResults(resultsFuture); in monitorAgentLoggingResults() 150 agent.getOperationType(operationTypeFuture); in monitorAgentLoggingResults()
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
H A D | KeyValueBackupTask.java | 741 final IBackupAgent agent; in bindAgent() local 743 agent = in bindAgent() 747 if (agent == null) { in bindAgent() 755 return agent; in bindAgent() 902 private void extractAgentData(PackageInfo packageInfo, IBackupAgent agent) in extractAgentData() argument 943 agent.doBackup( in extractAgentData() 988 private void agentFail(IBackupAgent agent, String message) { in agentFail() argument 990 agent.fail(message); in agentFail() 1143 private void agentDoQuotaExceeded(@Nullable IBackupAgent agent, String packageName, long size) { in agentDoQuotaExceeded() argument 1144 if (agent != null) { in agentDoQuotaExceeded() [all …]
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
H A D | FullBackupPreflight.java | 36 int preflightFullBackup(PackageInfo pkg, IBackupAgent agent); in preflightFullBackup() argument
|
/aosp14/frameworks/base/services/ |
H A D | proguard_permission.flags | 9 -dontwarn org.jacoco.agent.rt.*
|
/aosp14/frameworks/base/core/java/android/app/backup/ |
H A D | IBackupManager.aidl | 104 void agentConnectedForUser(int userId, String packageName, IBinder agent); in agentConnectedForUser() argument 109 void agentConnected(String packageName, IBinder agent); in agentConnected() argument
|