Home
last modified time | relevance | path

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

12

/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java52 private Intent mIntent; field in IntentTest
71 mIntent = new Intent(); in setUp()
79 mIntent = new Intent(); in testConstructor()
80 assertNotNull(mIntent); in testConstructor()
85 mIntent = new Intent(intent); in testConstructor()
86 assertNotNull(mIntent); in testConstructor()
87 assertEquals(TEST_ACTION, mIntent.getAction()); in testConstructor()
89 mIntent = new Intent(TEST_ACTION); in testConstructor()
90 assertNotNull(mIntent); in testConstructor()
91 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.java39 private Intent mIntent; field in PendingIntentTest
136 mIntent = new Intent(); in testGetActivity()
138 mIntent.setClass(mContext, PendingIntentStubActivity.class); in testGetActivity()
139 mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testGetActivity()
140 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity()
152 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity()
156 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity()
177 mIntent = new Intent(MockReceiver.MOCKACTION); in testGetBroadcast()
178 mIntent.setClass(mContext, MockReceiver.class); in testGetBroadcast()
179 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()
DActivityGroupTest.java36 mIntent = mTabIntent; in testTabBasic()
41 mIntent = mTabIntent; in testTabScreen()
46 mIntent = mTabIntent; in testTabDialog()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleInsecureClientStartActivity.java23 private Intent mIntent; field in BleInsecureClientStartActivity
28 mIntent = new Intent(this, BleClientService.class); in onCreate()
29 mIntent.setAction(BleClientService.BLE_CLIENT_ACTION_CLIENT_CONNECT); in onCreate()
31 startService(mIntent); in onCreate()
37 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()
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()
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()
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/app/src/android/app/cts/android/app/cts/tools/
DServiceConnectionHandler.java34 final Intent mIntent; field in ServiceConnectionHandler
51 mIntent = intent; in ServiceConnectionHandler()
59 if (!mContext.bindService(mIntent, this, Context.BIND_WAIVE_PRIORITY)) { in startMonitoring()
60 throw new IllegalStateException("Failed to bind " + mIntent); in startMonitoring()
74 throw new IllegalStateException("Timed out binding to " + mIntent); in waitForConnect()
95 throw new IllegalStateException("Timed out unbinding from " + mIntent); in waitForDisconnect()
124 if (!mContext.bindService(mIntent, mMainBinding, Context.BIND_AUTO_CREATE)) { in bind()
125 throw new IllegalStateException("Failed to bind " + mIntent); in bind()
184 mContext.bindService(mIntent, this, Context.BIND_WAIVE_PRIORITY); in onBindingDied()
/cts/tests/tests/alarmclock/service/src/android/alarmclock/service/
DMainInteractionService.java28 private Intent mIntent; field in MainInteractionService
40 mIntent = intent; in onStartCommand()
41 Log.i(TAG, "received_testcasetype = " + mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in onStartCommand()
47 if (mIntent == null || !mReady) { in maybeStart()
49 + "is not called yet. mIntent = " + mIntent + ", mReady = " + mReady); in maybeStart()
55 args.putString(Utils.TESTCASE_TYPE, mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in maybeStart()
/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/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/voiceinteraction/service/src/android/voiceinteraction/service/
DMainInteractionService.java28 private Intent mIntent; field in MainInteractionService
40 mIntent = intent; in onStartCommand()
46 if (mIntent == null || !mReady) { in maybeStart()
48 + "is not called yet. mIntent = " + mIntent + ", mReady = " + mReady); in maybeStart()
/cts/tests/tests/assist/service/src/android/voiceinteraction/service/
DMainInteractionService.java40 private Intent mIntent; field in MainInteractionService
61 mIntent = intent; in onStartCommand()
67 if (mIntent == null || !mReady) { in maybeStart()
69 + "has not been called yet. mIntent = " + mIntent + ", mReady = " + mReady); in maybeStart()
72 if (mIntent.getBooleanExtra(Utils.EXTRA_REGISTER_RECEIVER, false)) { in maybeStart()
91 mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in maybeStart()
132 extras.putString(Utils.TESTCASE_TYPE, mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in onReceive()
/cts/tests/tests/assist/src/android/assist/cts/
DAssistantContentViewTest.java35 private Intent mIntent; field in AssistantContentViewTest
83 int height = mIntent.getIntExtra(Utils.EXTRA_CONTENT_VIEW_HEIGHT, 0); in testAssistantContentViewDimens()
84 int width = mIntent.getIntExtra(Utils.EXTRA_CONTENT_VIEW_WIDTH, 0); in testAssistantContentViewDimens()
85 Point displayPoint = (Point) mIntent.getParcelableExtra(Utils.EXTRA_DISPLAY_POINT); in testAssistantContentViewDimens()
95 mIntent = intent; in onReceive()
/cts/tests/app/app/src/android/app/stubs/
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()

12