/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | DscpPolicyTest.kt | 279 val agent = TestableNetworkAgent(context, handlerThread.looper, nc, lp, config) in <lambda>() constant 280 agentsToCleanUp.add(agent) in <lambda>() 283 runAsShell(MANAGE_TEST_NETWORKS) { agent.register() } in <lambda>() 284 agent.markConnected() in <lambda>() 285 agent.expectCallback<OnNetworkCreated>() in <lambda>() 286 agent.expectSignalStrengths(intArrayOf()) in <lambda>() 287 agent.expectValidationBypassedStatus() in <lambda>() 289 val network = agent.network ?: fail("Expected a non-null network") in <lambda>() 291 return agent to callback in <lambda>() 299 agent: TestableNetworkAgent, in <lambda>() [all …]
|
D | NetworkAgentTest.kt | 255 val agent: INetworkAgent constant 258 fun connect(agent: INetworkAgent) { in connect() 259 this.agentField = agent in connect() 260 agent.onRegistered(registry) in connect() 263 fun disconnect() = agent.onDisconnected() in disconnect() 352 val agent = createNetworkAgent(context, initialConfig = initialConfig, initialNc = nc) in createConnectedNetworkAgent() constant 353 agent.setTeardownDelayMillis(0) in createConnectedNetworkAgent() 355 agent.register() in createConnectedNetworkAgent() 356 agent.markConnected() in createConnectedNetworkAgent() 357 agent.expectCallback<OnNetworkCreated>() in createConnectedNetworkAgent() [all …]
|
D | NetworkScoreTest.kt | 113 private class AgentWrapper(val agent: NetworkAgent) : HasNetwork { in <lambda>() constant in android.net.cts.NetworkScoreTest.AgentWrapper 114 override val network = checkNotNull(agent.network) in <lambda>() 115 fun sendNetworkScore(s: NetworkScore) = agent.sendNetworkScore(s) in <lambda>() 151 val agent = object : NetworkAgent(context, looper, "NetworkScore test agent", nc, in <lambda>() constant 158 runWithShellPermissionIdentity({ agent.register() }, MANAGE_TEST_NETWORKS) in <lambda>() 159 agent.markConnected() in <lambda>() 160 return AgentWrapper(agent) in <lambda>()
|
D | ConnectivityManagerTest.java | 2150 final NetworkAgent agent = createRestrictedNetworkAgent(mContext); 2151 final Network network = agent.getNetwork(); 2164 agent.unregister(); 3379 final NetworkAgent agent = new NetworkAgent(context, Looper.getMainLooper(), TAG, nc, 3382 runWithShellPermissionIdentity(() -> agent.register(), 3384 agent.markConnected(); 3386 return agent; 3433 final NetworkAgent agent = createRestrictedNetworkAgent(mContext); 3434 final Network network = agent.getNetwork(); 3469 agent.unregister();
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/ |
D | TrustAgentListPreferenceControllerTest.java | 131 final TrustAgentComponentInfo agent = createTrustAgentComponentInfo(null); in onResume_shouldClearOldAgents() local 132 agents.add(agent); in onResume_shouldClearOldAgents() 145 final TrustAgentComponentInfo agent = createTrustAgentComponentInfo(null); in onResume_shouldAddNewAgents() local 146 agents.add(agent); in onResume_shouldAddNewAgents() 160 final TrustAgentComponentInfo agent = createTrustAgentComponentInfo(null); in onResume_ifNotAvailable_shouldNotAddNewAgents() local 161 agents.add(agent); in onResume_ifNotAvailable_shouldNotAddNewAgents() 174 final TrustAgentComponentInfo agent = createTrustAgentComponentInfo(null); in onResume_controllerShouldHasKey() local 175 agents.add(agent); in onResume_controllerShouldHasKey() 189 final TrustAgentComponentInfo agent = createTrustAgentComponentInfo(new EnforcedAdmin()); in onResume_shouldShowDisabledByAdminRestrictedPreference() local 191 agents.add(agent); in onResume_shouldShowDisabledByAdminRestrictedPreference() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/ |
D | CSAgentWrapper.kt | 83 private val agent: NetworkAgent in ArgumentCaptor() constant 91 override val network: Network get() = agent.network!! in ArgumentCaptor() 111 agent = object : NetworkAgent(context, csHandlerThread.looper, TAG, in ArgumentCaptor() 114 agent = object : NetworkAgent(context, csHandlerThread.looper, TAG, in ArgumentCaptor() 117 agent.register() in ArgumentCaptor() 118 assertEquals(agent.network!!.netId, nmNetworkCaptor.value.netId) in ArgumentCaptor() 150 agent.markConnected() in ArgumentCaptor() 151 if (null == cb.poll { it is Available && agent.network == it.network }) { in ArgumentCaptor() 179 cb.eventuallyExpect<Available> { it.network == agent.network } in ArgumentCaptor() 180 agent.unregister() in ArgumentCaptor() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/ |
D | CSIngressDiscardRuleTests.kt | 118 val agent = Agent(nc = nc, lp = lp) in testVpnIngressDiscardRule_UpdateVpnAddress() constant 119 agent.connect() in testVpnIngressDiscardRule_UpdateVpnAddress() 120 cb.expectAvailableCallbacks(agent.network, validated = false) in testVpnIngressDiscardRule_UpdateVpnAddress() 128 agent.sendLinkProperties(newLp) in testVpnIngressDiscardRule_UpdateVpnAddress() 129 cb.expect<LinkPropertiesChanged>(agent.network) in testVpnIngressDiscardRule_UpdateVpnAddress() 136 agent.disconnect() in testVpnIngressDiscardRule_UpdateVpnAddress() 151 val agent = Agent(nc = nc, lp = lp) in testVpnIngressDiscardRule_UpdateInterfaceName() constant 152 agent.connect() in testVpnIngressDiscardRule_UpdateInterfaceName() 153 cb.expectAvailableCallbacks(agent.network, validated = false) in testVpnIngressDiscardRule_UpdateInterfaceName() 161 agent.sendLinkProperties(newlp) in testVpnIngressDiscardRule_UpdateInterfaceName() [all …]
|
D | CSActiveNetworkInfoTest.kt | 59 val agent = Agent(nc = nc()) in nc() constant 60 agent.connect() in nc() 70 agent.disconnect() in nc()
|
D | CSSatelliteNetworkTest.kt | 147 val agent = createSatelliteAgent("satellite0", restricted) in doTestSatelliteNeverBecomeDefaultNetwork() constant 148 agent.connect() in doTestSatelliteNeverBecomeDefaultNetwork()
|
D | CSLocalAgentTests.kt | 136 val agent = Agent(nc = NetworkCapabilities.Builder() in keepScore() constant 140 agent.connect() in keepScore() 141 cb.expectAvailableCallbacks(agent.network, validated = false) in keepScore() 142 agent.sendNetworkCapabilities(NetworkCapabilities.Builder().build()) in keepScore() 143 cb.expect<Lost>(agent.network) in keepScore()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
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()
|
D | ModuleManager.java | 78 void registerModule(ModuleAgent agent); in registerModule() argument
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | TestNetworkService.java | 316 final TestNetworkAgent agent = new TestNetworkAgent(context, looper, nc, lp, in registerTestNetworkAgent() local 319 agent.register(); in registerTestNetworkAgent() 320 agent.markConnected(); in registerTestNetworkAgent() 321 return agent; in registerTestNetworkAgent() 355 TestNetworkAgent agent = in setupTestNetwork() local 366 mTestNetworkTracker.put(agent.getNetwork().getNetId(), agent); in setupTestNetwork() local 380 final TestNetworkAgent agent; in teardownTestNetwork() local 382 agent = mTestNetworkTracker.get(netId); in teardownTestNetwork() 385 if (agent == null) { in teardownTestNetwork() 387 } else if (agent.mUid != Binder.getCallingUid()) { in teardownTestNetwork() [all …]
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TestConnectivityManager.java | 164 void makeDefaultNetwork(TestNetworkAgent agent, boolean order, @Nullable Runnable inBetween) { in makeDefaultNetwork() argument 165 if (Objects.equals(mDefaultNetwork, agent)) return; in makeDefaultNetwork() 168 mDefaultNetwork = agent; in makeDefaultNetwork() 181 void makeDefaultNetwork(TestNetworkAgent agent, boolean order) { in makeDefaultNetwork() argument 182 makeDefaultNetwork(agent, order, null /* inBetween */); in makeDefaultNetwork() 185 void makeDefaultNetwork(TestNetworkAgent agent) { in makeDefaultNetwork() argument 186 makeDefaultNetwork(agent, BROADCAST_FIRST, null /* inBetween */); in makeDefaultNetwork() 189 void sendLinkProperties(TestNetworkAgent agent, boolean updateDefaultFirst) { in sendLinkProperties() argument 190 if (!updateDefaultFirst) agent.sendLinkProperties(); in sendLinkProperties() 193 cb.onLinkPropertiesChanged(agent.networkId, agent.linkProperties); in sendLinkProperties() [all …]
|
D | UpstreamNetworkMonitorTest.java | 616 private void verifyCurrentLinkProperties(TestNetworkAgent agent) { in verifyCurrentLinkProperties() argument 617 assertEquals(agent.networkId, mUNM.getCurrentPreferredUpstream().network); in verifyCurrentLinkProperties() 618 assertEquals(agent.linkProperties, mUNM.getCurrentPreferredUpstream().linkProperties); in verifyCurrentLinkProperties() 639 private void verifyNotifyDefaultSwitch(TestNetworkAgent agent) { in verifyNotifyDefaultSwitch() argument 644 && agent.networkId.equals(((UpstreamNetworkState) uns).network) in verifyNotifyDefaultSwitch() 645 && agent.linkProperties.equals(((UpstreamNetworkState) uns).linkProperties) in verifyNotifyDefaultSwitch() 646 && agent.networkCapabilities.equals( in verifyNotifyDefaultSwitch()
|
/packages/apps/Settings/src/com/android/settings/security/trustagent/ |
D | TrustAgentListPreferenceController.java | 165 final TrustAgentManager.TrustAgentComponentInfo agent = agents.get(i); in updateDynamicRawDataToIndex() local 168 raw.title = agent.title; in updateDynamicRawDataToIndex() 211 TrustAgentManager.TrustAgentComponentInfo agent = agents.get(i); in updateTrustAgents() local 214 trustAgentPreference.setTitle(agent.title); in updateTrustAgents() 215 trustAgentPreference.setSummary(agent.summary); in updateTrustAgents() 218 .setComponent(agent.componentName)); in updateTrustAgents() 219 trustAgentPreference.setDisabledByAdmin(agent.admin); in updateTrustAgents() 222 trustAgentPreference.setSummary(TextUtils.firstNotEmpty(agent.summary, " ")); in updateTrustAgents()
|
D | TrustAgentsPreferenceController.java | 103 for (TrustAgentInfo agent : mAvailableAgents.values()) { in updateAgents() 104 final ComponentName componentName = agent.getComponentName(); in updateAgents() 112 preference.setTitle(agent.getLabel()); in updateAgents() 113 preference.setIcon(agent.getIcon()); in updateAgents() 178 for (TrustAgentInfo agent : mAvailableAgents.values()) { in onPreferenceChange() 179 final ComponentName componentName = agent.getComponentName(); in onPreferenceChange()
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NetworkProviderTest.kt | 168 val agent = object : NetworkAgent(context, mHandlerThread.looper, "TestAgent", nc, lp, in <lambda>() constant 170 agent.register() in <lambda>() 171 agent.markConnected() in <lambda>() 176 callback.id == agent.providerId in <lambda>() 179 agent.sendNetworkScore(updatedScore) in <lambda>() 183 callback.id == agent.providerId in <lambda>() 316 val agent = object : NetworkAgent(context, mHandlerThread.looper, "TestAgent", nc, in <lambda>() constant 318 agent.register() in <lambda>() 319 agent.markConnected() in <lambda>() 328 agent.sendNetworkScore(scoreStronger) in <lambda>() [all …]
|
/packages/modules/adb/docs/user/ |
D | adb.1.md | 244 **-force-agent** 245 Force update of deployment agent when using fast deploy. 247 **-date-check-agent** 248 Update deployment agent when local version is newer and using fast deploy. 250 **\-\-version-check-agent** 251 Update deployment agent when local version has different version code and u… 253 **\-\-local-agent** 254 Locate agent files from local source build (instead of SDK location). See a…
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | TelephonyBackupAgentTest.java | 701 mTelephonyBackupAgent, (agent) -> { in testRestoreMms_NoMms() 703 agent.putMmsMessagesToProvider(jsonReader); in testRestoreMms_NoMms() 723 mTelephonyBackupAgent, (agent) -> { in testRestoreMms_AllMms() 725 agent.putMmsMessagesToProvider(jsonReader); in testRestoreMms_AllMms() 746 mTelephonyBackupAgent, (agent) -> { in testRestoreMmsWithAttachment() 748 agent.putMmsMessagesToProvider(jsonReader); in testRestoreMmsWithAttachment() 766 mTelephonyBackupAgent, (agent) -> { in testRestoreMmsWithNullBody() 768 agent.putMmsMessagesToProvider(jsonReader); in testRestoreMmsWithNullBody()
|
/packages/apps/Camera2/src/com/android/camera/device/ |
D | PortabilityCameraActions.java | 75 CameraAgent agent = CameraAgentFactory.getAndroidCameraAgent(mContext, mApiVersion); in executeOpen() local 78 … mBackgroundRunner.execute(new OpenCameraRunnable(agent, mId.getCameraId().getLegacyValue(), in executeOpen()
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | AppUpgrader.java | 423 ModuleManagerImpl.ModuleAgent agent = in upgradeModuleSettingsFiles() local 425 if (agent != null) { in upgradeModuleSettingsFiles() 427 SettingsManager.getModuleSettingScope(agent.getScopeNamespace())); in upgradeModuleSettingsFiles()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CameraActivity.java | 1024 ModuleAgent agent = mModuleManager.getModuleAgent(mCurrentModeIndex); in getModuleScope() local 1025 return SettingsManager.getModuleSettingScope(agent.getScopeNamespace()); in getModuleScope() 2510 ModuleManagerImpl.ModuleAgent agent = mModuleManager.getModuleAgent(modeIndex); in getModuleId() local 2511 if (agent == null) { in getModuleId() 2514 return agent.getModuleId(); in getModuleId() 2522 ModuleManagerImpl.ModuleAgent agent = mModuleManager.getModuleAgent(modeIndex); in setModuleFromModeIndex() local 2523 if (agent == null) { in setModuleFromModeIndex() 2526 if (!agent.requestAppForCamera()) { in setModuleFromModeIndex() 2529 mCurrentModeIndex = agent.getModuleId(); in setModuleFromModeIndex() 2530 mCurrentModule = (CameraModule) agent.createModule(this, getIntent()); in setModuleFromModeIndex()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | ConnectivityServiceTest.java | 999 private void waitForIdle(TestNetworkAgentWrapper agent, long timeoutMs) { in waitForIdle() argument 1000 if (agent == null) { in waitForIdle() 1003 agent.waitForIdle(timeoutMs); in waitForIdle() 2447 for (TestNetworkAgentWrapper agent : mCreatedAgents) { 2448 agent.destroy(); 3894 private int expectNotification(TestNetworkAgentWrapper agent, NotificationType type) { 3896 eq(NetworkNotificationManager.tagFor(agent.getNetwork().netId)), 3901 private void expectNoNotification(@NonNull final TestNetworkAgentWrapper agent) { 3910 private int expectUnvalidationCheckWillNotify(TestNetworkAgentWrapper agent, 3912 mService.scheduleEvaluationTimeout(agent.getNetwork(), 0 /* delayMs */); [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiScoreReport.java | 1124 public void setNetworkAgent(WifiNetworkAgent agent) { in setNetworkAgent() argument 1126 mNetworkAgent = agent; in setNetworkAgent()
|