Home
last modified time | relevance | path

Searched refs:compName (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/car/app/src/android/car/cts/app/
DPowerPolicyTestClient.java151 public void registerPowerPolicyListener(String compName) throws Exception { in registerPowerPolicyListener() argument
152 int compId = PowerComponentUtil.toPowerComponent(compName); in registerPowerPolicyListener()
154 throw new IllegalArgumentException("invalid power component: " + compName); in registerPowerPolicyListener()
157 if (mListenerMap.containsKey(compName)) { in registerPowerPolicyListener()
158 throw new IllegalArgumentException("duplicated power component listener: " + compName); in registerPowerPolicyListener()
161 PowerPolicyListenerImpl listener = new PowerPolicyListenerImpl(this, compName); in registerPowerPolicyListener()
165 mListenerMap.put(compName, listener); in registerPowerPolicyListener()
166 Log.d(TAG, "registered policy listener: " + compName); in registerPowerPolicyListener()
169 public void unregisterPowerPolicyListener(String compName) throws Exception { in unregisterPowerPolicyListener() argument
170 PowerPolicyListenerImpl listener = mListenerMap.remove(compName); in unregisterPowerPolicyListener()
[all …]
DPowerPolicyTestCommand.java115 AddListenerCommand(PowerPolicyTestClient testClient, String compName) { in AddListenerCommand() argument
116 super(testClient, compName, PowerPolicyTestCommandType.ADD_LISTENER); in AddListenerCommand()
134 RemoveListenerCommand(PowerPolicyTestClient testClient, String compName) { in RemoveListenerCommand() argument
135 super(testClient, compName, PowerPolicyTestCommandType.REMOVE_LISTENER); in RemoveListenerCommand()
153 DumpListenerCommand(PowerPolicyTestClient testClient, String compName) { in DumpListenerCommand() argument
154 super(testClient, compName, PowerPolicyTestCommandType.DUMP_LISTENER); in DumpListenerCommand()
DPowerPolicyListenerImpl.java35 PowerPolicyListenerImpl(PowerPolicyTestClient testClient, String compName) { in PowerPolicyListenerImpl() argument
37 mComponentName = compName; in PowerPolicyListenerImpl()
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/
DLauncherAppsTests.java240 ComponentName compName = new ComponentName(SIMPLE_APP_PACKAGE, SIMPLE_APP_PACKAGE in testLaunchMainActivity() local
242 Log.i(TAG, "Launching " + compName.flattenToShortString() + " on user " + mUser); in testLaunchMainActivity()
243 mLauncherApps.startMainActivity(compName, mUser, null, null); in testLaunchMainActivity()
244 assertWithMessage("Activity %s launched for user %s", compName.flattenToShortString(), in testLaunchMainActivity()
342 ComponentName compName = activity.getComponentName(); in assertActivityInjected() local
343 if (compName.getPackageName().equals(targetPackage)) { in assertActivityInjected()
351 ActivityInfo ai = pm.getActivityInfo(compName, /* flags= */ 0); in assertActivityInjected()
352 assertWithMessage("component %s enabled", compName.flattenToShortString()) in assertActivityInjected()
354 assertWithMessage("component %s exported", compName.flattenToShortString()) in assertActivityInjected()
357 fail("Package " + compName.getPackageName() + " not found: " + e); in assertActivityInjected()
[all …]
/cts/tests/app/FgsTest/src/android/app/cts/fgstest/
DActivityManagerForegroundServiceTypeTest.java336 private void startAndStopFgsType(ComponentName compName, int type, WatchUidRunner uidWatcher) in startAndStopFgsType() argument
338 assertEquals(RESULT_OK, startForegroundServiceWithType(compName, type)); in startAndStopFgsType()
342 stopService(compName, uidWatcher); in startAndStopFgsType()
345 private int startForegroundServiceWithType(ComponentName compName, int type) throws Exception { in startForegroundServiceWithType() argument
357 intent.setComponent(compName); in startForegroundServiceWithType()
374 private void stopService(ComponentName compName, WatchUidRunner uidWatcher) throws Exception { in stopService() argument
376 intent.setComponent(compName); in stopService()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java730 ComponentName compName = new ComponentName(EMPTY_APP_PACKAGE_NAME, EMPTY_APP_ACTIVITY_NAME); in testEnabledSettingAfterUpdate() local
732 mPackageManager.setComponentEnabledSetting(compName, in testEnabledSettingAfterUpdate()
735 mPackageManager.getComponentEnabledSetting(compName)); in testEnabledSettingAfterUpdate()
740 mPackageManager.getComponentEnabledSetting(compName)); in testEnabledSettingAfterUpdate()