Home
last modified time | relevance | path

Searched refs:mComponentName (Results 1 – 25 of 27) sorted by relevance

12

/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/activities/
DActivityEventsImpl.java26 private final ComponentName mComponentName; field in ActivityEventsImpl
30 mComponentName = activity.getComponentName(); in ActivityEventsImpl()
35 mComponentName = componentName; in ActivityEventsImpl()
41 return ActivityCreatedEvent.queryPackage(mComponentName.getPackageName()) in activityCreated()
43 mComponentName.getClassName()) in activityCreated()
49 return ActivityDestroyedEvent.queryPackage(mComponentName.getPackageName()) in activityDestroyed()
51 mComponentName.getClassName()) in activityDestroyed()
57 return ActivityPausedEvent.queryPackage(mComponentName.getPackageName()) in activityPaused()
59 mComponentName.getClassName()) in activityPaused()
65 return ActivityRestartedEvent.queryPackage(mComponentName.getPackageName()) in activityRestarted()
[all …]
/cts/hostsidetests/car/src/android/car/cts/powerpolicy/
DComponentPowerStateInfo.java22 private final String mComponentName; field in ComponentPowerStateInfo
26 mComponentName = componentName; in ComponentPowerStateInfo()
31 return mComponentName; in getComponentName()
44 && mComponentName.equals(that.mComponentName); in equals()
49 return Objects.hash(mPowerState, mComponentName); in hashCode()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DActivitySession.java32 private final ComponentName mComponentName; field in ActivitySession
36 mComponentName = componentName; in ActivitySession()
40 mTest.launchActivity(mComponentName); in start()
45 Utils.forceStopActivity(mComponentName); in close()
50 return mComponentName; in getComponentName()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39706/src/android/security/cts/CVE_2021_39706/
DPocPolicyManager.java26 private ComponentName mComponentName; field in PocPolicyManager
31 mComponentName = new ComponentName(PocDeviceAdminReceiver.class.getPackage().getName(), in PocPolicyManager()
36 return mDevicePolicyManager.installCaCert(mComponentName, cert); in installCaCert()
40 return mDevicePolicyManager.hasCaCertInstalled(mComponentName, cert); in hasCaCertInstalled()
44 mDevicePolicyManager.uninstallCaCert(mComponentName, cert); in uninstallCaCert()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20230/src/android/security/cts/CVE_2022_20230/
DPocPolicyManager.java29 private ComponentName mComponentName; field in PocPolicyManager
34 mComponentName = new ComponentName(PocDeviceAdminReceiver.class.getPackage().getName(), in PocPolicyManager()
43 return mDevicePolicyManager.installKeyPair(mComponentName, pkey, cert, alias); in installKeyPair()
47 return mDevicePolicyManager.removeKeyPair(mComponentName, alias); in removeKeyPair()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicyController.java34 protected final ComponentName mComponentName; field in DevicePolicyController
43 mComponentName = componentName; in DevicePolicyController()
65 return mComponentName; in componentName()
77 + Objects.hashCode(mComponentName); in hashCode()
DDeviceOwner.java89 TestApisReflectionKt.forceRemoveActiveAdmin(devicePolicyManager, mComponentName, in remove()
149 Poll.forValue(() -> TestApisReflectionKt.isRemovingAdmin(dpm, mComponentName, in removeTestApp()
169 && Objects.equals(other.mComponentName, mComponentName); in equals()
195 TestApisReflectionKt.setDeviceOwnerType(devicePolicyManager, mComponentName, in setType()
222 mComponentName); in getType()
DProfileOwner.java101 devicePolicyManager, mComponentName, isOrganizationOwned); in setIsOrganizationOwned()
122 TestApisReflectionKt.forceRemoveActiveAdmin(devicePolicyManager, mComponentName, in remove()
185 Poll.forValue(() -> TestApisReflectionKt.isRemovingAdmin(dpm, mComponentName, in removeTestApp()
216 && Objects.equals(other.mComponentName, mComponentName); in equals()
/cts/hostsidetests/car/app/src/android/car/cts/app/
DPowerPolicyListenerImpl.java32 private final String mComponentName; field in PowerPolicyListenerImpl
37 mComponentName = compName; in PowerPolicyListenerImpl()
42 Log.d(TAG, "a new policy has been received by component: " + mComponentName); in onPolicyChanged()
47 mTestClient.printResultHeader("PowerPolicyListener " + mComponentName); in onPolicyChanged()
/cts/tests/app/app/src/android/app/stubs/
DSearchManagerStubActivity.java39 private ComponentName mComponentName; field in SearchManagerStubActivity
53 mComponentName = getComponentName(); in onCreate()
78 startSearch("test", false, mComponentName, null, false); in testOnCancelListener()
109 startSearch("test", false, mComponentName, null, false); in testOnDismissListener()
138 startSearch("test", false, mComponentName, null, false); in testStopSearch()
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DPersistence.java233 private final ComponentName mComponentName; field in Persistence.LaunchIntent
240 mComponentName = componentName; in LaunchIntent()
247 final Intent intent = new Intent().setComponent(mComponentName).setFlags(buildFlag()); in getActualIntent()
295 .put(CLASS_KEY, this.mComponentName.getClassName()) in toJson()
296 .put(PACKAGE_KEY, this.mComponentName.getPackageName()) in toJson()
303 return new LaunchIntent(intentFlags, mComponentName, mData, mStartForResult); in withFlags()
311 return mComponentName; in getComponentName()
598 private final String mComponentName; field in Persistence.ActivityState
606 mComponentName = name; in ActivityState()
611 mComponentName = activity.getName(); in ActivityState()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DSensorTestScreenManipulator.java64 private final ComponentName mComponentName; field in SensorTestScreenManipulator
74 mComponentName = SensorDeviceAdminReceiver.getComponentName(activity); in SensorTestScreenManipulator()
99 intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, mComponentName); in initialize()
213 if (!mDevicePolicyManager.isAdminActive(mComponentName)) { in isDeviceAdminInitialized()
217 .hasGrantedPolicy(mComponentName, DeviceAdminInfo.USES_POLICY_FORCE_LOCK); in isDeviceAdminInitialized()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/
DTestResult.java32 private final String mComponentName; field in TestResult
44 return mComponentName; in getComponentName()
91 mComponentName = componentName; in TestResult()
107 dest.writeString(mComponentName); in writeToParcel()
126 mComponentName = source.readString(); in TestResult()
/cts/tests/tests/security/src/android/security/cts/CVE_2022_20420/
DCVE_2022_20420.java56 private ComponentName mComponentName; field in CVE_2022_20420
63 mPolicyManager.removeActiveAdmin(mComponentName); in tearDown()
85 mComponentName = new ComponentName(mContext, PocDeviceAdminReceiver.class); in testDeviceAdminAppRestricted()
86 mPolicyManager.setActiveAdmin(mComponentName, true, USER_ID); in testDeviceAdminAppRestricted()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20349/src/android/security/cts/CVE_2022_20349/
DDeviceTest.java49 ComponentName mComponentName; field in DeviceTest
71 mDevicePolicyManager.clearUserRestriction(mComponentName, USER_RESTRICTION); in tearDown()
85 mComponentName = in testBluetoothScanningDisallowed()
88 mDevicePolicyManager.addUserRestriction(mComponentName, USER_RESTRICTION); in testBluetoothScanningDisallowed()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20348/src/android/security/cts/CVE_2022_20348/
DDeviceTest.java49 ComponentName mComponentName; field in DeviceTest
71 mDevicePolicyManager.clearUserRestriction(mComponentName, USER_RESTRICTION); in tearDown()
84 mComponentName = new ComponentName(PocDeviceAdminReceiver.class.getPackage().getName(), in testWifiScanningDisallowed()
86 mDevicePolicyManager.addUserRestriction(mComponentName, USER_RESTRICTION); in testWifiScanningDisallowed()
/cts/tests/app/ShortFgsTest/src/android/app/cts/shortfgstest/
DServiceBinder.java36 private final ComponentName mComponentName; field in ServiceBinder
44 mComponentName = componentName; in ServiceBinder()
74 new Intent().setComponent(mComponentName), in doBind()
/cts/hostsidetests/media/app/MediaSessionTest/src/android/media/session/cts/
DMediaSessionManagerTest.java61 private ComponentName mComponentName; field in MediaSessionManagerTest
68 mComponentName = new ComponentName(mContext, MediaSessionManagerTest.class); in setUp()
76 List<MediaController> controllers = mMediaSessionManager.getActiveSessions(mComponentName); in testGetActiveSessions_noMediaSessionFromMediaSessionTestHelper()
91 List<MediaController> controllers = mMediaSessionManager.getActiveSessions(mComponentName); in testGetActiveSessions_hasMediaSessionFromMediaSessionTestHelper()
110 List<MediaController> controllers = mMediaSessionManager.getActiveSessions(mComponentName); in testGetActiveSessions_noMediaSession()
/cts/tests/app/FgsTimeoutTest/FgsTimeoutTestHelper/src/android/app/cts/fgstimeouttesthelper/
DFgsTimeoutMessage.java59 private ComponentName mComponentName; field in FgsTimeoutMessage
178 this.mComponentName = componentName; in FgsTimeoutMessage()
229 return mComponentName; in getComponentName()
354 mComponentName = value; in setComponentName()
483 "componentName = " + mComponentName + ", " + in toString()
517 if (mComponentName != null) flg |= 0x40; in writeToParcel()
528 if (mComponentName != null) dest.writeTypedObject(mComponentName, flags); in writeToParcel()
578 this.mComponentName = componentName; in FgsTimeoutMessage()
624 private @Nullable ComponentName mComponentName; field in FgsTimeoutMessage.Builder
690 mComponentName = componentName; in Builder()
[all …]
/cts/tests/app/ShortFgsTest/ShortFgsTestHelper/src/android/app/cts/shortfgstesthelper/
DShortFgsMessage.java59 private ComponentName mComponentName; field in ShortFgsMessage
194 this.mComponentName = componentName; in ShortFgsMessage()
249 return mComponentName; in getComponentName()
406 mComponentName = value; in setComponentName()
571 "componentName = " + mComponentName + ", " + in toString()
613 if (mComponentName != null) flg |= 0x40; in writeToParcel()
624 if (mComponentName != null) dest.writeTypedObject(mComponentName, flags); in writeToParcel()
678 this.mComponentName = componentName; in ShortFgsMessage()
728 private @Nullable ComponentName mComponentName; field in ShortFgsMessage.Builder
810 mComponentName = componentName; in Builder()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0963/src/android/security/cts/CVE_2021_0963/
DDeviceTest.java61 private ComponentName mComponentName; field in DeviceTest
86 mDevicePolicyManager.removeKeyPair(mComponentName, mContext.getString(R.string.alias)); in tearDown()
113 mComponentName = in testOverlayButtonPresence()
119 mComponentName, privKey, cert, mContext.getString(R.string.alias))); in testOverlayButtonPresence()
/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java100 private ComponentName mComponentName; field in IntentTest
130 mComponentName = new ComponentName(mContext, MockActivity.class); in setUp()
157 assertEquals(mComponentName, mIntent.getComponent()); in testConstructor()
163 assertEquals(mComponentName, mIntent.getComponent()); in testConstructor()
189 mIntent.setComponent(mComponentName); in testReadFromParcel()
294 assertEquals(mComponentName, mIntent.getComponent()); in testSetClassName1()
301 assertEquals(mComponentName, mIntent.getComponent()); in testSetClassName2()
395 mIntent.setComponent(mComponentName); in testAccessComponent()
396 assertEquals(mComponentName, mIntent.getComponent()); in testAccessComponent()
495 assertEquals(mComponentName, mIntent.getComponent()); in testSetClass()
[all …]
/cts/tests/app/WallpaperTest/src/android/app/cts/wallpapers/
DWallpaperManagerTestUtils.java140 private final ComponentName mComponentName; field in WallpaperManagerTestUtils.TestWallpaper
144 mComponentName = componentName; in TestWallpaper()
152 return mComponentName; in getComponentName()
160 return mComponentName == null; in isStatic()
/cts/hostsidetests/car/src/android/car/cts/
DPowerPolicyHostTest.java535 private final String mComponentName; field in PowerPolicyHostTest.ComponentTestHelper
544 mComponentName = componentName; in ComponentTestHelper()
569 CommonTestUtils.waitUntil("timed out with " + mComponentName in waitUntilPowerStateChangeTo()
586 PowerPolicyDef.createWithComponentOff(testHelper.mComponentName); in testComponent()
/cts/tests/tests/view/src/android/view/cts/
DLayoutInflaterTest.java115 ComponentName mComponentName = new ComponentName(mContext, in getAttrs() local
118 ai = mContext.getPackageManager().getActivityInfo(mComponentName, in getAttrs()
516 ComponentName mComponentName = new ComponentName("android.view.cts", in getParser() local
519 ai = mContext.getPackageManager().getActivityInfo(mComponentName, in getParser()

12