/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustArchive.java | 47 final ComponentName agent; field in TrustArchive.Event 58 private Event(int type, int userId, ComponentName agent, String message, in Event() argument 62 this.agent = agent; in Event() 73 public void logGrantTrust(int userId, ComponentName agent, String message, in logGrantTrust() argument 75 addEvent(new Event(TYPE_GRANT_TRUST, userId, agent, message, duration, in logGrantTrust() 79 public void logRevokeTrust(int userId, ComponentName agent) { in logRevokeTrust() argument 80 addEvent(new Event(TYPE_REVOKE_TRUST, userId, agent, null, 0, 0, false)); in logRevokeTrust() 83 public void logTrustTimeout(int userId, ComponentName agent) { in logTrustTimeout() argument 84 addEvent(new Event(TYPE_TRUST_TIMEOUT, userId, agent, null, 0, 0, false)); in logTrustTimeout() 87 public void logAgentDied(int userId, ComponentName agent) { in logAgentDied() argument [all …]
|
D | TrustManagerService.java | 479 TrustAgentWrapper agent; field in TrustManagerService.AgentInfo 832 if (agentInfo.agent == null) { in refreshAgentList() 833 agentInfo.agent = new TrustAgentWrapper(mContext, this, in refreshAgentList() 849 if (info.agent.isManagingTrust()) { in refreshAgentList() 852 info.agent.destroy(); in refreshAgentList() 966 AgentInfo agent = mActiveAgents.valueAt(i); in dispatchDeviceLocked() local 967 if (agent.userId == userId) { in dispatchDeviceLocked() 969 agent.agent.onDeviceLocked(); in dispatchDeviceLocked() 971 agent.agent.onDeviceUnlocked(); in dispatchDeviceLocked() 979 AgentInfo agent = mActiveAgents.valueAt(i); in dispatchEscrowTokenActivatedLocked() local [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/tare/ |
D | AgentTest.java | 91 Agent agent = new Agent(mIrs, mScribe, mAnalyst); in testRecordTransaction_UnderMax() local 98 agent.recordTransactionLocked(0, "com.test", ledger, transaction, false); in testRecordTransaction_UnderMax() 102 agent.recordTransactionLocked(0, "com.test", ledger, transaction, false); in testRecordTransaction_UnderMax() 106 agent.recordTransactionLocked(0, "com.test", ledger, transaction, false); in testRecordTransaction_UnderMax() 110 agent.recordTransactionLocked(0, "com.test", ledger, transaction, false); in testRecordTransaction_UnderMax() 114 agent.recordTransactionLocked(0, "com.test", ledger, transaction, false); in testRecordTransaction_UnderMax() 120 Agent agent = new Agent(mIrs, mScribe, mAnalyst); in testRecordTransaction_MaxConsumptionLimit() local 127 agent.recordTransactionLocked(0, "com.test", ledger, transaction, false); in testRecordTransaction_MaxConsumptionLimit() 131 agent.recordTransactionLocked(0, "com.test", ledger, transaction, false); in testRecordTransaction_MaxConsumptionLimit() 135 agent.recordTransactionLocked(0, "com.test", ledger, transaction, false); in testRecordTransaction_MaxConsumptionLimit() [all …]
|
/frameworks/base/core/java/android/app/ |
D | ProfilerInfo.java | 58 public final String agent; field in ProfilerInfo 70 boolean streaming, String agent, boolean attachAgentDuringBind) { in ProfilerInfo() argument 76 this.agent = agent; in ProfilerInfo() 86 agent = in.agent; in ProfilerInfo() 94 public ProfilerInfo setAgent(String agent, boolean attachAgentDuringBind) { in setAgent() argument 96 this.autoStopProfiler, this.streamingOutput, agent, attachAgentDuringBind); in setAgent() 134 out.writeString(agent); in writeToParcel() 148 proto.write(ProfilerInfoProto.AGENT, agent); in dumpDebug() 171 agent = in.readString(); in ProfilerInfo() 189 && Objects.equals(agent, other.agent); in equals() [all …]
|
/frameworks/base/tests/TrustTests/src/android/trust/test/ |
D | TemporaryAndRenewableTrustTest.kt | 60 trustAgentRule.agent.setManagingTrust(true) in manageTrust() 78 trustAgentRule.agent.grantTrust( in grantTrustLockedDevice_deviceStaysLocked() 86 trustAgentRule.agent.grantTrust( in grantTrustUnlockedDevice_deviceLocksOnScreenOff() 95 trustAgentRule.agent.grantTrust( in grantTrustLockedDevice_grantTrustOnLockedDeviceUnlocksDevice() 102 trustAgentRule.agent.grantTrust( in grantTrustLockedDevice_grantTrustOnLockedDeviceUnlocksDevice() 111 trustAgentRule.agent.grantTrust( in grantTrustLockedDevice_callsBackWhenUnlocked() 123 trustAgentRule.agent.grantTrust( in grantTrustLockedDevice_callsBackWhenUnlocked() 135 trustAgentRule.agent.grantTrust( in grantTrustLockedDevice_revokeTrustPreventsSubsequentUnlock() 141 trustAgentRule.agent.revokeTrust() in grantTrustLockedDevice_revokeTrustPreventsSubsequentUnlock() 145 trustAgentRule.agent.grantTrust( in grantTrustLockedDevice_revokeTrustPreventsSubsequentUnlock()
|
D | GrantAndRevokeTrustTest.kt | 58 trustAgentRule.agent.setManagingTrust(true) in manageTrust() 72 trustAgentRule.agent.grantTrust(GRANT_MESSAGE, 10000, 0) {} in grantKeepsDeviceUnlocked() 80 trustAgentRule.agent.grantTrust(GRANT_MESSAGE, 0, 0) {} in grantKeepsDeviceUnlocked_untilRevoked() 83 trustAgentRule.agent.revokeTrust() in grantKeepsDeviceUnlocked_untilRevoked() 91 trustAgentRule.agent.grantTrust(GRANT_MESSAGE, 0, 0, callback) in grantDoesNotCallBack()
|
D | UserUnlockRequestTest.kt | 55 val oldCount = trustAgentRule.agent.onUserRequestedUnlockCallCount in reportUserRequestedUnlock_propagatesToAgent() 59 assertThat(trustAgentRule.agent.onUserRequestedUnlockCallCount) in reportUserRequestedUnlock_propagatesToAgent() 68 assertThat(trustAgentRule.agent.lastCallDismissKeyguard) in reportUserRequestedUnlock_propagatesToAgentWithDismissKeyguard() 74 val oldCount = trustAgentRule.agent.onUserMayRequestUnlockCallCount in reportUserMayRequestUnlock_propagatesToAgent() 78 assertThat(trustAgentRule.agent.onUserMayRequestUnlockCallCount) in reportUserMayRequestUnlock_propagatesToAgent()
|
D | LockUserTest.kt | 53 trustAgentRule.agent.lockUser() in lockUser_locksTheDevice()
|
/frameworks/base/tests/TrustTests/ |
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
|
/frameworks/base/tools/dump-coverage/ |
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
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | AdbRestoreFinishedRunnable.java | 18 AdbRestoreFinishedRunnable(IBackupAgent agent, int token, in AdbRestoreFinishedRunnable() argument 20 mAgent = agent; in AdbRestoreFinishedRunnable()
|
D | RestoreFileRunnable.java | 40 RestoreFileRunnable(UserBackupManagerService backupManagerService, IBackupAgent agent, in RestoreFileRunnable() argument 42 mAgent = agent; in RestoreFileRunnable()
|
/frameworks/base/core/tests/coretests/src/android/app/backup/ |
D | BackupAgentTest.java | 77 BackupAgent agent = new TestFullBackupAgent(); in getAgentForOperationType() local 78 agent.onCreate(USER_HANDLE, operationType); in getAgentForOperationType() 79 return agent; in getAgentForOperationType()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
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()
|
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()
|
/frameworks/base/tools/lock_agent/ |
D | Android.bp | 13 srcs: ["agent.cpp"], 34 srcs: ["agent.cpp"],
|
D | start_with_lockagent.sh | 4 if [[ "$1" == --agent-options ]] ; then
|
/frameworks/base/core/proto/android/app/ |
D | profilerinfo.proto | 36 // Denotes an agent (and its parameters) to attach for profiling. 37 optional string agent = 6; field
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | FullBackupPreflight.java | 36 int preflightFullBackup(PackageInfo pkg, IBackupAgent agent); in preflightFullBackup() argument
|
D | FullBackupEngine.java | 83 IBackupAgent agent, in FullBackupRunner() argument 91 mAgent = agent; in FullBackupRunner()
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTask.java | 736 final IBackupAgent agent; in bindAgent() local 738 agent = in bindAgent() 742 if (agent == null) { in bindAgent() 750 return agent; in bindAgent() 897 private void extractAgentData(PackageInfo packageInfo, IBackupAgent agent) in extractAgentData() argument 938 agent.doBackup( in extractAgentData() 983 private void agentFail(IBackupAgent agent, String message) { in agentFail() argument 985 agent.fail(message); in agentFail() 1138 private void agentDoQuotaExceeded(@Nullable IBackupAgent agent, String packageName, long size) { in agentDoQuotaExceeded() argument 1139 if (agent != null) { in agentDoQuotaExceeded() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | IBackupManager.aidl | 103 void agentConnectedForUser(int userId, String packageName, IBinder agent); in agentConnectedForUser() argument 108 void agentConnected(String packageName, IBinder agent); in agentConnected() argument
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 577 verify(agentMock.agent, never()).onBackup(any(), any(), any()); in testRunTask_whenTransportReturnsErrorForInitialization() 596 verify(agentMock.agent, never()).onBackup(any(), any(), any()); in testRunTask_whenTransportThrowsDuringInitialization() 638 verify(agentMock.agent, never()).onBackup(any(), any(), any()); in testRunTask_whenPackageNotEligibleForBackup() 668 verify(agentMock.agent, never()).onBackup(any(), any(), any()); in testRunTask_whenPackageDoesFullBackup() 669 verify(agentMock.agent, never()).onFullBackup(any()); in testRunTask_whenPackageDoesFullBackup() 697 verify(agentMock.agent, never()).onBackup(any(), any(), any()); in testRunTask_whenPackageIsStopped() 1027 verify(agentMock.agent) in testRunTask_whenTransportProvidesFlags_passesThemToTheAgent() 1039 verify(agentMock.agent).onBackup(any(), argThat(dataOutputWithTransportFlags(0)), any()); in testRunTask_whenTransportDoesNotProvidesFlags() 1049 BackupAgent agent1 = agentMocks.get(0).agent; in testRunTask_whenTransportProvidesFlagsAndMultipleAgents_passesToAll() 1050 BackupAgent agent2 = agentMocks.get(1).agent; in testRunTask_whenTransportProvidesFlagsAndMultipleAgents_passesToAll() [all …]
|
/frameworks/base/tests/TrustTests/src/android/trust/test/lib/ |
D | TrustAgentRule.kt | 46 val agent get() = BaseTrustAgentService.instance(serviceClass) as T constant in android.trust.test.lib.TrustAgentRule
|
/frameworks/base/services/coverage/java/com/android/server/coverage/ |
D | CoverageService.java | 25 import org.jacoco.agent.rt.RT;
|