/cts/tests/tests/content/src/android/content/cts/ |
D | IntentTest.java | 50 private Intent mIntent; field in IntentTest 69 mIntent = new Intent(); in setUp() 77 mIntent = new Intent(); in testConstructor() 78 assertNotNull(mIntent); in testConstructor() 83 mIntent = new Intent(intent); in testConstructor() 84 assertNotNull(mIntent); in testConstructor() 85 assertEquals(TEST_ACTION, mIntent.getAction()); in testConstructor() 87 mIntent = new Intent(TEST_ACTION); in testConstructor() 88 assertNotNull(mIntent); in testConstructor() 89 assertEquals(TEST_ACTION, mIntent.getAction()); in testConstructor() [all …]
|
D | Intent_FilterComparisonTest.java | 26 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()
|
D | ClipboardManagerTest.java | 133 Intent mIntent; field in ClipboardManagerTest.ExpectedClipItem 138 mIntent = intent; in ExpectedClipItem() 192 if (expectedItem.mIntent != null) { in assertClipItem()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | PendingIntentTest.java | 34 private Intent mIntent; field in PendingIntentTest 100 mIntent = new Intent(); in testGetActivity() 102 mIntent.setClass(mContext, PendingIntentStubActivity.class); in testGetActivity() 103 mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testGetActivity() 104 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity() 116 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity() 120 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, in testGetActivity() 141 mIntent = new Intent(MockReceiver.MOCKACTION); in testGetBroadcast() 142 mIntent.setClass(mContext, MockReceiver.class); in testGetBroadcast() 143 mPendingIntent = PendingIntent.getBroadcast(mContext, 1, mIntent, in testGetBroadcast() [all …]
|
D | LifecycleTest.java | 52 mTopIntent = mIntent; in setUp() 58 mIntent = mTabIntent; in testTabDialog() 63 mIntent = mTopIntent; in testDialog() 68 mIntent = mTabIntent; in testTabScreen() 73 mIntent = mTopIntent; in testScreen() 78 mIntent = mTabIntent; in testTabBasic() 83 mIntent = mTopIntent; in testBasic()
|
D | LaunchTest.java | 45 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopWhilResumed() 46 mIntent.putExtra(ClearTop.WAIT_CLEAR_TASK, true); in testClearTopWhilResumed() 51 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopInCreate() 60 mIntent.putExtra("component", new ComponentName(getContext(), LocalScreen.class)); in testLocalScreen() 65 mIntent.putExtra("component", new ComponentName(getContext(), TestedScreen.class)); in testColdScreen() 70 mIntent.putExtra("component", new ComponentName(getContext(), LocalActivity.class)); in testLocalActivity() 75 mIntent.putExtra("component", new ComponentName(getContext(), TestedActivity.class)); in testColdActivity()
|
D | IntentServiceTest.java | 31 private Intent mIntent; field in IntentServiceTest 39 mIntent = new Intent(mContext, IntentServiceStub.class); in setUp() 45 mContext.stopService(mIntent); in tearDown() 86 mContext.startService(mIntent); in testIntentServiceLifeCycle() 97 mContext.bindService(mIntent, conn, Context.BIND_AUTO_CREATE); in testIntentServiceLifeCycle() 108 mContext.stopService(mIntent); in testIntentServiceLifeCycle()
|
D | ActivityGroupTest.java | 36 mIntent = mTabIntent; in testTabBasic() 41 mIntent = mTabIntent; in testTabScreen() 46 mIntent = mTabIntent; in testTabDialog()
|
D | AlarmManagerTest.java | 38 private Intent mIntent; field in AlarmManagerTest 86 mIntent = new Intent(MOCKACTION) in setUp() 88 mSender = PendingIntent.getBroadcast(mContext, 0, mIntent, 0); in setUp() 89 mMockAlarmReceiver = new MockAlarmReceiver(mIntent.getAction()); in setUp() 96 IntentFilter filter = new IntentFilter(mIntent.getAction()); in setUp()
|
D | ExpandableListActivityTest.java | 27 mIntent.putExtra("component", new ComponentName(getContext(), in setUp()
|
D | ActivityManagerTest.java | 67 private Intent mIntent; field in ActivityManagerTest 85 if (mIntent != null) { in tearDown() 86 mInstrumentation.getContext().stopService(mIntent); in tearDown() 327 mIntent = new Intent("android.app.REMOTESERVICE"); in testGetRunningAppProcesses() 328 mIntent.setPackage("com.android.cts.app.stub"); in testGetRunningAppProcesses() 329 mInstrumentation.getTargetContext().startService(mIntent); in testGetRunningAppProcesses()
|
D | InstrumentationTest.java | 58 private Intent mIntent; field in InstrumentationTest 68 mIntent = new Intent(mContext, InstrumentationTestActivity.class); in setUp() 69 mIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in setUp() 70 mActivity = (InstrumentationTestActivity) mInstrumentation.startActivitySync(mIntent); in setUp() 75 mIntent = null; in tearDown()
|
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/ |
D | MainInteractionService.java | 28 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() 54 args.putString(Utils.TESTCASE_TYPE, mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in maybeStart()
|
/cts/tests/tests/alarmclock/service/src/android/alarmclock/service/ |
D | MainInteractionService.java | 28 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/os/src/android/os/cts/ |
D | ProcessTest.java | 38 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()
|
D | ActivityTestsBase.java | 32 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()
|
D | TokenWatcherTest.java | 40 private Intent mIntent; field in TokenWatcherTest 83 mIntent = new Intent(EMPTY_SERVICE); in setUp() 84 mIntent.setPackage(getContext().getPackageName()); in setUp() 85 getContext().startService(mIntent); in setUp() 107 if (mIntent != null) { in tearDown() 108 getContext().stopService(mIntent); in tearDown()
|
D | RemoteCallbackListTest.java | 36 private Intent mIntent; field in RemoteCallbackListTest 61 mIntent = new Intent(SERVICE_ACTION); in setUp() 62 mIntent.setPackage(mContext.getPackageName()); in setUp() 82 if (mIntent != null) { in tearDown() 83 mContext.stopService(mIntent); in tearDown()
|
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | MainInteractionService.java | 28 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/ |
D | MainInteractionService.java | 40 private Intent mIntent; field in MainInteractionService 54 mIntent = intent; in onStartCommand() 60 if (mIntent == null || !mReady) { in maybeStart() 62 + "has not been called yet. mIntent = " + mIntent + ", mReady = " + mReady); in maybeStart() 65 if (mIntent.getBooleanExtra(Utils.EXTRA_REGISTER_RECEIVER, false)) { in maybeStart() 84 mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in maybeStart() 125 extras.putString(Utils.TESTCASE_TYPE, mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in onReceive()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityTestsBase.java | 32 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/src/android/assist/cts/ |
D | AssistantContentViewTest.java | 46 private Intent mIntent; field in AssistantContentViewTest 90 int height = mIntent.getIntExtra(Utils.EXTRA_CONTENT_VIEW_HEIGHT, 0); in testAssistantContentViewDimens() 91 int width = mIntent.getIntExtra(Utils.EXTRA_CONTENT_VIEW_WIDTH, 0); in testAssistantContentViewDimens() 92 Point displayPoint = (Point) mIntent.getParcelableExtra(Utils.EXTRA_DISPLAY_POINT); in testAssistantContentViewDimens() 102 mIntent = intent; in onReceive()
|