/cts/tests/tests/content/src/android/content/cts/ |
D | ComponentNameTest.java | 81 final ComponentName componentName = getComponentName(); in testConstructor() local 82 componentName.writeToParcel(parcel, 0); in testConstructor() 98 ComponentName componentName = new ComponentName("com.android.view", in testGetShortClassName() local 100 final String className = componentName.getClassName(); in testGetShortClassName() 103 actual = componentName.getShortClassName(); in testGetShortClassName() 128 final ComponentName componentName = getComponentName(); in testUnflattenFromString() local 132 assertEquals(componentName, actual); in testUnflattenFromString() 141 final ComponentName componentName = new ComponentName("com.android.view", in testFlattenToShortString() local 143 final String falttenString = componentName.flattenToString(); in testFlattenToShortString() 146 actual = componentName.flattenToShortString(); in testFlattenToShortString() [all …]
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ComponentNameUtils.java | 29 public static String getActivityName(ComponentName componentName) { in getActivityName() argument 30 return componentName.flattenToShortString(); in getActivityName() 38 public static String getWindowName(ComponentName componentName) { in getWindowName() argument 39 return componentName.flattenToString(); in getWindowName() 47 public static String getLogTag(ComponentName componentName) { in getLogTag() argument 48 final String className = componentName.getClassName(); in getLogTag()
|
/cts/tests/tests/keystore/src/android/server/am/ |
D | ComponentNameUtils.java | 29 public static String getActivityName(ComponentName componentName) { in getActivityName() argument 30 return componentName.flattenToShortString(); in getActivityName() 38 public static String getWindowName(ComponentName componentName) { in getWindowName() argument 39 return componentName.flattenToString(); in getWindowName()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | EncoderTest.java | 181 for (String componentName : componentNames) { in testEncoderWithFormats() 184 pool.execute(new EncoderRun(componentName, format)); in testEncoderWithFormats() 273 EncoderRun(String componentName, MediaFormat format) { in EncoderRun() argument 274 mComponentName = componentName; in EncoderRun() 283 private void testEncoder(String componentName, MediaFormat format) { in testEncoder() argument 284 Log.i(TAG, "testEncoder " + componentName + "/" + format); in testEncoder() 286 testEncoder(componentName, format, 0, -1, MODE_SILENT); in testEncoder() 289 testEncoder(componentName, format, 0, R.raw.okgoogle123_good, MODE_RESOURCE); in testEncoder() 290 testEncoder(componentName, format, 0, R.raw.okgoogle123_good, MODE_RESOURCE | MODE_QUIET); in testEncoder() 291 testEncoder(componentName, format, 0, R.raw.tones, MODE_RESOURCE); in testEncoder() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ActivityInfoTest.java | 50 ComponentName componentName = new ComponentName(mContext, MockActivity.class); in testWriteToParcel() local 53 componentName, PackageManager.GET_META_DATA); in testWriteToParcel() 77 ComponentName componentName = new ComponentName(mContext, MockActivity.class); in testGetThemeResource() local 80 componentName, PackageManager.GET_META_DATA); in testGetThemeResource() 96 ComponentName componentName = new ComponentName(mContext, MockActivity.class); in testDescribeContents() local 99 componentName, PackageManager.GET_META_DATA); in testDescribeContents()
|
D | PackageItemInfo_DisplayNameComparatorTest.java | 39 ComponentName componentName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in testDisplayNameComparator() local 40 ActivityInfo activityInfo = pm.getActivityInfo(componentName, 0); in testDisplayNameComparator() 43 componentName = new ComponentName(PACKAGE_NAME, CMPACTIVITY_NAME); in testDisplayNameComparator() 44 activityInfo = pm.getActivityInfo(componentName, 0); in testDisplayNameComparator()
|
D | ServiceInfoTest.java | 35 ComponentName componentName = new ComponentName(PACKAGE_NAME, SERVICE_NAME); in testServiceInfo() local 41 ServiceInfo serviceInfo = pm.getServiceInfo(componentName, 0); in testServiceInfo()
|
D | InstrumentationInfoTest.java | 36 ComponentName componentName = new ComponentName(PACKAGE_NAME, INSTRUMENTATION_NAME); in testInstrumentationInfo() local 41 InstrumentationInfo instrInfo = pm.getInstrumentationInfo(componentName, 0); in testInstrumentationInfo()
|
D | PackageItemInfoTest.java | 97 ComponentName componentName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in getTestItemInfo() local 99 mPackageManager.getActivityInfo(componentName, PackageManager.GET_META_DATA); in getTestItemInfo()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 626 protected boolean setProfileOwner(String componentName, int userId, boolean expectFailure) in setProfileOwner() argument 628 String command = "dpm set-profile-owner --user " + userId + " '" + componentName + "'"; in setProfileOwner() 641 protected void setProfileOwnerOrFail(String componentName, int userId) in setProfileOwnerOrFail() argument 643 if (!setProfileOwner(componentName, userId, /*expectFailure*/ false)) { in setProfileOwnerOrFail() 651 protected void setProfileOwnerExpectingFailure(String componentName, int userId) in setProfileOwnerExpectingFailure() argument 653 if (setProfileOwner(componentName, userId, /* expectFailure =*/ true)) { in setProfileOwnerExpectingFailure() 661 private String setDeviceAdminInner(String componentName, int userId) in setDeviceAdminInner() argument 663 String command = "dpm set-active-admin --user " + userId + " '" + componentName + "'"; in setDeviceAdminInner() 668 protected void setDeviceAdmin(String componentName, int userId) in setDeviceAdmin() argument 670 String commandOutput = setDeviceAdminInner(componentName, userId); in setDeviceAdmin() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/ |
D | TestResult.java | 87 private TestResult(String packageName, String componentName, String methodName, in TestResult() argument 91 mComponentName = componentName; in TestResult() 136 private String componentName; field in TestResult.Builder 150 componentName = _componentName; in setComponentName() 174 return new TestResult(packageName, componentName, methodName, in build()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | ActivityMetricsLoggerTests.java | 129 private void assertMetricsLogs(ComponentName componentName, in assertMetricsLogs() argument 131 assertNotNull("did not find the metrics log for: " + componentName in assertMetricsLogs() 159 private void assertEventLogsContainsLaunchTime(List<Event> events, ComponentName componentName, in assertEventLogsContainsLaunchTime() argument 166 if (name.equals(componentName.flattenToShortString())) { in assertEventLogsContainsLaunchTime() 167 assertEquals("Unexpected windows drawn delay for " + componentName, in assertEventLogsContainsLaunchTime() 172 fail("Could not find am_activity_launch_time for " + componentName); in assertEventLogsContainsLaunchTime() 409 private LogMaker getMetricsLog(ComponentName componentName, int category) { in getMetricsLog() argument 415 if (componentName.getClassName().equals(actualClassName) && in getMetricsLog() 416 componentName.getPackageName().equals(actualPackageName)) { in getMetricsLog()
|
/cts/suite/audio_quality/lib/src/ |
D | ClientImpl.cpp | 42 android::String8 componentName("com.android.cts.audiotest/.CtsAudioClientActivity"); in init() local 43 if (!adb.launchClient(clientBinary, componentName)) { in init()
|
/cts/tests/app/src/android/app/cts/ |
D | TileServiceTest.java | 175 private void toggleServiceAccess(String componentName, boolean on) throws Exception { in toggleServiceAccess() argument 178 + componentName; in toggleServiceAccess() 183 private void clickTile(String componentName) throws Exception { in clickTile() argument 184 runCommand(" cmd statusbar click-tile " + componentName); in clickTile()
|
D | TabActivityTest.java | 92 final ComponentName componentName = new ComponentName(context, MockTabActivity.class); in testChildTitleCallback() local 93 final ActivityInfo info = context.getPackageManager().getActivityInfo(componentName, 0); in testChildTitleCallback()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | PasswordMinimumRestrictionsTest.java | 187 ComponentName componentName, int length) throws Exception { in invokeSetMethod() argument 190 setMethod.invoke(dpm, componentName, length); in invokeSetMethod() 197 ComponentName componentName) throws Exception { in invokeGetMethod() argument 200 return (int) getMethod.invoke(dpm, componentName); in invokeGetMethod()
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | LaunchBroadcastReceiver.java | 54 final ComponentName componentName = extras.getParcelable(EXTRA_COMPONENT_NAME); in onReceive() local 56 ActivityLauncher.checkActivityStartOnDisplay(context, displayId, componentName); in onReceive()
|
/cts/tests/framework/base/windowmanager/appSecondUid/src/android/server/wm/second/ |
D | EmbeddingActivity.java | 63 final ComponentName componentName = in onReceive() local 68 componentName); in onReceive()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerRequestPinTest.java | 323 final ComponentName componentName = in testRequestPinShortcut_noMainActivity() local 326 originalState.put(componentName, pm.getComponentEnabledSetting(componentName)); in testRequestPinShortcut_noMainActivity() 327 Log.i(TAG, "Disabling " + componentName); in testRequestPinShortcut_noMainActivity() 328 pm.setComponentEnabledSetting(componentName, in testRequestPinShortcut_noMainActivity()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | CreateAndManageUserTest.java | 120 DevicePolicyManager devicePolicyManager, ComponentName componentName) throws Exception { in assertSkipSetupWizard() argument 308 ComponentName componentName) { in logoutUser() argument 310 devicePolicyManager.logoutUser(componentName)); in logoutUser() 332 DevicePolicyManager devicePolicyManager, ComponentName componentName) { in assertAffiliatedUser() argument 343 DevicePolicyManager devicePolicyManager, ComponentName componentName) { in assertEphemeralUser() argument 344 assertTrue("not ephemeral user", devicePolicyManager.isEphemeralUser(componentName)); in assertEphemeralUser() 354 DevicePolicyManager devicePolicyManager, ComponentName componentName) { in assertAllSystemAppsInstalled() argument
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | CommandReceiverActivity.java | 360 final ComponentName componentName = in onCreate() local 367 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate() 372 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate() 378 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate() 383 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate() 388 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate() 393 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate() 394 getPackageManager().setComponentEnabledSetting(componentName, in onCreate()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/ |
D | AugmentedHelper.java | 56 final ComponentName componentName = request.getActivityComponent(); in getActivityName() 57 if (componentName == null) return "N/A (no component name)"; in getActivityName() 59 return componentName.flattenToShortString(); in getActivityName()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvInputInfoTest.java | 82 final ComponentName componentName = in testTvInputInfoOp() local 84 final String id = TvContract.buildInputId(componentName); in testTvInputInfoOp() 88 assertEquals(getContext().getPackageManager().getServiceInfo(componentName, 0).name, in testTvInputInfoOp()
|
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/ |
D | BackgroundActivityLaunchTest.java | 419 private boolean waitForActivityFocused(ComponentName componentName) { in waitForActivityFocused() argument 420 return waitForActivityFocused(ACTIVITY_FOCUS_TIMEOUT_MS, componentName); in waitForActivityFocused() 424 private boolean waitForActivityFocused(int timeoutMs, ComponentName componentName) { in waitForActivityFocused() argument 429 if (mAmWmState.getAmState().hasActivityState(componentName, STATE_RESUMED)) { in waitForActivityFocused() 439 return getActivityName(componentName).equals(mAmWmState.getAmState().getFocusedActivity()); in waitForActivityFocused()
|
/cts/hostsidetests/incident/apps/boundwidgetapp/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 145 private AppWidgetProviderInfo getProviderInfo(ComponentName componentName) { in getProviderInfo() argument 151 if (componentName.equals(provider.provider) in getProviderInfo()
|