/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | ScanFilterTest.java | 77 ScanFilter filter = mFilterBuilder.setDeviceName(LOCAL_NAME).build(); in testsetNameFilter() 78 assertEquals(LOCAL_NAME, filter.getDeviceName()); in testsetNameFilter() 79 assertTrue("setName filter fails", filter.matches(mScanResult)); in testsetNameFilter() 81 filter = mFilterBuilder.setDeviceName("Pem").build(); in testsetNameFilter() 82 assertFalse("setName filter fails", filter.matches(mScanResult)); in testsetNameFilter() 89 ScanFilter filter = mFilterBuilder.setDeviceAddress(DEVICE_MAC).build(); in testDeviceAddressFilter() 90 assertEquals(DEVICE_MAC, filter.getDeviceAddress()); in testDeviceAddressFilter() 91 assertTrue("device filter fails", filter.matches(mScanResult)); in testDeviceAddressFilter() 93 filter = mFilterBuilder.setDeviceAddress("11:22:33:44:55:66").build(); in testDeviceAddressFilter() 94 assertFalse("device filter fails", filter.matches(mScanResult)); in testDeviceAddressFilter() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | DeviceAdminTestReceiver.java | 82 IntentFilter filter = new IntentFilter(); in setupProfile() local 83 filter.addAction(ByodHelperActivity.ACTION_QUERY_PROFILE_OWNER); in setupProfile() 84 filter.addAction(ByodHelperActivity.ACTION_REMOVE_MANAGED_PROFILE); in setupProfile() 85 filter.addAction(ByodHelperActivity.ACTION_INSTALL_APK); in setupProfile() 86 filter.addAction(ByodHelperActivity.ACTION_CHECK_INTENT_FILTERS); in setupProfile() 87 filter.addAction(ByodHelperActivity.ACTION_CAPTURE_AND_CHECK_IMAGE); in setupProfile() 88 filter.addAction(ByodHelperActivity.ACTION_CAPTURE_AND_CHECK_VIDEO_WITH_EXTRA_OUTPUT); in setupProfile() 89 … filter.addAction(ByodHelperActivity.ACTION_CAPTURE_AND_CHECK_VIDEO_WITHOUT_EXTRA_OUTPUT); in setupProfile() 90 filter.addAction(ByodHelperActivity.ACTION_CAPTURE_AND_CHECK_AUDIO); in setupProfile() 91 filter.addAction(ByodHelperActivity.ACTION_KEYGUARD_DISABLED_FEATURES); in setupProfile() [all …]
|
/cts/common/util/tests/src/com/android/compatibility/common/util/ |
D | TestFilterTest.java | 35 TestFilter filter = TestFilter.createFrom(NAME_FILTER); in testParseNameFilter() local 36 assertNull("Incorrect abi", filter.getAbi()); in testParseNameFilter() 37 assertEquals("Incorrect name", NAME, filter.getName()); in testParseNameFilter() 38 assertNull("Incorrect test", filter.getTest()); in testParseNameFilter() 42 TestFilter filter = TestFilter.createFrom(ABI_NAME_FILTER); in testParseAbiNameFilter() local 43 assertEquals("Incorrect abi", ABI, filter.getAbi()); in testParseAbiNameFilter() 44 assertEquals("Incorrect name", NAME, filter.getName()); in testParseAbiNameFilter() 45 assertNull("Incorrect test", filter.getTest()); in testParseAbiNameFilter() 49 TestFilter filter = TestFilter.createFrom(NAME_TEST_FILTER); in testParseNameTestFilter() local 50 assertNull("Incorrect abi", filter.getAbi()); in testParseNameTestFilter() [all …]
|
/cts/tests/tests/os/jni/seccomp-tests/tests/ |
D | seccomp_bpf_tests.c | 136 struct sock_filter filter[] = { in TEST() local 140 .len = (unsigned short)(sizeof(filter)/sizeof(filter[0])), in TEST() 141 .filter = filter, in TEST() 167 struct sock_filter *filter; in TEST() local 170 filter = calloc(count, sizeof(*filter)); in TEST() 171 ASSERT_NE(NULL, filter); in TEST() 174 filter[i] = allow[0]; in TEST() 180 prog.filter = filter; in TEST() 203 struct sock_filter *filter; in TEST() local 206 filter = calloc(count, sizeof(*filter)); in TEST() [all …]
|
D | sigsegv.c | 68 struct sock_filter filter[] = { in FIXTURE_SETUP() local 85 self->prog.filter = malloc(sizeof(filter)); in FIXTURE_SETUP() 86 ASSERT_NE(NULL, self->prog.filter); in FIXTURE_SETUP() 87 memcpy(self->prog.filter, filter, sizeof(filter)); in FIXTURE_SETUP() 88 self->prog.len = (unsigned short)(sizeof(filter)/sizeof(filter[0])); in FIXTURE_SETUP() 93 if (self->prog.filter) in FIXTURE_TEARDOWN() 94 free(self->prog.filter); in FIXTURE_TEARDOWN()
|
D | resumption.c | 92 struct sock_filter filter[] = { in FIXTURE_SETUP() local 116 self->prog.filter = malloc(sizeof(filter)); in FIXTURE_SETUP() 117 ASSERT_NE(NULL, self->prog.filter); in FIXTURE_SETUP() 118 memcpy(self->prog.filter, filter, sizeof(filter)); in FIXTURE_SETUP() 119 self->prog.len = (unsigned short)(sizeof(filter)/sizeof(filter[0])); in FIXTURE_SETUP() 124 if (self->prog.filter) in FIXTURE_TEARDOWN() 125 free(self->prog.filter); in FIXTURE_TEARDOWN()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | DigitsKeyListenerTest.java | 62 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 67 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 72 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 77 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 84 Spanned filtered = (Spanned) digitsKeyListener.filter(spannableSource, in testFilter1() 91 assertNull(digitsKeyListener.filter("", 0, 0, dest, 0, dest.length())); in testFilter1() 119 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter2() 124 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter2() 129 assertEquals("-123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter2() 134 assertEquals("-123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter2() [all …]
|
/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/tests/tests/text/src/android/text/cts/ |
D | LoginFilterTest.java | 45 assertNull(loginFilter.filter(source1, 0, source1.length(), dest1, 0, dest1.length())); in testFilter() 51 assertNull(loginFilter.filter(source1, 0, source1.length(), dest2, 5, 6)); in testFilter() 57 assertNull(loginFilter.filter(source2, 0, source2.length(), in testFilter() 64 assertNull(loginFilter.filter(spannedSource, 0, spannedSource.length(), in testFilter() 71 result = loginFilter.filter(source2, 0, source2.length(), dest1, 0, dest1.length()); in testFilter() 79 result = loginFilter.filter(spannedSource, 0, spannedSource.length(), in testFilter() 87 loginFilter.filter(null, 0, source1.length(), dest1, 0, dest1.length()); in testFilter() 94 loginFilter.filter(source1, -1, source1.length() + 1, dest1, 0, dest1.length()); in testFilter() 102 loginFilter.filter(source1, source1.length(), 0, dest1, 0, dest1.length())); in testFilter() 105 loginFilter.filter(source1, 0, source1.length(), null, 2, dest1.length()); in testFilter() [all …]
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/ |
D | TestFilterTest.java | 52 assertEquals(mTestList.size(), mFilter.filter(mTestList).size()); in testFilter_empty() 60 Collection<TestIdentifier> filteredList = mFilter.filter(mTestList); in testFilter_excludeTest() 72 Collection<TestIdentifier> filteredList = mFilter.filter(mTestList); in testFilter_excludeClass() 82 Collection<TestIdentifier> filteredList = mFilter.filter(mTestList); in testFilter_includeClass() 94 Collection<TestIdentifier> filteredList = mFilter.filter(mTestList); in testFilter_includeTest() 105 Collection<TestIdentifier> filteredList = mFilter.filter(mTestList); in testFilter_includeClasses() 116 Collection<TestIdentifier> filteredList = mFilter.filter(mTestList); in testFilter_includeTests() 131 assertTrue(mFilter.filter(mTestList).isEmpty()); in testFilter_includeAndExcludeClasses() 141 assertTrue(mFilter.filter(mTestList).isEmpty()); in testFilter_includeAndExcludeTests() 151 assertTrue(mFilter.filter(mTestList).isEmpty()); in testFilter_includeTestAndExcludeClass() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleClientStartActivity.java | 66 IntentFilter filter = new IntentFilter(); in onResume() local 67 filter.addAction(BleClientService.BLE_BLUETOOTH_CONNECTED); in onResume() 68 filter.addAction(BleClientService.BLE_BLUETOOTH_DISCONNECTED); in onResume() 69 filter.addAction(BleClientService.BLE_SERVICES_DISCOVERED); in onResume() 70 filter.addAction(BleClientService.BLE_CHARACTERISTIC_READ); in onResume() 71 filter.addAction(BleClientService.BLE_CHARACTERISTIC_WRITE); in onResume() 72 filter.addAction(BleClientService.BLE_CHARACTERISTIC_CHANGED); in onResume() 73 filter.addAction(BleClientService.BLE_DESCRIPTOR_READ); in onResume() 74 filter.addAction(BleClientService.BLE_DESCRIPTOR_WRITE); in onResume() 75 filter.addAction(BleClientService.BLE_RELIABLE_WRITE_COMPLETED); in onResume() [all …]
|
D | BleServerStartActivity.java | 65 IntentFilter filter = new IntentFilter(); in onResume() local 66 filter.addAction(BleServerService.BLE_SERVICE_ADDED); in onResume() 67 filter.addAction(BleServerService.BLE_SERVER_CONNECTED); in onResume() 68 filter.addAction(BleServerService.BLE_CHARACTERISTIC_READ_REQUEST); in onResume() 69 filter.addAction(BleServerService.BLE_CHARACTERISTIC_WRITE_REQUEST); in onResume() 70 filter.addAction(BleServerService.BLE_DESCRIPTOR_READ_REQUEST); in onResume() 71 filter.addAction(BleServerService.BLE_DESCRIPTOR_WRITE_REQUEST); in onResume() 72 filter.addAction(BleServerService.BLE_EXECUTE_WRITE); in onResume() 73 filter.addAction(BleServerService.BLE_SERVER_DISCONNECTED); in onResume() 74 filter.addAction(BleServerService.BLE_OPEN_FAIL); 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()
|
D | BleAdvertiserPowerLevelActivity.java | 67 IntentFilter filter = new IntentFilter(); in onResume() local 68 filter.addAction(BleAdvertiserService.BLE_START_POWER_LEVEL); in onResume() 69 filter.addAction(BleAdvertiserService.BLE_STOP_POWER_LEVEL); in onResume() 70 filter.addAction(BleAdvertiserService.BLE_ADV_NOT_SUPPORT); in onResume() 71 registerReceiver(onBroadcast, filter); in onResume()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
D | TestPlan.java | 70 TestFilter filter = parseTestList( in startElement() local 75 mIdFilterMap.put(AbiUtils.createId(entryAbiValue, entryNameValue), filter); in startElement() local 78 mIdFilterMap.put(AbiUtils.createId(abi, entryNameValue), filter); in startElement() local 95 TestFilter filter = new TestFilter(); in parseTestList() local 101 filter.addExcludedTest(new TestIdentifier(classMethodPair[0], in parseTestList() 104 filter.addExcludedClass(testString); in parseTestList() 113 filter.addIncludedTest(new TestIdentifier(classMethodPair[0], in parseTestList() 116 filter.addIncludedClass(testString); in parseTestList() 121 return filter; in parseTestList() 191 TestFilter filter = mIdFilterMap.get(id); in addExcludedTest() local [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | IntentFilterTest.java | 77 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 …]
|
D | BroadcastReceiverTest.java | 170 IntentFilter filter = new IntentFilter(); in testOnReceive() local 171 filter.addAction(ACTION_BROADCAST_INTERNAL); in testOnReceive() 172 activity.registerReceiver(internalReceiver, filter); in testOnReceive() 269 IntentFilter filter = new IntentFilter(); in testPeekService() local 270 filter.addAction(ACTION_BROADCAST_INTERNAL); in testPeekService() 271 activity.registerReceiver(internalReceiver, filter); in testPeekService() 296 IntentFilter filter = new IntentFilter(); in testNewPhotoBroadcast_notReceived() local 297 filter.addAction(Camera.ACTION_NEW_PICTURE); in testNewPhotoBroadcast_notReceived() 298 activity.registerReceiver(internalReceiver, filter); in testNewPhotoBroadcast_notReceived() 305 IntentFilter filter = new IntentFilter(); in testNewVideoBroadcast_notReceived() local [all …]
|
/cts/tests/tests/os/jni/ |
D | android_os_cts_OSFeatures.cpp | 51 struct sock_filter filter[] = { DENY }; in test_seccomp() local 54 prog.len = sizeof(filter) / sizeof(filter[0]); in test_seccomp() 55 prog.filter = filter; in test_seccomp()
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | LifecycleTest.java | 77 IntentFilter filter = new IntentFilter(); in setUpAndRegisterReceiver() local 78 filter.addAction(action_hasResumed); in setUpAndRegisterReceiver() 79 filter.addAction(action_onPause); in setUpAndRegisterReceiver() 80 filter.addAction(action_onStop); in setUpAndRegisterReceiver() 81 filter.addAction(action_onDestroy); in setUpAndRegisterReceiver() 82 filter.addAction(Utils.ASSIST_RECEIVER_REGISTERED); in setUpAndRegisterReceiver() 83 mContext.registerReceiver(mLifecycleTestBroadcastReceiver, filter); in setUpAndRegisterReceiver()
|
D | FocusChangeTest.java | 66 IntentFilter filter = new IntentFilter(); in setUpAndRegisterReceiver() local 67 filter.addAction(Utils.GAINED_FOCUS); in setUpAndRegisterReceiver() 68 filter.addAction(Utils.LOST_FOCUS); in setUpAndRegisterReceiver() 69 filter.addAction(Utils.ASSIST_RECEIVER_REGISTERED); in setUpAndRegisterReceiver() 70 mContext.registerReceiver(mReceiver, filter); in setUpAndRegisterReceiver()
|
D | WebViewTest.java | 71 IntentFilter filter = new IntentFilter(); in setUpAndRegisterReceiver() local 72 filter.addAction(Utils.APP_3P_HASRESUMED); in setUpAndRegisterReceiver() 73 filter.addAction(Utils.ASSIST_RECEIVER_REGISTERED); in setUpAndRegisterReceiver() 74 filter.addAction(Utils.TEST_ACTIVITY_LOADED); in setUpAndRegisterReceiver() 75 mContext.registerReceiver(mReceiver, filter); in setUpAndRegisterReceiver()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | ConnectivityConstraintTest.java | 84 IntentFilter filter = new IntentFilter(); in tearDown() local 85 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); in tearDown() 86 mContext.registerReceiver(receiver, filter); in tearDown() 216 IntentFilter filter = new IntentFilter(); in connectToWiFi() local 217 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); in connectToWiFi() 218 mContext.registerReceiver(receiver, filter); in connectToWiFi() 244 IntentFilter filter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION); in disconnectWifiToConnectToMobile() local 245 mContext.registerReceiver(connectMobileReceiver, filter); in disconnectWifiToConnectToMobile() 246 mContext.registerReceiver(disconnectWifiReceiver, filter); in disconnectWifiToConnectToMobile()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PorterDuffColorFilterTest.java | 44 PorterDuffColorFilter filter = new PorterDuffColorFilter(filterColor, PorterDuff.Mode.SRC); in testPorterDuffColorFilter() local 47 p.setColorFilter(filter); in testPorterDuffColorFilter() 57 filter = new PorterDuffColorFilter(filterColor, PorterDuff.Mode.DST); in testPorterDuffColorFilter() 60 p.setColorFilter(filter); in testPorterDuffColorFilter() 67 filter = new PorterDuffColorFilter(Color.GREEN, PorterDuff.Mode.SCREEN); in testPorterDuffColorFilter() 70 p.setColorFilter(filter); in testPorterDuffColorFilter()
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | TestFilter.java | 40 public static TestFilter createFrom(String filter) { in createFrom() argument 41 if (filter.isEmpty()) { in createFrom() 44 String[] parts = filter.split(" "); in createFrom() 61 parts = filter.split(" ", index + 1); in createFrom()
|
/cts/tests/core/runner/src/com/android/cts/core/runner/support/ |
D | TestNgRunner.java | 83 public void filter(Filter filter) throws NoTestsRemainException { in filter() argument 84 mDescription = filterDescription(mDescription, filter); in filter() 145 private static Description filterDescription(Description desc, Filter filter) { in filterDescription() argument 146 if (!filter.shouldRun(desc)) { // XX: Does the filter itself do the recursion? in filterDescription() 159 Description filteredChild = filterDescription(child, filter); in filterDescription()
|