/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | ScanFilterTest.java | 78 ScanFilter filter = mFilterBuilder.setDeviceName(LOCAL_NAME).build(); in testsetNameFilter() 79 assertEquals(LOCAL_NAME, filter.getDeviceName()); in testsetNameFilter() 80 assertTrue("setName filter fails", filter.matches(mScanResult)); in testsetNameFilter() 82 filter = mFilterBuilder.setDeviceName("Pem").build(); in testsetNameFilter() 83 assertFalse("setName filter fails", filter.matches(mScanResult)); in testsetNameFilter() 90 ScanFilter filter = mFilterBuilder.setDeviceAddress(DEVICE_MAC).build(); in testDeviceAddressFilter() 91 assertEquals(DEVICE_MAC, filter.getDeviceAddress()); in testDeviceAddressFilter() 92 assertTrue("device filter fails", filter.matches(mScanResult)); in testDeviceAddressFilter() 94 filter = mFilterBuilder.setDeviceAddress("11:22:33:44:55:66").build(); in testDeviceAddressFilter() 95 assertFalse("device filter fails", filter.matches(mScanResult)); in testDeviceAddressFilter() [all …]
|
/cts/tests/tests/keystore/ |
D | TEST_MAPPING | 10 "exclude-filter": "android.keystore.cts.SignatureTest" 13 "exclude-filter": "android.keystore.cts.RsaSignaturePerformanceTest" 16 "exclude-filter": "android.keystore.cts.RsaKeyGenPerformanceTest" 19 "exclude-filter": "android.keystore.cts.RsaCipherPerformanceTest" 22 "exclude-filter": "android.keystore.cts.MacTest#testLargeMsgKat" 25 "exclude-filter": "android.keystore.cts.KeyPairGeneratorTest" 28 "exclude-filter": "android.keystore.cts.KeyGeneratorTest#testHmacKeySupportedSizes" 31 "exclude-filter": "android.keystore.cts.HmacMacPerformanceTest" 34 "exclude-filter": "android.keystore.cts.EcdsaSignaturePerformanceTest" 37 "exclude-filter": "android.keystore.cts.EcKeyGenPerformanceTest" [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | DeviceAdminTestReceiver.java | 176 IntentFilter filter = new IntentFilter(); in setupProfile() local 177 filter.addAction(ByodHelperActivity.ACTION_QUERY_PROFILE_OWNER); in setupProfile() 178 filter.addAction(ByodHelperActivity.ACTION_REMOVE_MANAGED_PROFILE); in setupProfile() 179 filter.addAction(ByodHelperActivity.ACTION_CHECK_DISK_ENCRYPTION); in setupProfile() 180 filter.addAction(ByodHelperActivity.ACTION_INSTALL_APK); in setupProfile() 181 filter.addAction(ByodHelperActivity.ACTION_INSTALL_APK_WORK_PROFILE_GLOBAL_RESTRICTION); in setupProfile() 182 filter.addAction(ByodHelperActivity.ACTION_INSTALL_APK_PRIMARY_PROFILE_GLOBAL_RESTRICTION); in setupProfile() 183 filter.addAction(ByodHelperActivity.ACTION_CHECK_INTENT_FILTERS); in setupProfile() 184 filter.addAction(ByodHelperActivity.ACTION_CAPTURE_AND_CHECK_IMAGE); in setupProfile() 185 filter.addAction(ByodHelperActivity.ACTION_CAPTURE_AND_CHECK_VIDEO_WITH_EXTRA_OUTPUT); in setupProfile() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleServerTestBaseActivity.java | 103 IntentFilter filter = new IntentFilter(); in onResume() local 104 filter.addAction(BleServerService.BLE_BLUETOOTH_DISABLED); in onResume() 105 filter.addAction(BleServerService.BLE_SERVICE_ADDED); in onResume() 106 filter.addAction(BleServerService.BLE_SERVER_CONNECTED); in onResume() 107 filter.addAction(BleServerService.BLE_MTU_REQUEST_23BYTES); in onResume() 108 filter.addAction(BleServerService.BLE_MTU_REQUEST_512BYTES); in onResume() 109 filter.addAction(BleServerService.BLE_CHARACTERISTIC_READ_REQUEST); in onResume() 110 filter.addAction(BleServerService.BLE_CHARACTERISTIC_WRITE_REQUEST); in onResume() 111 filter.addAction(BleServerService.BLE_CHARACTERISTIC_READ_REQUEST_WITHOUT_PERMISSION); in onResume() 112 filter.addAction(BleServerService.BLE_CHARACTERISTIC_WRITE_REQUEST_WITHOUT_PERMISSION); in onResume() [all …]
|
D | BleCocServerTestBaseActivity.java | 76 IntentFilter filter = new IntentFilter(); in onResume() local 78 filter.addAction(BleCocServerService.BLE_LE_CONNECTED); in onResume() 79 filter.addAction(BleCocServerService.BLE_COC_LISTENER_CREATED); in onResume() 80 filter.addAction(BleCocServerService.BLE_PSM_READ); in onResume() 81 filter.addAction(BleCocServerService.BLE_COC_CONNECTED); in onResume() 82 filter.addAction(BleCocServerService.BLE_CONNECTION_TYPE_CHECKED); in onResume() 83 filter.addAction(BleCocServerService.BLE_DATA_8BYTES_READ); in onResume() 84 filter.addAction(BleCocServerService.BLE_DATA_8BYTES_SENT); in onResume() 85 filter.addAction(BleCocServerService.BLE_DATA_LARGEBUF_READ); in onResume() 87 filter.addAction(BleCocServerService.BLE_BLUETOOTH_MISMATCH_SECURE); in onResume() [all …]
|
D | BleEncryptedClientBaseActivity.java | 101 IntentFilter filter = new IntentFilter(); in onResume() local 102 filter.addAction(BleEncryptedClientService.INTENT_BLE_BLUETOOTH_DISABLED); in onResume() 103 filter.addAction(BleEncryptedClientService.INTENT_BLE_WRITE_ENCRYPTED_CHARACTERISTIC); in onResume() 104 filter.addAction(BleEncryptedClientService.INTENT_BLE_READ_ENCRYPTED_CHARACTERISTIC); in onResume() 105 filter.addAction(BleEncryptedClientService.INTENT_BLE_WRITE_ENCRYPTED_DESCRIPTOR); in onResume() 106 filter.addAction(BleEncryptedClientService.INTENT_BLE_READ_ENCRYPTED_DESCRIPTOR); in onResume() 107 filter.addAction(BleEncryptedClientService.INTENT_BLE_WRITE_NOT_ENCRYPTED_CHARACTERISTIC); in onResume() 108 filter.addAction(BleEncryptedClientService.INTENT_BLE_READ_NOT_ENCRYPTED_CHARACTERISTIC); in onResume() 109 filter.addAction(BleEncryptedClientService.INTENT_BLE_WRITE_NOT_ENCRYPTED_DESCRIPTOR); in onResume() 110 filter.addAction(BleEncryptedClientService.INTENT_BLE_READ_NOT_ENCRYPTED_DESCRIPTOR); in onResume() [all …]
|
D | BleClientTestBaseActivity.java | 110 IntentFilter filter = new IntentFilter(); in onStart() local 111 filter.addAction(BleClientService.BLE_BLUETOOTH_CONNECTED); in onStart() 112 filter.addAction(BleClientService.BLE_BLUETOOTH_DISCONNECTED); in onStart() 113 filter.addAction(BleClientService.BLE_SERVICES_DISCOVERED); in onStart() 114 filter.addAction(BleClientService.BLE_MTU_CHANGED_23BYTES); in onStart() 115 filter.addAction(BleClientService.BLE_MTU_CHANGED_512BYTES); in onStart() 116 filter.addAction(BleClientService.BLE_CHARACTERISTIC_READ); in onStart() 117 filter.addAction(BleClientService.BLE_CHARACTERISTIC_WRITE); in onStart() 118 filter.addAction(BleClientService.BLE_CHARACTERISTIC_CHANGED); in onStart() 119 filter.addAction(BleClientService.BLE_DESCRIPTOR_READ); in onStart() [all …]
|
D | BleEncryptedServerBaseActivity.java | 67 IntentFilter filter = new IntentFilter(); in onResume() local 68 filter.addAction(BleEncryptedServerService.INTENT_BLUETOOTH_DISABLED); in onResume() 69 filter.addAction(BleEncryptedServerService.INTENT_WAIT_WRITE_ENCRYPTED_CHARACTERISTIC); in onResume() 70 filter.addAction(BleEncryptedServerService.INTENT_WAIT_READ_ENCRYPTED_CHARACTERISTIC); in onResume() 71 filter.addAction(BleEncryptedServerService.INTENT_WAIT_WRITE_ENCRYPTED_DESCRIPTOR); in onResume() 72 filter.addAction(BleEncryptedServerService.INTENT_WAIT_READ_ENCRYPTED_DESCRIPTOR); in onResume() 73 filter.addAction(BleServerService.BLE_ADVERTISE_UNSUPPORTED); in onResume() 74 filter.addAction(BleServerService.BLE_OPEN_FAIL); in onResume() 75 registerReceiver(mBroadcast, filter); in onResume()
|
D | BleCocClientTestBaseActivity.java | 81 IntentFilter filter = new IntentFilter(); in onResume() local 83 filter.addAction(BleCocClientService.BLE_LE_CONNECTED); in onResume() 84 filter.addAction(BleCocClientService.BLE_GOT_PSM); in onResume() 85 filter.addAction(BleCocClientService.BLE_COC_CONNECTED); in onResume() 86 filter.addAction(BleCocClientService.BLE_CONNECTION_TYPE_CHECKED); in onResume() 87 filter.addAction(BleCocClientService.BLE_DATA_8BYTES_SENT); in onResume() 88 filter.addAction(BleCocClientService.BLE_DATA_8BYTES_READ); in onResume() 89 filter.addAction(BleCocClientService.BLE_DATA_LARGEBUF_READ); in onResume() 90 filter.addAction(BleCocClientService.BLE_LE_DISCONNECTED); in onResume() 92 filter.addAction(BleCocClientService.BLE_BLUETOOTH_DISCONNECTED); in onResume() [all …]
|
D | BleAdvertiserHardwareScanFilterActivity.java | 85 IntentFilter filter = new IntentFilter(); in onResume() local 86 filter.addAction(BleAdvertiserService.BLE_ADV_NOT_SUPPORT); in onResume() 87 filter.addAction(BleAdvertiserService.BLE_START_SCANNABLE); in onResume() 88 filter.addAction(BleAdvertiserService.BLE_START_UNSCANNABLE); in onResume() 89 filter.addAction(BleAdvertiserService.BLE_STOP_SCANNABLE); in onResume() 90 filter.addAction(BleAdvertiserService.BLE_STOP_UNSCANNABLE); in onResume() 91 registerReceiver(onBroadcast, filter); in onResume()
|
/cts/tests/tests/tv/src/android/media/tv/tuner/cts/ |
D | TunerDvrTest.java | 30 import android.media.tv.tuner.filter.Filter; 31 import android.media.tv.tuner.filter.FilterCallback; 32 import android.media.tv.tuner.filter.FilterConfiguration; 33 import android.media.tv.tuner.filter.FilterEvent; 34 import android.media.tv.tuner.filter.RecordSettings; 35 import android.media.tv.tuner.filter.Settings; 36 import android.media.tv.tuner.filter.TsFilterConfiguration; 105 Filter filter = mTuner.openFilter( in testDvrRecorder() local 107 if (filter != null) { in testDvrRecorder() 117 filter.configure(config); in testDvrRecorder() [all …]
|
D | TunerTest.java | 37 import android.media.tv.tuner.filter.AlpFilterConfiguration; 38 import android.media.tv.tuner.filter.AudioDescriptor; 39 import android.media.tv.tuner.filter.AvSettings; 40 import android.media.tv.tuner.filter.DownloadEvent; 41 import android.media.tv.tuner.filter.DownloadSettings; 42 import android.media.tv.tuner.filter.Filter; 43 import android.media.tv.tuner.filter.FilterCallback; 44 import android.media.tv.tuner.filter.FilterConfiguration; 45 import android.media.tv.tuner.filter.FilterEvent; 46 import android.media.tv.tuner.filter.IpCidChangeEvent; [all …]
|
/cts/tests/signature/lib/common/src/android/signature/cts/ |
D | AnnotationChecker.java | 34 private final ResultFilter filter; field in AnnotationChecker 47 ResultFilter filter) { in AnnotationChecker() argument 51 this.filter = filter; in AnnotationChecker() 60 filter(c -> !c.isSynthetic()).collect(Collectors.toSet())); in AnnotationChecker() 65 filter(m -> !m.isSynthetic()).collect(Collectors.toSet())); in AnnotationChecker() 70 filter(f -> !f.isSynthetic()).collect(Collectors.toSet())); in AnnotationChecker() 87 if (filter != null && filter.skip(clazz)) continue; in checkDeferred() 94 if (filter != null && filter.skip(c)) continue; in checkDeferred() 102 if (filter != null && filter.skip(m)) continue; in checkDeferred() 110 if (filter != null && filter.skip(f)) continue; in checkDeferred()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PersistentIntentResolvingTest.java | 36 IntentFilter filter = new IntentFilter(); in setUp() local 37 filter.addAction(ExampleIntentReceivingActivity1.CONFIRM_ACTION); in setUp() 38 filter.addAction(ExampleIntentReceivingActivity2.CONFIRM_ACTION); in setUp() 41 mContext.registerReceiver(mReceiver, filter); in setUp() 121 IntentFilter filter = new IntentFilter(); in addPersistentPreferredActivity() local 122 filter.addAction(EXAMPLE_ACTION); in addPersistentPreferredActivity() 123 filter.addCategory(Intent.CATEGORY_DEFAULT); in addPersistentPreferredActivity() 126 mDevicePolicyManager.addPersistentPreferredActivity(ADMIN_RECEIVER_COMPONENT, filter, in addPersistentPreferredActivity()
|
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/ |
D | TestAppHelper.java | 39 IntentFilter filter) { in registerTestCaseReceiver() argument 40 registerTestCaseReceiver(context, receiver, filter, /* forDeviceOwner= */ true); in registerTestCaseReceiver() 48 IntentFilter filter, boolean forDeviceOwner) { in registerTestCaseReceiver() argument 50 TestAppCallbacksReceiver.registerReceiver(context, receiver, filter); in registerTestCaseReceiver() 53 Log.d(TAG, "Registering " + receiver + " to receive " + Utils.toString(filter) in registerTestCaseReceiver() 55 LocalBroadcastManager.getInstance(context).registerReceiver(receiver, filter); in registerTestCaseReceiver()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | LoginFilterTest.java | 59 assertNull(loginFilter.filter(source1, 0, source1.length(), dest1, 0, dest1.length())); in testFilter() 65 assertNull(loginFilter.filter(source1, 0, source1.length(), dest2, 5, 6)); in testFilter() 71 assertNull(loginFilter.filter(source2, 0, source2.length(), in testFilter() 78 assertNull(loginFilter.filter(spannedSource, 0, spannedSource.length(), in testFilter() 85 result = loginFilter.filter(source2, 0, source2.length(), dest1, 0, dest1.length()); in testFilter() 93 result = loginFilter.filter(spannedSource, 0, spannedSource.length(), in testFilter() 101 loginFilter.filter(null, 0, source1.length(), dest1, 0, dest1.length()); in testFilter() 108 loginFilter.filter(source1, -1, source1.length() + 1, dest1, 0, dest1.length()); in testFilter() 116 loginFilter.filter(source1, source1.length(), 0, dest1, 0, dest1.length())); in testFilter() 119 loginFilter.filter(source1, 0, source1.length(), null, 2, dest1.length()); in testFilter() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | IntentFilterTest.java | 88 IntentFilter filter = new IntentFilter(); in testConstructor() local 89 verifyContent(filter, null, null); in testConstructor() 91 filter = new IntentFilter(ACTION); in testConstructor() 92 verifyContent(filter, ACTION, null); in testConstructor() 97 filter = new IntentFilter(actionTypeFilter); in testConstructor() 98 verifyContent(filter, ACTION, DATA_STATIC_TYPE); in testConstructor() 114 private void verifyContent(IntentFilter filter, String action, String dataType) { in verifyContent() argument 116 assertEquals(1, filter.countActions()); in verifyContent() 117 assertEquals(action, filter.getAction(0)); in verifyContent() 119 assertEquals(0, filter.countActions()); in verifyContent() [all …]
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | DigitsKeyListenerTest.java | 89 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 94 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 99 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 104 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 111 Spanned filtered = (Spanned) digitsKeyListener.filter(spannableSource, in testFilter1() 118 assertNull(digitsKeyListener.filter("", 0, 0, dest, 0, dest.length())); in testFilter1() 147 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter2() 152 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter2() 157 assertEquals("-123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter2() 162 assertEquals("-123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter2() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ColorMatrixColorFilterTest.java | 43 ColorMatrixColorFilter filter; in testColorMatrixColorFilter() local 52 filter = new ColorMatrixColorFilter(cm); in testColorMatrixColorFilter() 57 paint.setColorFilter(filter); in testColorMatrixColorFilter() 78 filter = new ColorMatrixColorFilter(transparentRedAddBlue); in testColorMatrixColorFilter() 79 paint.setColorFilter(filter); in testColorMatrixColorFilter() 106 ColorMatrixColorFilter filter = new ColorMatrixColorFilter(new ColorMatrix()); in testGetColorMatrix() local 109 filter.getColorMatrix(getMatrix); in testGetColorMatrix() 119 filter = new ColorMatrixColorFilter(scaleTranslate); in testGetColorMatrix() 120 filter.getColorMatrix(getMatrix); in testGetColorMatrix()
|
D | LightingColorFilterTest.java | 96 LightingColorFilter filter = new LightingColorFilter(Color.WHITE, Color.BLACK); in testGetColorAdd() local 97 ColorUtils.verifyColor(Color.BLACK, filter.getColorAdd()); in testGetColorAdd() 99 filter = new LightingColorFilter(0x87654321, 0x12345678); in testGetColorAdd() 100 ColorUtils.verifyColor(0x12345678, filter.getColorAdd()); in testGetColorAdd() 106 LightingColorFilter filter = new LightingColorFilter(Color.WHITE, Color.BLACK); in testGetColorMultiply() local 107 ColorUtils.verifyColor(Color.WHITE, filter.getColorMultiply()); in testGetColorMultiply() 109 filter = new LightingColorFilter(0x87654321, 0x12345678); in testGetColorMultiply() 110 ColorUtils.verifyColor(0x87654321, filter.getColorMultiply()); in testGetColorMultiply()
|
/cts/tests/tests/os/jni/ |
D | android_os_cts_OSFeatures.cpp | 46 struct sock_filter filter[] = { DENY }; in test_seccomp() local 49 prog.len = sizeof(filter) / sizeof(filter[0]); in test_seccomp() 50 prog.filter = filter; in test_seccomp()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | NoReceiveSmsPermissionTest.java | 74 IntentFilter filter = new IntentFilter(); in testReceiveTextMessage() local 75 filter.addAction(TELEPHONY_SMS_RECEIVED); in testReceiveTextMessage() 76 filter.addAction(MESSAGE_SENT_ACTION); in testReceiveTextMessage() 77 filter.addAction(MESSAGE_STATUS_RECEIVED_ACTION); in testReceiveTextMessage() 79 getContext().registerReceiver(receiver, filter); in testReceiveTextMessage() 106 IntentFilter filter = new IntentFilter(); in testAppSpecificSmsToken() local 107 filter.addAction(TELEPHONY_SMS_RECEIVED); in testAppSpecificSmsToken() 108 filter.addAction(MESSAGE_SENT_ACTION); in testAppSpecificSmsToken() 109 filter.addAction(MESSAGE_STATUS_RECEIVED_ACTION); in testAppSpecificSmsToken() 110 filter.addAction(APP_SPECIFIC_SMS_RECEIVED_ACTION); in testAppSpecificSmsToken() [all …]
|
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/ |
D | EventLogsQuery.java | 67 public F filter(Function<E, Boolean> filter) { in filter() method in EventLogsQuery 68 mFilters.add(filter); in filter() 78 for (Function<E, Boolean> filter : mFilters) { in filterAll() 79 if (!filter.apply(event)) { in filterAll() 84 return filter(event); in filterAll() 88 protected abstract boolean filter(E event); in filter() method in EventLogsQuery
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | CallbackAsserter.java | 65 public static CallbackAsserter forBroadcast(IntentFilter filter) { in forBroadcast() argument 66 return forBroadcast(filter, null); in forBroadcast() 72 public static CallbackAsserter forBroadcast(IntentFilter filter, Predicate<Intent> checker) { in forBroadcast() argument 73 return new BroadcastAsserter(filter, checker); in forBroadcast() 93 BroadcastAsserter(IntentFilter filter, Predicate<Intent> checker) { in BroadcastAsserter() argument 104 InstrumentationRegistry.getContext().registerReceiver(mReceiver, filter); in BroadcastAsserter()
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/ |
D | SharedUidTest.java | 66 final IntentFilter filter = new IntentFilter(); in testCancelDisabledPackageJob() local 67 filter.addAction(Intent.ACTION_PACKAGE_CHANGED); in testCancelDisabledPackageJob() 68 filter.addDataScheme("package"); in testCancelDisabledPackageJob() 69 filter.setPriority(IntentFilter.SYSTEM_LOW_PRIORITY); in testCancelDisabledPackageJob() 78 }, filter); in testCancelDisabledPackageJob()
|