/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | Utils.java | 32 public static void removeActiveAdmin(Context context, ComponentName cn) throws Exception { in removeActiveAdmin() argument 34 if (dpm.isAdminActive(cn)) { in removeActiveAdmin() 35 dpm.removeActiveAdmin(cn); in removeActiveAdmin() 36 assertNotActiveAdmin(context, cn); in removeActiveAdmin() 40 public static void assertNotActiveAdmin(Context context, ComponentName cn) throws Exception { in assertNotActiveAdmin() argument 43 for (int i = 0; i < 1000 && dpm.isAdminActive(cn); i++) { in assertNotActiveAdmin() 46 Assert.assertFalse(dpm.isAdminActive(cn)); in assertNotActiveAdmin()
|
/cts/hostsidetests/appbinding/app/src/com/android/cts/appbinding/app/ |
D | MyEnabler.java | 38 final ComponentName cn = new ComponentName(context, in enableService() local 40 context.getPackageManager().setComponentEnabledSetting(cn, in enableService() 44 Log.w(TAG, "Enabled " + cn + " on user " + context.getUserId()); in enableService() 51 final ComponentName cn = new ComponentName(context, in disableService() local 53 context.getPackageManager().setComponentEnabledSetting(cn, in disableService() 56 Log.w(TAG, "Disabled " + cn); in disableService()
|
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ |
D | ClearDeviceAdminWithNoProtectionTest.java | 29 final ComponentName cn = new ComponentName(getContext(), in testRemoveActiveAdmin() local 34 if (dpm.isAdminActive(cn)) { in testRemoveActiveAdmin() 35 dpm.removeActiveAdmin(cn); in testRemoveActiveAdmin() 36 for (int i = 0; i < 6000 && dpm.isAdminActive(cn); i++) { in testRemoveActiveAdmin() 40 assertFalse("Still active admin", dpm.isAdminActive(cn)); in testRemoveActiveAdmin()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | PrimaryUserAdminHelper.java | 41 ComponentName cn = PrimaryUserDeviceAdmin.ADMIN_RECEIVER_COMPONENT; in testClearDeviceAdmin() local 42 if (mDpm.isAdminActive(cn)) { in testClearDeviceAdmin() 43 mDpm.removeActiveAdmin(cn); in testClearDeviceAdmin() 45 for (int i = 0; i < 2 * 60 && mDpm.isAdminActive(cn); i++) { in testClearDeviceAdmin() 49 assertFalse("Clear device admin failed", mDpm.isAdminActive(cn)); in testClearDeviceAdmin()
|
/cts/hostsidetests/devicepolicy/app/DeviceAdminService/src/com/android/cts/deviceadminservice/ |
D | ComponentController.java | 27 private void enableComponent(ComponentName cn, boolean enabled) { in enableComponent() argument 28 getContext().getPackageManager().setComponentEnabledSetting(cn, in enableComponent() 32 Log.i(TAG, "enableComponent(): user=" + UserHandle.myUserId() + ", component=" + cn in enableComponent()
|
/cts/tests/app/FgsTimeoutTest/FgsTimeoutTestHelper/src/android/app/cts/fgstimeouttesthelper/ |
D | FgsTimeoutHelper.java | 135 public static void sendBackMethodName(Class<?> clazz, String methodName, ComponentName cn) { in sendBackMethodName() argument 136 sendBackMethodName(clazz, methodName, (m) -> m.setComponentName(cn)); in sendBackMethodName() 160 public static String flattenComponentName(ComponentName cn) { in flattenComponentName() argument 161 if (cn == null) { in flattenComponentName() 164 return cn.flattenToShortString(); in flattenComponentName()
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | ClearDeviceOwnerTest.java | 67 private void waitForActiveAdminRemoved(ComponentName cn) throws InterruptedException { in waitForActiveAdminRemoved() argument 68 for (int i = 0; i < 1000 && mDevicePolicyManager.isAdminActive(cn); i++) { in waitForActiveAdminRemoved() 71 assertFalse(mDevicePolicyManager.isAdminActive(cn)); in waitForActiveAdminRemoved()
|
/cts/tests/app/ShortFgsTest/ShortFgsTestHelper/src/android/app/cts/shortfgstesthelper/ |
D | ShortFgsHelper.java | 155 public static void sendBackMethodName(Class<?> clazz, String methodName, ComponentName cn) { in sendBackMethodName() argument 156 sendBackMethodName(clazz, methodName, (m) -> m.setComponentName(cn)); in sendBackMethodName() 180 public static String flattenComponentName(ComponentName cn) { in flattenComponentName() argument 181 if (cn == null) { in flattenComponentName() 184 return cn.flattenToShortString(); in flattenComponentName()
|
D | ShortFgsMessageReceiver.java | 214 private ServiceConnection getServiceConnection(ComponentName cn) { in getServiceConnection() argument 215 ServiceConnection ret = sServiceConnections.get(cn); in getServiceConnection() 238 sServiceConnections.put(cn, ret); in getServiceConnection()
|
/cts/hostsidetests/settings/app/DeviceOwnerApp/src/com/google/android/cts/deviceowner/ |
D | ClearDeviceOwnerTest.java | 115 private static void waitUntilActiveAdminIsRemoved(DevicePolicyManager dpm, ComponentName cn) { in waitUntilActiveAdminIsRemoved() argument 116 for (int i = 0; i < 1000 && dpm.isAdminActive(cn); i++) { in waitUntilActiveAdminIsRemoved() 117 Log.v(TAG, "Sleeping 100ms because " + cn.flattenToShortString() in waitUntilActiveAdminIsRemoved() 120 Log.v(TAG, "After waken up: " + dpm.isAdminActive(cn)); in waitUntilActiveAdminIsRemoved()
|
/cts/tests/app/FgsTimeoutTest/src/android/app/cts/fgstimeouttest/ |
D | FgsTimeoutTest.java | 614 public static void startForegroundService(ComponentName cn, int fgsTypes) { in startForegroundService() argument 615 Log.i(TAG, "startForegroundService: Starting " + cn in startForegroundService() 618 .setComponentName(cn) in startForegroundService() 624 Intent i = new Intent().setComponent(cn); in startForegroundService() 630 public static FgsTimeoutMessage waitForMethodCall(ComponentName cn, String methodName) { in waitForMethodCall() argument 631 Log.i(TAG, "waitForMethodCall: waiting for " + methodName + " from " + cn); in waitForMethodCall() 634 String expected = flattenComponentName(cn) + "." + methodName; in waitForMethodCall() 655 public static ServiceRecordProto assertFgsRunning(ComponentName cn) { in assertFgsRunning() argument 656 final ServiceRecordProto srp = DumpProtoUtils.findServiceRecord(cn); in assertFgsRunning() 658 Assert.fail("Service " + cn + " is not running"); in assertFgsRunning() [all …]
|
D | DumpProtoUtils.java | 97 public static ServiceRecordProto findServiceRecord(ComponentName cn) { in findServiceRecord() argument 107 if (ComponentName.unflattenFromString(srp.shortName).equals(cn)) { in findServiceRecord()
|
/cts/tests/app/ShortFgsTest/src/android/app/cts/shortfgstest/ |
D | ActivityManagerShortFgsTest.java | 287 public static void startForegroundService(ComponentName cn, int fgsTypes) { in startForegroundService() argument 288 startForegroundService(cn, fgsTypes, Service.START_NOT_STICKY); in startForegroundService() 291 public static void startForegroundService(ComponentName cn, int fgsTypes, in startForegroundService() argument 293 Log.i(TAG, "startForegroundService: Starting " + cn in startForegroundService() 296 .setComponentName(cn) in startForegroundService() 302 Intent i = new Intent().setComponent(cn); in startForegroundService() 308 public static ShortFgsMessage waitForMethodCall(ComponentName cn, String methodName) { in waitForMethodCall() argument 309 Log.i(TAG, "waitForMethodCall: waiting for " + methodName + " from " + cn); in waitForMethodCall() 312 String expected = flattenComponentName(cn) + "." + methodName; in waitForMethodCall() 341 public static ServiceRecordProto assertFgsRunning(ComponentName cn) { in assertFgsRunning() argument [all …]
|
D | ServiceBinder.java | 51 public static ServiceBinder bind(Context c, ComponentName cn, int flags) throws Exception { in bind() argument 52 final ServiceBinder b = new ServiceBinder(c, cn, flags); in bind()
|
D | DumpProtoUtils.java | 129 public static ServiceRecordProto findServiceRecord(ComponentName cn) { in findServiceRecord() argument 139 if (ComponentName.unflattenFromString(srp.shortName).equals(cn)) { in findServiceRecord()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | STKFrameworkTest.java | 55 ComponentName cn = in testInterceptedSIMCommandsToTelephony() local 57 intent.setComponent(cn); in testInterceptedSIMCommandsToTelephony()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | UpdateProviderInfoTest.java | 63 private static final Predicate<ComponentName> NULL_CN_PREDICATE = (cn) -> cn == null; 64 private static final Predicate<ComponentName> NOT_NULL_CN_PREDICATE = (cn) -> cn != null;
|
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/ |
D | ConditionProviderServiceTest.java | 125 final ComponentName cn = SecondaryConditionProviderService.getId(); in testUnboundCPSMaintainsCondition_addsNewRule() local 130 addRule(cn, INTERRUPTION_FILTER_ALARMS, true); in testUnboundCPSMaintainsCondition_addsNewRule() 143 addRule(cn, INTERRUPTION_FILTER_NONE, true); in testUnboundCPSMaintainsCondition_addsNewRule() 276 private void addRule(ComponentName cn, int filter, boolean enabled) { in addRule() argument 280 .appendPath(cn.toString()) in addRule() 283 cn, conditionId, filter, enabled)); in addRule()
|
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/ |
D | SessionCommitBroadcastTest.java | 164 ComponentName cn = new ComponentName(mContext, BasicAdminReceiver.class); in testBroadcastReceivedForEnablingApp() local 165 UserHandle user = mDevicePolicyManager.createAndManageUser(cn, in testBroadcastReceivedForEnablingApp() 166 "Test User " + System.currentTimeMillis(), cn, in testBroadcastReceivedForEnablingApp() 184 mDevicePolicyManager.removeUser(cn, user); in testBroadcastReceivedForEnablingApp()
|
/cts/tools/utils/ |
D | certificates.py | 52 def create(cn, issuer=None, key=None, keysize=2048, digest="sha256", argument 66 cert.get_subject().CN = cn
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckAnalyzer.java | 296 final int cn = 3; in asymmetricalCircleGrid() local 299 float positions[] = new float[n * cn]; in asymmetricalCircleGrid() 304 for (int j = 0; j < size.width * cn; j += cn) { in asymmetricalCircleGrid() 305 positions[(int) (i * size.width * cn + j + 0)] = in asymmetricalCircleGrid() 306 (2 * (j / cn) + i % 2) * (float) unit; in asymmetricalCircleGrid() 307 positions[(int) (i * size.width * cn + j + 1)] = in asymmetricalCircleGrid() 309 positions[(int) (i * size.width * cn + j + 2)] = 0; in asymmetricalCircleGrid()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/ |
D | BlurTests.java | 105 ComponentName cn = mBackgroundActivity.getActivity().getComponentName(); in setUp() local 106 waitAndAssertResumedActivity(cn, cn + " must be resumed"); in setUp() 112 WindowManagerState.WindowState windowState = mWmState.getWindowState(cn); in setUp() 113 WindowManagerState.Activity act = mWmState.getActivity(cn); in setUp()
|
/cts/tests/process/src/android/os/cts/process/ |
D | ProcessTest2.java | 84 public void checkStartTime(ComponentName cn, String expectedProcessName) throws Exception { in checkStartTime() argument 91 .setComponent(cn) in checkStartTime()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | PhoneAccountRegistrarTest.java | 750 private List<PhoneAccount> generatePhoneAccountsForPackage(ComponentName cn, String baseId, in generatePhoneAccountsForPackage() argument 756 PhoneAccountHandle pah = new PhoneAccountHandle(cn, id); in generatePhoneAccountsForPackage()
|
/cts/tests/tests/sharesheet/src/android/sharesheet/cts/ |
D | CtsSharesheetDeviceTest.java | 200 .filter(cn -> { in init() 202 String pkg = cn.getPackageName(); in init()
|