/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
H A D | NetworkAgentTest.kt | 211 val agent: INetworkAgent 439 agent.register() 440 agent.markConnected() 497 unregister(agent) 500 agent.register() 509 unregister(agent) 678 agent.register() 679 agent.markConnected() 725 unregister(agent) 730 agent.unregister() [all …]
|
H A D | NetworkScoreTest.kt | 94 private class AgentWrapper(val agent: NetworkAgent) : HasNetwork { 95 override val network = agent.network 96 fun sendNetworkScore(s: NetworkScore) = agent.sendNetworkScore(s) 132 val agent = object : NetworkAgent(context, looper, "NetworkScore test agent", nc, regex 137 runWithShellPermissionIdentity({ agent.register() }, MANAGE_TEST_NETWORKS) 138 agent.markConnected() 139 return AgentWrapper(agent)
|
/aosp12/art/test/909-attach-agent/ |
H A D | run | 18 agent=libtiagentd.so 20 agent=libtiagent.so 50 agent=${test_native_lib_path}/${agent} 64 --args agent:${agent}=909-attach-agent 70 --args agent:${agent}=909-attach-agent 74 --args agent:${agent}=909-attach-agent \ 79 --args agent:${agent}=909-attach-agent \
|
H A D | expected-stdout.txt | 3 Attached Agent for test 909-attach-agent 5 Attached Agent for test 909-attach-agent 10 Attached Agent for test 909-attach-agent 12 Attached Agent for test 909-attach-agent 17 Attached Agent for test 909-attach-agent 20 Attached Agent for test 909-attach-agent 26 Can't attach agent, process is not debuggable. 27 Can't attach agent, process is not debuggable.
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/ |
H A D | TrustAgentListPreferenceControllerTest.java | 120 agent.title = "Test_title"; in onResume_shouldClearOldAgents() 123 agent.admin = null; in onResume_shouldClearOldAgents() 124 agents.add(agent); in onResume_shouldClearOldAgents() 142 agent.admin = null; in onResume_shouldAddNewAgents() 143 agents.add(agent); in onResume_shouldAddNewAgents() 162 agent.admin = null; in onResume_ifNotAvailable_shouldNotAddNewAgents() 163 agents.add(agent); in onResume_ifNotAvailable_shouldNotAddNewAgents() 181 agent.admin = null; in onResume_controllerShouldHasKey() 182 agents.add(agent); in onResume_controllerShouldHasKey() 201 agent.admin = null; in updateDynamicRawDataToIndex_shouldIndexAgents() [all …]
|
/aosp12/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 | 366 TrustAgentWrapper agent; field in TrustManagerService.AgentInfo 618 info.agent.destroy(); in refreshAgentList() 718 if (agent.userId == userId) { in dispatchDeviceLocked() 720 agent.agent.onDeviceLocked(); in dispatchDeviceLocked() 722 agent.agent.onDeviceUnlocked(); in dispatchDeviceLocked() 731 if (agent.userId == userId) { in dispatchEscrowTokenActivatedLocked() 732 agent.agent.onEscrowTokenActivated(handle, userId); in dispatchEscrowTokenActivatedLocked() 741 if (info.agent.isConnected()) { in updateDevicePolicyFeatures() 760 info.agent.destroy(); in removeAgentsOfPackage() 778 info.agent.destroy(); in resetAgent() [all …]
|
/aosp12/frameworks/base/core/java/android/app/ |
H A 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 …]
|
/aosp12/art/test/901-hello-ti-agent/ |
H A D | Android.bp | 3 // Build rules for ART run-test `901-hello-ti-agent`. 16 name: "art-run-test-901-hello-ti-agent", 21 ":art-run-test-901-hello-ti-agent-expected-stdout", 22 ":art-run-test-901-hello-ti-agent-expected-stderr", 28 name: "art-run-test-901-hello-ti-agent-expected-stdout", 29 out: ["art-run-test-901-hello-ti-agent-expected-stdout.txt"], 36 name: "art-run-test-901-hello-ti-agent-expected-stderr", 37 out: ["art-run-test-901-hello-ti-agent-expected-stderr.txt"],
|
/aosp12/art/test/931-agent-thread/ |
H A D | Android.bp | 3 // Build rules for ART run-test `931-agent-thread`. 16 name: "art-run-test-931-agent-thread", 21 ":art-run-test-931-agent-thread-expected-stdout", 22 ":art-run-test-931-agent-thread-expected-stderr", 28 name: "art-run-test-931-agent-thread-expected-stdout", 29 out: ["art-run-test-931-agent-thread-expected-stdout.txt"], 36 name: "art-run-test-931-agent-thread-expected-stderr", 37 out: ["art-run-test-931-agent-thread-expected-stderr.txt"],
|
/aosp12/art/test/987-agent-bind/ |
H A D | Android.bp | 3 // Build rules for ART run-test `987-agent-bind`. 16 name: "art-run-test-987-agent-bind", 21 ":art-run-test-987-agent-bind-expected-stdout", 22 ":art-run-test-987-agent-bind-expected-stderr", 28 name: "art-run-test-987-agent-bind-expected-stdout", 29 out: ["art-run-test-987-agent-bind-expected-stdout.txt"], 36 name: "art-run-test-987-agent-bind-expected-stderr", 37 out: ["art-run-test-987-agent-bind-expected-stderr.txt"],
|
/aosp12/art/test/1909-per-agent-tls/ |
H A D | Android.bp | 3 // Build rules for ART run-test `1909-per-agent-tls`. 16 name: "art-run-test-1909-per-agent-tls", 21 ":art-run-test-1909-per-agent-tls-expected-stdout", 22 ":art-run-test-1909-per-agent-tls-expected-stderr", 28 name: "art-run-test-1909-per-agent-tls-expected-stdout", 29 out: ["art-run-test-1909-per-agent-tls-expected-stdout.txt"], 36 name: "art-run-test-1909-per-agent-tls-expected-stderr", 37 out: ["art-run-test-1909-per-agent-tls-expected-stderr.txt"],
|
/aosp12/art/tools/jvmti-agents/titrace/ |
H A D | README.md | 14 * `-Xplugin` and `-agentpath` need to be used, otherwise libtitrace agent will fail during init. 22 #### Enable permissions for attaching an agent 32 If this step is skipped, attaching the agent will not succeed. 33 #### Deploy agent to device 34 The agent must be located in an app-accessible directory. 42 Copy the agent into an app-accessible directory, and make the file owned by the app. 44 #### Attach agent to application 46 ##### Option 1: Attach the agent before any app code runs. 53 ##### Option 2: Attach the agent to an already-running app. 54 > `adb shell am attach-agent $(pid com.littleinc.orm_benchmark) /data/data/com.littleinc.orm_bench… [all …]
|
/aosp12/packages/apps/Camera2/src/com/android/camera/app/ |
H A D | ModuleManagerImpl.java | 44 public void registerModule(ModuleAgent agent) { in registerModule() argument 45 if (agent == null) { in registerModule() 48 final int moduleId = agent.getModuleId(); in registerModule() 56 mRegisteredModuleAgents.put(moduleId, agent); in registerModule() 105 ModuleAgent agent = mRegisteredModuleAgents.get(moduleId); in getModuleAgent() local 106 if (agent == null) { in getModuleAgent() 109 return agent; in getModuleAgent()
|
/aosp12/art/tools/jvmti-agents/simple-force-redefine/ |
H A D | README.md | 3 ForceRedefine is a JVMTI agent designed for testing how redefiniton affects running processes. It 24 > `adb shell am attach-agent $(adb shell pidof some.deubggable.app) /data/local/tmp/libforcerede… 26 Since the agent has no static state it can be attached multiple times to the same process. 28 > `adb shell am attach-agent $(adb shell pidof some.deubggable.app) /data/local/tmp/libforcerede… 29 > `adb shell am attach-agent $(adb shell pidof some.deubggable.app) /data/local/tmp/libforcerede… 30 > `adb shell am attach-agent $(adb shell pidof some.deubggable.app) /data/local/tmp/libforcerede… 32 One can also use fifos to send classes interactively to the process. (TODO: Have the agent
|
/aosp12/packages/modules/Connectivity/service/src/com/android/server/ |
H A D | TestNetworkService.java | 295 final TestNetworkAgent agent = new TestNetworkAgent(context, looper, nc, lp, in registerTestNetworkAgent() local 298 agent.register(); in registerTestNetworkAgent() 299 agent.markConnected(); in registerTestNetworkAgent() 300 return agent; in registerTestNetworkAgent() 334 TestNetworkAgent agent = in setupTestNetwork() local 345 mTestNetworkTracker.put(agent.getNetwork().getNetId(), agent); in setupTestNetwork() local 359 final TestNetworkAgent agent; in teardownTestNetwork() local 361 agent = mTestNetworkTracker.get(netId); in teardownTestNetwork() 364 if (agent == null) { in teardownTestNetwork() 366 } else if (agent.mUid != Binder.getCallingUid()) { in teardownTestNetwork() [all …]
|
/aosp12/art/test/909-attach-agent/src-art/ |
H A D | Main.java | 30 String agent = null; in main() local 35 agent = a.substring(6); in main() 40 if (agent == null) { in main() 46 VMDebug.attachAgent(agent); in main() 66 String agent = a.substring(6).replace(agentName, newAgentName); in attachWithClassLoader() local 71 VMDebug.attachAgent(agent, cl); in attachWithClassLoader()
|
/aosp12/art/tools/jvmti-agents/jit-load/ |
H A D | README.md | 3 Jitload is an art-specific agent allowing one to count the number of classes 15 * `-Xplugin` and `-agentpath` need to be used, otherwise libtitrace agent will fail during init. 16 * If using `libartd.so`, make sure to use the debug version of jvmti and agent. 17 * Pass the '=fatal' option to the agent to cause it to abort if any classes are 22 * To use with run-test or testrunner.py use the --with-agent argument. 24 > `./test/run-test --host --with-agent libtitraced.so=fatal 001-HelloWorld`
|
/aosp12/art/runtime/ti/ |
H A D | agent.cc | 78 std::unique_ptr<Agent> agent = DoDlOpen(env, class_loader, error, error_msg); in DoLoadHelper() local 79 if (agent == nullptr) { in DoLoadHelper() 83 AgentOnLoadFunction callback = attaching ? agent->onattach_ : agent->onload_; in DoLoadHelper() 106 return agent; in DoLoadHelper() 149 std::unique_ptr<Agent> agent(new Agent(name_, dlopen_handle)); in DoDlOpen() local 150 agent->PopulateFunctions(); in DoDlOpen() 152 return agent; in DoDlOpen()
|
/aosp12/art/tools/jvmti-agents/chain-agents/ |
H A D | README.md | 3 The chainagents agent is a JVMTI agent that chain loads other agents from a file found at a 5 in order to implement more complicated agent-loading rules. 23 * `-Xplugin` and `-agentpath` need to be used, otherwise libtitrace agent will fail during init. 28 The chain-agents file is a list of agent files and arguments to load in the same format as the
|
/aosp12/packages/modules/Connectivity/tests/common/java/android/net/ |
H A D | NetworkProviderTest.kt | 167 val agent = object : NetworkAgent(context, mHandlerThread.looper, "TestAgent", nc, lp, regex 169 agent.register() 170 agent.markConnected() 175 callback.id == agent.providerId 178 agent.sendNetworkScore(updatedScore) 182 callback.id == agent.providerId 316 val agent = object : NetworkAgent(context, mHandlerThread.looper, "TestAgent", nc, regex 318 agent.register() 319 agent.markConnected() 328 agent.sendNetworkScore(scoreStronger) [all …]
|
/aosp12/packages/apps/Settings/src/com/android/settings/security/trustagent/ |
H A D | TrustAgentListPreferenceController.java | 164 final TrustAgentManager.TrustAgentComponentInfo agent = agents.get(i); in updateDynamicRawDataToIndex() local 167 raw.title = agent.title; in updateDynamicRawDataToIndex() 210 TrustAgentManager.TrustAgentComponentInfo agent = agents.get(i); in updateTrustAgents() local 213 trustAgentPreference.setTitle(agent.title); in updateTrustAgents() 214 trustAgentPreference.setSummary(agent.summary); in updateTrustAgents() 217 .setComponent(agent.componentName)); in updateTrustAgents() 218 trustAgentPreference.setDisabledByAdmin(agent.admin); in updateTrustAgents()
|
/aosp12/art/tools/jvmti-agents/breakpoint-logger/ |
H A D | README.md | 3 breakpointlogger is a JVMTI agent that lets one set breakpoints that are logged 15 The agent is loaded using -agentpath like normal. It takes arguments in the 26 * Unlike with most normal debuggers the agent will load the class immediately to 37 * `-Xplugin` and `-agentpath` need to be used, otherwise the agent will fail during init. 46 …% ./test/run-test --host --dev --with-agent 'libbreakpointlogger.so=LMain;->main([Ljava/lang/Strin… 51 …% ./test/run-test --jvm --dev --with-agent 'libbreakpointlogger.so=LMain;->main([Ljava/lang/String…
|
/aosp12/art/tools/jvmti-agents/ti-fast/ |
H A D | README.md | 3 tifast is a JVMTI agent designed for profiling the performance impact listening 18 The agent is loaded using -agentpath like normal. It takes arguments in the 41 The following events may be listened for with this agent 95 All other events cannot be listened for by this agent. Most of these missing 102 * `-Xplugin` and `-agentpath` need to be used, otherwise the agent will fail during init. 109 > `adb shell am start-activity --attach-agent /data/local/tmp/libtifast.so=MonitorWait,ClassPrep…
|
/aosp12/art/tools/jvmti-agents/enable-vlog/ |
H A D | README.md | 3 enablevlog is a JVMTI agent designed for changing the VLOG options of a 18 The agent is loaded using -agentpath like normal. It takes arguments in the 28 At the time of writing, the following events may be listened for with this agent 86 * `-Xplugin` and `-agentpath` need to be used, otherwise the agent will fail during init. 93 > `adb shell am start-activity --attach-agent /data/local/tmp/libenablevlog.so=class,jit some.de…
|