Home
last modified time | relevance | path

Searched refs:filter (Results 1 – 25 of 197) sorted by relevance

12345678

/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DScanFilterTest.java78 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/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DDeviceAdminTestReceiver.java143 IntentFilter filter = new IntentFilter(); in setupProfile() local
144 filter.addAction(ByodHelperActivity.ACTION_QUERY_PROFILE_OWNER); in setupProfile()
145 filter.addAction(ByodHelperActivity.ACTION_REMOVE_MANAGED_PROFILE); in setupProfile()
146 filter.addAction(ByodHelperActivity.ACTION_CHECK_DISK_ENCRYPTION); in setupProfile()
147 filter.addAction(ByodHelperActivity.ACTION_INSTALL_APK); in setupProfile()
148 filter.addAction(ByodHelperActivity.ACTION_INSTALL_APK_WORK_PROFILE_GLOBAL_RESTRICTION); in setupProfile()
149 filter.addAction(ByodHelperActivity.ACTION_INSTALL_APK_PRIMARY_PROFILE_GLOBAL_RESTRICTION); in setupProfile()
150 filter.addAction(ByodHelperActivity.ACTION_CHECK_INTENT_FILTERS); in setupProfile()
151 filter.addAction(ByodHelperActivity.ACTION_CAPTURE_AND_CHECK_IMAGE); in setupProfile()
152 filter.addAction(ByodHelperActivity.ACTION_CAPTURE_AND_CHECK_VIDEO_WITH_EXTRA_OUTPUT); in setupProfile()
[all …]
DCommandReceiverActivity.java362 IntentFilter filter; in onCreate() local
364 filter = new IntentFilter(); in onCreate()
365 filter.addAction(MediaStore.ACTION_IMAGE_CAPTURE); in onCreate()
366 filter.addAction(MediaStore.ACTION_VIDEO_CAPTURE); in onCreate()
367 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate()
369 filter = new IntentFilter(); in onCreate()
370 filter.addAction(Intent.ACTION_VIEW); in onCreate()
371 filter.addDataScheme("geo"); in onCreate()
372 mDpm.addPersistentPreferredActivity(mAdmin, filter, componentName); in onCreate()
374 filter = new IntentFilter(); in onCreate()
[all …]
DCompDeviceAdminTestReceiver.java46 final IntentFilter filter = new IntentFilter(); in onProfileProvisioningComplete() local
47 filter.addAction(CompHelperActivity.ACTION_SET_ALWAYS_ON_VPN); in onProfileProvisioningComplete()
48 filter.addAction(CompHelperActivity.ACTION_INSTALL_CA_CERT); in onProfileProvisioningComplete()
49 filter.addAction(CompHelperActivity.ACTION_SET_MAXIMUM_PASSWORD_ATTEMPTS); in onProfileProvisioningComplete()
50 dpm.addCrossProfileIntentFilter(getWho(context), filter, in onProfileProvisioningComplete() local
/cts/tests/tests/keystore/
DTEST_MAPPING10 "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/bluetooth/
DBleServerTestBaseActivity.java101 IntentFilter filter = new IntentFilter(); in onResume() local
102 filter.addAction(BleServerService.BLE_BLUETOOTH_DISABLED); in onResume()
103 filter.addAction(BleServerService.BLE_SERVICE_ADDED); in onResume()
104 filter.addAction(BleServerService.BLE_SERVER_CONNECTED); in onResume()
105 filter.addAction(BleServerService.BLE_MTU_REQUEST_23BYTES); in onResume()
106 filter.addAction(BleServerService.BLE_MTU_REQUEST_512BYTES); in onResume()
107 filter.addAction(BleServerService.BLE_CHARACTERISTIC_READ_REQUEST); in onResume()
108 filter.addAction(BleServerService.BLE_CHARACTERISTIC_WRITE_REQUEST); in onResume()
109 filter.addAction(BleServerService.BLE_CHARACTERISTIC_READ_REQUEST_WITHOUT_PERMISSION); in onResume()
110 filter.addAction(BleServerService.BLE_CHARACTERISTIC_WRITE_REQUEST_WITHOUT_PERMISSION); in onResume()
[all …]
DBleCocServerTestBaseActivity.java76 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 …]
DBleClientTestBaseActivity.java108 IntentFilter filter = new IntentFilter(); in onResume() local
109 filter.addAction(BleClientService.BLE_BLUETOOTH_CONNECTED); in onResume()
110 filter.addAction(BleClientService.BLE_BLUETOOTH_DISCONNECTED); in onResume()
111 filter.addAction(BleClientService.BLE_SERVICES_DISCOVERED); in onResume()
112 filter.addAction(BleClientService.BLE_MTU_CHANGED_23BYTES); in onResume()
113 filter.addAction(BleClientService.BLE_MTU_CHANGED_512BYTES); in onResume()
114 filter.addAction(BleClientService.BLE_CHARACTERISTIC_READ); in onResume()
115 filter.addAction(BleClientService.BLE_CHARACTERISTIC_WRITE); in onResume()
116 filter.addAction(BleClientService.BLE_CHARACTERISTIC_CHANGED); in onResume()
117 filter.addAction(BleClientService.BLE_DESCRIPTOR_READ); in onResume()
[all …]
DBleEncryptedClientBaseActivity.java101 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 …]
DBleCocClientTestBaseActivity.java81 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 …]
DBleEncryptedServerBaseActivity.java67 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()
DBleConnectionPriorityClientBaseActivity.java75 IntentFilter filter = new IntentFilter(); in onResume() local
76 filter.addAction(BleConnectionPriorityClientService.ACTION_BLUETOOTH_DISABLED); in onResume()
77 filter.addAction(BleConnectionPriorityClientService.ACTION_CONNECTION_SERVICES_DISCOVERED); in onResume()
78 filter.addAction(BleConnectionPriorityClientService.ACTION_CONNECTION_PRIORITY_FINISH); in onResume()
79 filter.addAction(BleConnectionPriorityClientService.ACTION_BLUETOOTH_MISMATCH_SECURE); in onResume()
80 filter.addAction(BleConnectionPriorityClientService.ACTION_BLUETOOTH_MISMATCH_INSECURE); in onResume()
81 filter.addAction(BleConnectionPriorityClientService.ACTION_FINISH_DISCONNECT); in onResume()
82 registerReceiver(mBroadcast, filter); in onResume()
238 IntentFilter filter = new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED); in executeSwitching() local
239 registerReceiver(this, filter); in executeSwitching()
DBleAdvertiserHardwareScanFilterActivity.java85 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/text/src/android/text/method/cts/
DDigitsKeyListenerTest.java89 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/content/src/android/content/cts/
DIntentFilterTest.java77 IntentFilter filter = new IntentFilter(); in testConstructor() local
78 verifyContent(filter, null, null); in testConstructor()
80 filter = new IntentFilter(ACTION); in testConstructor()
81 verifyContent(filter, ACTION, null); in testConstructor()
86 filter = new IntentFilter(actionTypeFilter); in testConstructor()
87 verifyContent(filter, ACTION, DATA_TYPE); in testConstructor()
103 private void verifyContent(IntentFilter filter, String action, String dataType) { in verifyContent() argument
105 assertEquals(1, filter.countActions()); in verifyContent()
106 assertEquals(action, filter.getAction(0)); in verifyContent()
108 assertEquals(0, filter.countActions()); in verifyContent()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DLoginFilterTest.java59 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/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPersistentIntentResolvingTest.java36 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/tests/tests/permission2/src/android/permission2/cts/
DNoReceiveSmsPermissionTest.java72 IntentFilter filter = new IntentFilter(); in testReceiveTextMessage() local
73 filter.addAction(TELEPHONY_SMS_RECEIVED); in testReceiveTextMessage()
74 filter.addAction(MESSAGE_SENT_ACTION); in testReceiveTextMessage()
75 filter.addAction(MESSAGE_STATUS_RECEIVED_ACTION); in testReceiveTextMessage()
77 getContext().registerReceiver(receiver, filter); in testReceiveTextMessage()
104 IntentFilter filter = new IntentFilter(); in testAppSpecificSmsToken() local
105 filter.addAction(TELEPHONY_SMS_RECEIVED); in testAppSpecificSmsToken()
106 filter.addAction(MESSAGE_SENT_ACTION); in testAppSpecificSmsToken()
107 filter.addAction(MESSAGE_STATUS_RECEIVED_ACTION); in testAppSpecificSmsToken()
108 filter.addAction(APP_SPECIFIC_SMS_RECEIVED_ACTION); in testAppSpecificSmsToken()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DColorMatrixColorFilterTest.java43 ColorMatrixColorFilter filter; in testColorMatrixColorFilter() local
52 filter = new ColorMatrixColorFilter(cm); in testColorMatrixColorFilter()
57 paint.setColorFilter(filter); in testColorMatrixColorFilter()
77 filter = new ColorMatrixColorFilter(transparentRedAddBlue); in testColorMatrixColorFilter()
78 paint.setColorFilter(filter); in testColorMatrixColorFilter()
105 ColorMatrixColorFilter filter = new ColorMatrixColorFilter(new ColorMatrix()); in testGetColorMatrix() local
108 filter.getColorMatrix(getMatrix); in testGetColorMatrix()
118 filter = new ColorMatrixColorFilter(scaleTranslate); in testGetColorMatrix()
119 filter.getColorMatrix(getMatrix); in testGetColorMatrix()
DLightingColorFilterTest.java96 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/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DInputMethodServiceDeviceTest.java81 .filter(isNewerThan(startActivityTime)) in testCreateIme1()
100 .filter(isNewerThan(startActivityTime)) in testSwitchIme1ToIme2()
117 .filter(isNewerThan(switchImeTime)) in testSwitchIme1ToIme2()
121 .filter(isNewerThan(switchImeTime)) in testSwitchIme1ToIme2()
122 .filter(isFrom(Ime2Constants.CLASS)) in testSwitchIme1ToIme2()
141 .filter(isNewerThan(startActivityTime)) in testSwitchInputMethod()
156 .filter(isNewerThan(setImeTime)) in testSwitchInputMethod()
171 .filter(isNewerThan(startActivityTime)) in testSwitchToNextInputMethod()
201 .filter(isNewerThan(startActivityTime)) in switchToPreviousInputMethod()
226 .filter(isNewerThan(startActivityTime)) in testInputUnbindsOnImeStopped()
[all …]
/cts/tests/tests/os/jni/
Dandroid_os_cts_OSFeatures.cpp46 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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCallbackAsserter.java65 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/common/device-side/util/src/com/android/compatibility/common/util/
DCallbackAsserter.java64 public static CallbackAsserter forBroadcast(IntentFilter filter) { in forBroadcast() argument
65 return forBroadcast(filter, null); in forBroadcast()
71 public static CallbackAsserter forBroadcast(IntentFilter filter, Predicate<Intent> checker) { in forBroadcast() argument
72 return new BroadcastAsserter(filter, checker); in forBroadcast()
92 BroadcastAsserter(IntentFilter filter, Predicate<Intent> checker) { in BroadcastAsserter() argument
103 InstrumentationRegistry.getContext().registerReceiver(mReceiver, filter); in BroadcastAsserter()
/cts/hostsidetests/incident/src/com/android/server/cts/
DAlarmManagerIncidentTest.java204 …private static void testFilterStatsProto(FilterStatsProto filter, final int filterLevel) throws Ex… in testFilterStatsProto() argument
205 assertNotNull(filter); in testFilterStatsProto()
208 assertTrue(filter.getTag().isEmpty()); in testFilterStatsProto()
210 assertTrue(0 <= filter.getLastFlightTimeRealtime()); in testFilterStatsProto()
211 assertTrue(0 <= filter.getTotalFlightDurationMs()); in testFilterStatsProto()
212 assertTrue(0 <= filter.getCount()); in testFilterStatsProto()
213 assertTrue(0 <= filter.getWakeupCount()); in testFilterStatsProto()
214 assertTrue(0 <= filter.getStartTimeRealtime()); in testFilterStatsProto()
216 assertTrue(0 <= filter.getNesting()); in testFilterStatsProto()

12345678