Home
last modified time | relevance | path

Searched refs:mReceiver (Results 1 – 25 of 37) sorted by relevance

12

/cts/tests/tests/admin/src/android/admin/cts/
DDeviceAdminReceiverTest.java38 private TestReceiver mReceiver; field in DeviceAdminReceiverTest
44 mReceiver = new TestReceiver(); in setUp()
54 mReceiver.reset(); in testOnReceive()
55 mReceiver.onReceive(mContext, new Intent(DeviceAdminReceiver.ACTION_PASSWORD_CHANGED)); in testOnReceive()
56 assertTrue(mReceiver.hasFlags(PASSWORD_CHANGED)); in testOnReceive()
58 mReceiver.reset(); in testOnReceive()
59 mReceiver.onReceive(mContext, new Intent(DeviceAdminReceiver.ACTION_PASSWORD_FAILED)); in testOnReceive()
60 assertTrue(mReceiver.hasFlags(PASSWORD_FAILED)); in testOnReceive()
62 mReceiver.reset(); in testOnReceive()
63 mReceiver.onReceive(mContext, new Intent(DeviceAdminReceiver.ACTION_PASSWORD_SUCCEEDED)); in testOnReceive()
[all …]
/cts/tests/tests/assist/src/android/assist/cts/
DAssistStructureTest.java40 private BroadcastReceiver mReceiver; field in AssistStructureTest
58 if (mReceiver != null) { in tearDown()
59 mContext.unregisterReceiver(mReceiver); in tearDown()
60 mReceiver = null; in tearDown()
65 if (mReceiver != null) { in setUpAndRegisterReceiver()
66 mContext.unregisterReceiver(mReceiver); in setUpAndRegisterReceiver()
68 mReceiver = new AssistStructureTestBroadcastReceiver(); in setUpAndRegisterReceiver()
72 mContext.registerReceiver(mReceiver, filter); in setUpAndRegisterReceiver()
DFlagSecureTest.java38 private BroadcastReceiver mReceiver; field in FlagSecureTest
55 if (mReceiver != null) { in tearDown()
56 mContext.unregisterReceiver(mReceiver); in tearDown()
57 mReceiver = null; in tearDown()
62 if (mReceiver != null) { in setUpAndRegisterReceiver()
63 mContext.unregisterReceiver(mReceiver); in setUpAndRegisterReceiver()
65 mReceiver = new FlagSecureTestBroadcastReceiver(); in setUpAndRegisterReceiver()
69 mContext.registerReceiver(mReceiver, filter); in setUpAndRegisterReceiver()
DExtraAssistDataTest.java33 private BroadcastReceiver mReceiver; field in ExtraAssistDataTest
51 if (mReceiver != null) { in tearDown()
52 mContext.unregisterReceiver(mReceiver); in tearDown()
53 mReceiver = null; in tearDown()
58 if (mReceiver != null) { in setUpAndRegisterReceiver()
59 mContext.unregisterReceiver(mReceiver); in setUpAndRegisterReceiver()
61 mReceiver = new ExtraAssistDataReceiver(); in setUpAndRegisterReceiver()
65 mContext.registerReceiver(mReceiver, filter); in setUpAndRegisterReceiver()
DAssistantContentViewTest.java44 private BroadcastReceiver mReceiver; field in AssistantContentViewTest
60 if (mReceiver != null) { in tearDown()
61 mContext.unregisterReceiver(mReceiver); in tearDown()
62 mReceiver = null; in tearDown()
67 if (mReceiver != null) { in setUpAndRegisterReceiver()
68 mContext.unregisterReceiver(mReceiver); in setUpAndRegisterReceiver()
70 mReceiver = new AssistantContentViewReceiver(); in setUpAndRegisterReceiver()
74 mContext.registerReceiver(mReceiver, filter); in setUpAndRegisterReceiver()
DAssistTestBase.java60 protected BroadcastReceiver mReceiver; field in AssistTestBase
90 if (mReceiver != null) { in setUp()
91 mContext.unregisterReceiver(mReceiver); in setUp()
93 mReceiver = new TestResultsReceiver(); in setUp()
94 mContext.registerReceiver(mReceiver, in setUp()
102 if (mReceiver != null) { in tearDown()
103 mContext.unregisterReceiver(mReceiver); in tearDown()
104 mReceiver = null; in tearDown()
174 if (mReceiver != null) { in waitForContext()
175 mContext.unregisterReceiver(mReceiver); in waitForContext()
[all …]
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DActivityTransitionTest.java36 private PassInfo mReceiver; field in ActivityTransitionTest
59 mReceiver = new PassInfo(new Handler()); in testOnSharedElementsArrived()
92 intent.putExtra(ActivityTransitionActivity.RESULT_RECEIVER, mReceiver); in testOnSharedElementsArrived()
107 assertNotNull(mReceiver.resultData); in testOnSharedElementsArrived()
108 assertEquals(2, mReceiver.resultData.getInt( in testOnSharedElementsArrived()
111 assertNotSame(View.VISIBLE, mReceiver.resultData.getInt( in testOnSharedElementsArrived()
113 assertNotSame(View.VISIBLE, mReceiver.resultData.getInt( in testOnSharedElementsArrived()
115 long enterTimeReady = mReceiver.resultData.getLong( in testOnSharedElementsArrived()
117 long returnTimeReady = mReceiver.resultData.getLong( in testOnSharedElementsArrived()
119 long enterTime = mReceiver.resultData.getLong( in testOnSharedElementsArrived()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DApplicationHiddenTest.java47 private final ApplicationHiddenReceiver mReceiver = new ApplicationHiddenReceiver(); field in ApplicationHiddenTest
52 mContext.registerReceiver(mReceiver, PACKAGE_INTENT_FILTER); in setUp()
57 mContext.unregisterReceiver(mReceiver); in tearDown()
67 mReceiver.waitForRemovedBroadcast(); in testSetApplicationHidden()
72 mReceiver.waitForAddedBroadcast(); in testSetApplicationHidden()
DScreenCaptureDisabledTest.java37 private ScreenCaptureBroadcastReceiver mReceiver = new ScreenCaptureBroadcastReceiver(); field in ScreenCaptureDisabledTest
41 mContext.registerReceiver(mReceiver, new IntentFilter( in setUp()
46 mContext.unregisterReceiver(mReceiver); in tearDown()
79 assertTrue(mReceiver.waitForBroadcast()); in startTestActivity()
DPersistentIntentResolvingTest.java30 private BroadcastReceiver mReceiver; field in PersistentIntentResolvingTest
40 mReceiver = new ConfirmReceiver(); in setUp()
41 mContext.registerReceiver(mReceiver, filter); in setUp()
53 mContext.unregisterReceiver(mReceiver); in tearDown()
DPermissionsTest.java72 private PermissionBroadcastReceiver mReceiver; field in PermissionsTest
79 mReceiver = new PermissionBroadcastReceiver(); in setUp()
80 mContext.registerReceiver(mReceiver, new IntentFilter(ACTION_PERMISSION_RESULT)); in setUp()
87 mContext.unregisterReceiver(mReceiver); in tearDown()
241 assertEquals(expected, mReceiver.waitForBroadcast()); in assertPermissionRequest()
256 assertEquals(expected, mReceiver.waitForBroadcast()); in assertPermissionGrantState()
DApplicationRestrictionsTest.java60 mContext.registerReceiver(mReceiver, filter); in setUp()
65 mContext.unregisterReceiver(mReceiver); in tearDown()
192 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in ApplicationRestrictionsTest
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DGoNegRespTestCase.java33 private WifiP2pBroadcastReceiver mReceiver; field in GoNegRespTestCase
38 mReceiver = new WifiP2pBroadcastReceiver(); in GoNegRespTestCase()
43 mContext.registerReceiver(mReceiver, mIntentFilter); in setUp()
71 mContext.unregisterReceiver(mReceiver); in tearDown()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DScreenLockTestActivity.java38 private ScreenOffReceiver mReceiver; field in ScreenLockTestActivity
66 mReceiver = new ScreenOffReceiver(); in onCreate()
69 registerReceiver(mReceiver, filter); in onCreate()
98 unregisterReceiver(mReceiver); in onDestroy()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionTest.java43 private TestResultsReceiver mReceiver; field in VoiceInteractionTest
56 mReceiver = new TestResultsReceiver(); in setUp()
57 mContext.registerReceiver(mReceiver, new IntentFilter(Utils.BROADCAST_INTENT)); in setUp()
62 mContext.unregisterReceiver(mReceiver); in tearDown()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBluetoothToggleActivity.java48 private BluetoothBroadcastReceiver mReceiver; field in BluetoothToggleActivity
64 mReceiver = new BluetoothBroadcastReceiver(); in onCreate()
66 registerReceiver(mReceiver, filter); in onCreate()
154 unregisterReceiver(mReceiver); in onDestroy()
DDevicePickerActivity.java56 private DiscoveryReceiver mReceiver; field in DevicePickerActivity
89 mReceiver = new DiscoveryReceiver(); in onCreate()
93 registerReceiver(mReceiver, filter); in onCreate()
148 unregisterReceiver(mReceiver); in onDestroy()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/
DResponderTestActivity.java64 private final P2pBroadcastReceiver mReceiver = new P2pBroadcastReceiver(); field in ResponderTestActivity
101 registerReceiver(mReceiver, mIntentFilter); in onResume()
108 unregisterReceiver(mReceiver); in onPause()
DP2pTestListActivity.java45 private final P2pBroadcastReceiver mReceiver = new P2pBroadcastReceiver(); field in P2pTestListActivity
114 registerReceiver(mReceiver, mIntentFilter); in onResume()
120 unregisterReceiver(mReceiver); in onPause()
/cts/tests/tests/assist/service/src/android/voiceinteraction/service/
DMainInteractionSession.java59 private BroadcastReceiver mReceiver; field in MainInteractionSession
71 mReceiver = new BroadcastReceiver() { in onCreate()
82 mContext.registerReceiver(mReceiver, filter); in onCreate()
89 if (mReceiver != null) { in onDestroy()
90 mContext.unregisterReceiver(mReceiver); in onDestroy()
/cts/tests/tests/net/src/android/net/wifi/cts/
DConcurrencyTest.java43 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in ConcurrencyTest
75 mContext.registerReceiver(mReceiver, mIntentFilter); in setUp()
95 mContext.unregisterReceiver(mReceiver); in tearDown()
DWifiInfoTest.java51 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in WifiInfoTest
75 mContext.registerReceiver(mReceiver, mIntentFilter); in setUp()
95 mContext.unregisterReceiver(mReceiver); in tearDown()
DScanResultTest.java52 private final BroadcastReceiver mReceiver = new BroadcastReceiver() { field in ScanResultTest
88 mContext.registerReceiver(mReceiver, mIntentFilter); in setUp()
108 mContext.unregisterReceiver(mReceiver); in tearDown()
/cts/tests/tests/content/src/android/content/cts/
DImageCaptureUriExtraToClipDataTest.java48 BroadcastReceiver mReceiver = new BroadcastReceiver() { in setUp() local
56 getContext().registerReceiver(mReceiver, filter); in setUp()
DReadableUriExtraToClipDataTest.java52 BroadcastReceiver mReceiver = new BroadcastReceiver() { in setUp() local
60 getContext().registerReceiver(mReceiver, filter); in setUp()

12