Home
last modified time | relevance | path

Searched refs:mIntent (Results 1 – 25 of 36) 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.java44 private Intent mIntent; field in PendingIntentTest
141 mIntent = new Intent(); in testGetActivity()
143 mIntent.setClass(mContext, PendingIntentStubActivity.class); in testGetActivity()
144 mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testGetActivity()
145 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity()
157 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity()
161 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity()
182 mIntent = new Intent(MockReceiver.MOCKACTION); in testGetBroadcast()
183 mIntent.setClass(mContext, MockReceiver.class); in testGetBroadcast()
184 mPendingIntent = PendingIntent.getBroadcast(mContext, 1, mIntent, 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()
DIntentServiceTest.java33 private Intent mIntent; field in IntentServiceTest
41 mIntent = new Intent(mContext, IntentServiceStub.class); in setUp()
47 mContext.stopService(mIntent); in tearDown()
88 mContext.startService(mIntent); in testIntentServiceLifeCycle()
99 mContext.bindService(mIntent, conn, Context.BIND_AUTO_CREATE); in testIntentServiceLifeCycle()
110 mContext.stopService(mIntent); in testIntentServiceLifeCycle()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
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()
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()
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()
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()
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()
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()
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()
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()
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()
DBleInsecureEncryptedServerTestActivity.java33 private Intent mIntent; field in BleInsecureEncryptedServerTestActivity
46 mIntent = new Intent(this, BleEncryptedServerService.class); in onCreate()
47 mIntent.setAction(BleEncryptedServerService.ACTION_CONNECT_WITHOUT_SECURE); in onCreate()
49 startService(mIntent); in onCreate()
72 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()
/cts/tests/tests/os/src/android/os/cts/
DProcessTest.java38 private Intent mIntent; field in ProcessTest
69 mIntent = new Intent(REMOTE_SERVICE); in setUp()
70 mIntent.setPackage(getContext().getPackageName()); in setUp()
71 getContext().startService(mIntent); in setUp()
90 if (mIntent != null) { in tearDown()
91 getContext().stopService(mIntent); in tearDown()
164 getContext().stopService(mIntent); in testKillProcess()
165 mIntent = null; in testKillProcess()
195 getContext().stopService(mIntent); in testSendSignal()
196 mIntent = null; in testSendSignal()
DActivityTestsBase.java32 protected Intent mIntent; field in ActivityTestsBase
46 mIntent = new Intent(mContext, LaunchpadActivity.class); in setUp()
92 return mIntent; in editIntent()
138 mIntent.setAction(action); in startLaunchpadActivity()
140 mIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startLaunchpadActivity()
141 mContext.startActivity(mIntent); in startLaunchpadActivity()
/cts/tests/tests/assist/service/src/android/assist/service/
DMainInteractionService.java37 private Intent mIntent; field in MainInteractionService
60 mIntent = intent; in onStartCommand()
61 mRemoteCallback = mIntent.getParcelableExtra(Utils.EXTRA_REMOTE_CALLBACK); in onStartCommand()
78 if (mIntent == null || !mReady) { in maybeStart()
80 + "has not been called yet. mIntent = " + mIntent + ", mReady = " + mReady); in maybeStart()
83 if (mIntent.getBooleanExtra(Utils.EXTRA_REGISTER_RECEIVER, false)) { in maybeStart()
97 mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in maybeStart()
99 mIntent.getParcelableExtra(Utils.EXTRA_REMOTE_CALLBACK)); in maybeStart()
122 extras.putString(Utils.TESTCASE_TYPE, mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in onReceive()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainInteractionService.java33 private Intent mIntent; field in MainInteractionService
45 mIntent = intent; in onStartCommand()
51 if (mIntent == null || !mReady) { in maybeStart()
53 + "is not called yet. mIntent = " + mIntent + ", mReady = " + mReady); in maybeStart()
55 Bundle args = mIntent.getExtras(); in maybeStart()

12