/cts/tests/tests/content/src/android/content/cts/ |
D | IntentTest.java | 52 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 …]
|
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()
|
/cts/tests/app/src/android/app/cts/ |
D | PendingIntentTest.java | 44 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 …]
|
D | LifecycleTest.java | 32 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()
|
D | LaunchTest.java | 31 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()
|
D | IntentServiceTest.java | 33 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()
|
D | ActivityGroupTest.java | 36 mIntent = mTabIntent; in testTabBasic() 41 mIntent = mTabIntent; in testTabScreen() 46 mIntent = mTabIntent; in testTabDialog()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleInsecureEncryptedClientTestActivity.java | 23 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()
|
D | BleSecureEncryptedServerTestActivity.java | 23 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()
|
D | BleInsecureServerStartActivity.java | 23 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()
|
D | BleSecureServerStartActivity.java | 23 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()
|
D | BleSecureConnectionPriorityClientTestActivity.java | 24 private Intent mIntent; field in BleSecureConnectionPriorityClientTestActivity 29 …mIntent = 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()
|
D | BleInsecureClientStartActivity.java | 24 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()
|
D | BleSecureEncryptedClientTestActivity.java | 24 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()
|
D | BleSecureClientStartActivity.java | 26 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()
|
D | BleInsecureEncryptedServerTestActivity.java | 33 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/ |
D | MainInteractionService.java | 29 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/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/app/src/android/app/cts/android/app/cts/tools/ |
D | ServiceConnectionHandler.java | 34 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/ |
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()
|
/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/src/android/assist/cts/ |
D | AssistantContentViewTest.java | 35 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/tests/assist/service/src/android/voiceinteraction/service/ |
D | MainInteractionService.java | 40 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/app/app/src/android/app/stubs/ |
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()
|