Home
last modified time | relevance | path

Searched refs:mIntent (Results 1 – 25 of 50) sorted by relevance

12

/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java53 private Intent mIntent; field in IntentTest
74 mIntent = new Intent(); in setUp()
82 mIntent = new Intent(); in testConstructor()
83 assertNotNull(mIntent); in testConstructor()
88 mIntent = new Intent(intent); in testConstructor()
89 assertNotNull(mIntent); in testConstructor()
90 assertEquals(TEST_ACTION, mIntent.getAction()); in testConstructor()
92 mIntent = new Intent(TEST_ACTION); in testConstructor()
93 assertNotNull(mIntent); in testConstructor()
94 assertEquals(TEST_ACTION, mIntent.getAction()); in testConstructor()
[all …]
DIntent_FilterComparisonTest.java26 Intent mIntent; field in Intent_FilterComparisonTest
32 mIntent = new Intent(); in setUp()
38 mFilterComparison = new Intent.FilterComparison(mIntent); in testConstructor()
44 mFilterComparison = new Intent.FilterComparison(mIntent); in testHashCode()
46 assertEquals(mIntent.filterHashCode(), mFilterComparison.hashCode()); in testHashCode()
50 mFilterComparison = new Intent.FilterComparison(mIntent); in testEquals()
52 FilterComparison target = new Intent.FilterComparison(mIntent); in testEquals()
60 mFilterComparison = new Intent.FilterComparison(mIntent); in testGetIntent()
62 assertTrue(mFilterComparison.getIntent().equals(mIntent)); in testGetIntent()
/cts/tests/app/src/android/app/cts/
DPendingIntentTest.java48 private Intent mIntent; field in PendingIntentTest
145 mIntent = new Intent(); in testGetActivity()
147 mIntent.setClass(mContext, PendingIntentStubActivity.class); in testGetActivity()
148 mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testGetActivity()
149 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity()
161 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity()
165 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity()
171 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity()
193 mIntent = new Intent(MockReceiver.MOCKACTION); in testGetBroadcast()
194 mIntent.setClass(mContext, MockReceiver.class); in testGetBroadcast()
[all …]
DLifecycleTest.java32 mTopIntent = mIntent; in setUp()
38 mIntent = mTabIntent; in testTabDialog()
43 mIntent = mTopIntent; in testDialog()
48 mIntent = mTabIntent; in testTabScreen()
53 mIntent = mTopIntent; in testScreen()
58 mIntent = mTabIntent; in testTabBasic()
63 mIntent = mTopIntent; in testBasic()
DLaunchTest.java31 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopWhilResumed()
32 mIntent.putExtra(ClearTop.WAIT_CLEAR_TASK, true); in testClearTopWhilResumed()
37 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopInCreate()
46 mIntent.putExtra("component", new ComponentName(getContext(), LocalScreen.class)); in testLocalScreen()
51 mIntent.putExtra("component", new ComponentName(getContext(), TestedScreen.class)); in testColdScreen()
56 mIntent.putExtra("component", new ComponentName(getContext(), LocalActivity.class)); in testLocalActivity()
61 mIntent.putExtra("component", new ComponentName(getContext(), TestedActivity.class)); in testColdActivity()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/broadcastreceivers/
DBroadcastReceivedEvent.java50 IntentQueryHelper<BroadcastReceivedEventQuery> mIntent = new IntentQueryHelper<>(this); field in BroadcastReceivedEvent.BroadcastReceivedEventQuery
61 return mIntent; in whereIntent()
72 if (!mIntent.matches(event.mIntent)) { in filter()
94 mEvent.mIntent = new SerializableParcelWrapper<>(intent); in BroadcastReceivedEventLogger()
121 mEvent.mIntent = new SerializableParcelWrapper<>(intent); in setIntent()
126 protected SerializableParcelWrapper<Intent> mIntent; field in BroadcastReceivedEvent
133 if (mIntent == null) { in intent()
136 return mIntent.get(); in intent()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/deviceadminreceivers/
DDeviceAdminDisabledEvent.java49 IntentQueryHelper<DeviceAdminDisabledEventQuery> mIntent = new IntentQueryHelper<>(this); field in DeviceAdminDisabledEvent.DeviceAdminDisabledEventQuery
60 return mIntent; in whereIntent()
71 if (!mIntent.matches(event.mIntent)) { in filter()
93 mEvent.mIntent = new SerializableParcelWrapper<>(intent); in DeviceAdminDisabledEventLogger()
120 mEvent.mIntent = new SerializableParcelWrapper<>(intent); in setIntent()
125 protected SerializableParcelWrapper<Intent> mIntent; field in DeviceAdminDisabledEvent
132 if (mIntent == null) { in intent()
135 return mIntent.get(); in intent()
DDeviceAdminEnabledEvent.java49 IntentQueryHelper<DeviceAdminEnabledEventQuery> mIntent = new IntentQueryHelper<>(this); field in DeviceAdminEnabledEvent.DeviceAdminEnabledEventQuery
60 return mIntent; in whereIntent()
71 if (!mIntent.matches(event.mIntent)) { in filter()
93 mEvent.mIntent = new SerializableParcelWrapper<>(intent); in DeviceAdminEnabledEventLogger()
120 mEvent.mIntent = new SerializableParcelWrapper<>(intent); in setIntent()
125 protected SerializableParcelWrapper<Intent> mIntent; field in DeviceAdminEnabledEvent
132 if (mIntent == null) { in intent()
135 return mIntent.get(); in intent()
DDeviceAdminDisableRequestedEvent.java50 IntentQueryHelper<DeviceAdminDisableRequestedEventQuery> mIntent = field in DeviceAdminDisableRequestedEvent.DeviceAdminDisableRequestedEventQuery
63 return mIntent; in whereIntent()
75 if (!mIntent.matches(event.mIntent)) { in filter()
97 mEvent.mIntent = new SerializableParcelWrapper<>(intent); in DeviceAdminDisableRequestedEventLogger()
124 mEvent.mIntent = new SerializableParcelWrapper<>(intent); in setIntent()
129 protected SerializableParcelWrapper<Intent> mIntent; field in DeviceAdminDisableRequestedEvent
137 if (mIntent == null) { in intent()
140 return mIntent.get(); in intent()
DDeviceAdminSystemUpdatePendingEvent.java51 IntentQueryHelper<DeviceAdminSystemUpdatePendingEventQuery> mIntent = field in DeviceAdminSystemUpdatePendingEvent.DeviceAdminSystemUpdatePendingEventQuery
66 return mIntent; in whereIntent()
87 if (!mIntent.matches(event.mIntent)) { in filter()
119 mEvent.mIntent = new SerializableParcelWrapper<>(intent); in DeviceAdminSystemUpdatePendingEventLogger()
147 mEvent.mIntent = new SerializableParcelWrapper<>(intent); in setIntent()
158 protected SerializableParcelWrapper<Intent> mIntent; field in DeviceAdminSystemUpdatePendingEvent
167 if (mIntent == null) { in intent()
170 return mIntent.get(); in intent()
DDeviceAdminPasswordChangedEvent.java54 IntentQueryHelper<DeviceAdminPasswordChangedEventQuery> mIntent = field in DeviceAdminPasswordChangedEvent.DeviceAdminPasswordChangedEventQuery
69 return mIntent; in whereIntent()
89 if (!mIntent.matches(event.mIntent)) { in filter()
114 mEvent.mIntent = new SerializableParcelWrapper<>(intent); in DeviceAdminPasswordChangedEventLogger()
141 mEvent.mIntent = new SerializableParcelWrapper<>(intent); in setIntent()
152 protected SerializableParcelWrapper<Intent> mIntent; field in DeviceAdminPasswordChangedEvent
161 if (mIntent == null) { in intent()
164 return mIntent.get(); in intent()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleCocInsecureServerStartActivity.java23 private Intent mIntent; field in BleCocInsecureServerStartActivity
28 mIntent = new Intent(this, BleCocServerService.class); in onCreate()
29 mIntent.setAction(BleCocServerService.BLE_ACTION_COC_SERVER_INSECURE); in onCreate()
30 startService(mIntent); in onCreate()
36 stopService(mIntent); in onDestroy()
DBleCocSecureServerStartActivity.java23 private Intent mIntent; field in BleCocSecureServerStartActivity
28 mIntent = new Intent(this, BleCocServerService.class); in onCreate()
29 mIntent.setAction(BleCocServerService.BLE_ACTION_COC_SERVER_SECURE); in onCreate()
30 startService(mIntent); in onCreate()
36 stopService(mIntent); in onDestroy()
DBleInsecureEncryptedClientTestActivity.java23 private Intent mIntent; field in BleInsecureEncryptedClientTestActivity
28 mIntent = new Intent(this, BleEncryptedClientService.class); in onCreate()
29 mIntent.setAction(BleEncryptedClientService.ACTION_CONNECT_WITHOUT_SECURE); in onCreate()
30 startService(mIntent); in onCreate()
36 stopService(mIntent); in onDestroy()
DBleSecureServerStartActivity.java23 private Intent mIntent; field in BleSecureServerStartActivity
28 mIntent = new Intent(this, BleServerService.class); in onCreate()
29 mIntent.setAction(BleServerService.BLE_ACTION_SERVER_SECURE); in onCreate()
30 startService(mIntent); in onCreate()
36 stopService(mIntent); in onDestroy()
DBleInsecureServerStartActivity.java23 private Intent mIntent; field in BleInsecureServerStartActivity
28 mIntent = new Intent(this, BleServerService.class); in onCreate()
29 mIntent.setAction(BleServerService.BLE_ACTION_SERVER_NON_SECURE); in onCreate()
30 startService(mIntent); in onCreate()
36 stopService(mIntent); in onDestroy()
DBleSecureEncryptedServerTestActivity.java23 private Intent mIntent; field in BleSecureEncryptedServerTestActivity
28 mIntent = new Intent(this, BleEncryptedServerService.class); in onCreate()
29 mIntent.setAction(BleEncryptedServerService.ACTION_CONNECT_WITH_SECURE); in onCreate()
30 startService(mIntent); in onCreate()
36 stopService(mIntent); in onDestroy()
DBleCocInsecureClientStartActivity.java24 private Intent mIntent; field in BleCocInsecureClientStartActivity
33 mIntent = new Intent(this, BleCocClientService.class); in onCreate()
34 mIntent.setAction(BleCocClientService.BLE_COC_CLIENT_ACTION_LE_INSECURE_CONNECT); in onCreate()
36 startService(mIntent); in onCreate()
42 stopService(mIntent); in onDestroy()
DBleCocSecureClientStartActivity.java24 private Intent mIntent; field in BleCocSecureClientStartActivity
33 mIntent = new Intent(this, BleCocClientService.class); in onCreate()
34 mIntent.setAction(BleCocClientService.BLE_COC_CLIENT_ACTION_LE_SECURE_CONNECT); in onCreate()
36 startService(mIntent); in onCreate()
42 stopService(mIntent); in onDestroy()
DBleInsecureClientStartActivity.java24 private Intent mIntent; field in BleInsecureClientStartActivity
33 mIntent = new Intent(this, BleClientService.class); in onCreate()
34 mIntent.setAction(BleClientService.BLE_CLIENT_ACTION_CLIENT_CONNECT); in onCreate()
36 startService(mIntent); in onCreate()
42 stopService(mIntent); in onDestroy()
DBleSecureConnectionPriorityClientTestActivity.java24 private Intent mIntent; field in BleSecureConnectionPriorityClientTestActivity
29mIntent = new Intent(BleSecureConnectionPriorityClientTestActivity.this, BleConnectionPriorityClie… in onCreate()
30 mIntent.setAction(BleConnectionPriorityClientService.ACTION_CLIENT_CONNECT_SECURE); in onCreate()
31 startService(mIntent); in onCreate()
37 stopService(mIntent); in onDestroy()
DBleSecureEncryptedClientTestActivity.java24 private Intent mIntent; field in BleSecureEncryptedClientTestActivity
29 mIntent = new Intent(this, BleEncryptedClientService.class); in onCreate()
30 mIntent.setAction(BleEncryptedClientService.ACTION_CONNECT_WITH_SECURE); in onCreate()
31 startService(mIntent); in onCreate()
37 stopService(mIntent); in onDestroy()
DBleSecureClientStartActivity.java26 private Intent mIntent; field in BleSecureClientStartActivity
34 mIntent = new Intent(this, BleClientService.class); in onCreate()
35 mIntent.setAction(BleClientService.BLE_CLIENT_ACTION_CLIENT_CONNECT_SECURE); in onCreate()
37 startService(mIntent); in onCreate()
43 stopService(mIntent); in onDestroy()
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/
DMainInteractionService.java29 private Intent mIntent; field in MainInteractionService
40 mIntent = intent; in onStartCommand()
42 mIntent.getStringExtra(BroadcastUtils.TESTCASE_TYPE)); in onStartCommand()
48 if (mIntent == null || !mReady) { in maybeStart()
50 + "is not called yet. mIntent = " + mIntent + ", mReady = " + mReady); in maybeStart()
56 mIntent.getStringExtra(BroadcastUtils.TESTCASE_TYPE)); in maybeStart()
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DServiceConnectionHandler.java34 final Intent mIntent; field in ServiceConnectionHandler
56 mIntent = intent; in ServiceConnectionHandler()
65 if (!mContext.bindService(mIntent, this, Context.BIND_WAIVE_PRIORITY in startMonitoring()
67 throw new IllegalStateException("Failed to bind " + mIntent); in startMonitoring()
85 throw new IllegalStateException("Timed out binding to " + mIntent); in waitForConnect()
110 throw new IllegalStateException("Timed out unbinding from " + mIntent); in waitForDisconnect()
151 if (!mContext.bindService(mIntent, mMainBinding, Context.BIND_AUTO_CREATE)) { in bind()
152 throw new IllegalStateException("Failed to bind " + mIntent); in bind()
219 mContext.bindService(mIntent, this, Context.BIND_WAIVE_PRIORITY); in onBindingDied()

12