Home
last modified time | relevance | path

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

12345

/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverTest.java74 Intent mIntent; field in CellBroadcastReceiverTest
133 doReturn(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED).when(mIntent).getAction(); in testOnReceive_actionCarrierConfigChanged()
135 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionCarrierConfigChanged()
144 doReturn(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED).when(mIntent).getAction(); in testOnReceive_actionCarrierConfigChangedOnRebroadcast()
145 doReturn(true).when(mIntent) in testOnReceive_actionCarrierConfigChangedOnRebroadcast()
147 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionCarrierConfigChangedOnRebroadcast()
158 doReturn(Intent.ACTION_BOOT_COMPLETED).when(mIntent).getAction(); in testOnReceive_actionBootCompleted()
159 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionBootCompleted()
164 doReturn(CellBroadcastReceiver.CELLBROADCAST_START_CONFIG_ACTION).when(mIntent).getAction(); in testOnReceive_cellbroadcastStartConfigAction()
165 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_cellbroadcastStartConfigAction()
[all …]
DCellBroadcastInternalReceiverTest.java46 @Mock Intent mIntent; field in CellBroadcastInternalReceiverTest
72 doReturn(CellBroadcastReceiver.ACTION_MARK_AS_READ).when(mIntent).getAction(); in testOnReceive_actionMarkAsRead()
73 doReturn(TEST_NOTIFICATION_ID).when(mIntent).getIntExtra( in testOnReceive_actionMarkAsRead()
78 mReceiver.onReceive(mContext, mIntent); in testOnReceive_actionMarkAsRead()
80 verify(mIntent).getLongExtra(CellBroadcastReceiver.EXTRA_DELIVERY_TIME, -1); in testOnReceive_actionMarkAsRead()
87 doReturn(CellBroadcastReceiver.CELLBROADCAST_START_CONFIG_ACTION).when(mIntent).getAction(); in testOnReceive_cellbroadcastStartConfigAction()
88 mReceiver.onReceive(mContext, mIntent); in testOnReceive_cellbroadcastStartConfigAction()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
DStateTest.java39 private Intent mIntent; field in StateTest
44 mIntent = new Intent(); in setUp()
50 mIntent.putExtra(Intent.EXTRA_MIME_TYPES, MIME_TYPES); in testAcceptGivenMimeTypesInExtra()
52 mState.initAcceptMimes(mIntent, "*/*"); in testAcceptGivenMimeTypesInExtra()
59 mState.initAcceptMimes(mIntent, MIME_TYPES[0]); in testAcceptIntentTypeWithoutExtra()
95 mIntent.putExtra(Intent.EXTRA_MIME_TYPES, stringArray); in testPhotoPicking_onlyOneImageType()
97 mState.initAcceptMimes(mIntent, "*/*"); in testPhotoPicking_onlyOneImageType()
105 mIntent.putExtra(Intent.EXTRA_MIME_TYPES, MIME_TYPES); in testPhotoPicking_allImageTypes()
106 mState.initAcceptMimes(mIntent, "*/*"); in testPhotoPicking_allImageTypes()
115 mIntent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes); in testPhotoPicking_noImageType()
[all …]
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java47 private Intent mIntent; field in VideoCaptureIntentTest
58 mIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); in setUp()
87 setActivityIntent(mIntent); in testNoExtraOutput()
104 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); in testExtraOutput()
105 setActivityIntent(mIntent); in testExtraOutput()
116 setActivityIntent(mIntent); in testRetake()
132 setActivityIntent(mIntent); in testCancel()
143 setActivityIntent(mIntent); in testRecordCancel()
159 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); in testExtraSizeLimit()
160 mIntent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, sizeLimit); in testExtraSizeLimit()
[all …]
DImageCaptureIntentTest.java43 private Intent mIntent; field in ImageCaptureIntentTest
52 mIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); in setUp()
57 setActivityIntent(mIntent); in testNoExtraOutput()
80 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file)); in testExtraOutput()
81 setActivityIntent(mIntent); in testExtraOutput()
108 setActivityIntent(mIntent); in testRetake()
127 setActivityIntent(mIntent); in testCancel()
138 setActivityIntent(mIntent); in testSnapshotCancel()
/packages/apps/Camera2/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java40 private Intent mIntent; field in VideoCaptureIntentTest
51 mIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); in setUp()
80 setActivityIntent(mIntent); in testNoExtraOutput()
97 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); in testExtraOutput()
98 setActivityIntent(mIntent); in testExtraOutput()
109 setActivityIntent(mIntent); in testCancel()
120 setActivityIntent(mIntent); in testRecordCancel()
136 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); in testExtraSizeLimit()
137 mIntent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, sizeLimit); in testExtraSizeLimit()
138 mIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0); // use low quality to speed up in testExtraSizeLimit()
[all …]
DImageCaptureIntentTest.java38 private Intent mIntent; field in ImageCaptureIntentTest
47 mIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); in setUp()
52 setActivityIntent(mIntent); in testNoExtraOutput()
75 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file)); in testExtraOutput()
76 setActivityIntent(mIntent); in testExtraOutput()
103 setActivityIntent(mIntent); in testCancel()
114 setActivityIntent(mIntent); in testSnapshotCancel()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppLauncherActivityTest.java71 Intent mIntent; field in BluetoothOppLauncherActivityTest
85 mIntent = new Intent(); in setUp()
86 mIntent.setClass(mTargetContext, BluetoothOppLauncherActivity.class); in setUp()
106 mIntent); in onCreate_withNoAction_returnImmediately()
112 mIntent.setAction(Intent.ACTION_SEND); in onCreate_withActionSend_withoutMetadata_finishImmediately()
114 mIntent); in onCreate_withActionSend_withoutMetadata_finishImmediately()
121 mIntent.setAction(Intent.ACTION_SEND_MULTIPLE); in onCreate_withActionSendMultiple_withoutMetadata_finishImmediately()
123 mIntent); in onCreate_withActionSendMultiple_withoutMetadata_finishImmediately()
129 mIntent.setAction(Constants.ACTION_OPEN); in onCreate_withActionOpen_sendBroadcast()
130 mIntent.setData(Uri.EMPTY); in onCreate_withActionOpen_sendBroadcast()
[all …]
DBluetoothOppTransferHistoryTest.java75 Intent mIntent; field in BluetoothOppTransferHistoryTest
87 mIntent = new Intent(); in setUp()
88 mIntent.setClass(mTargetContext, BluetoothOppTransferHistory.class); in setUp()
89 mIntent.setData(dataUrl); in setUp()
134 mIntent.putExtra(Constants.EXTRA_SHOW_ALL_FILES, true); in onCreate_withDirectionInbound_withExtraShowAllFileIsTrue_displayLiveFolder()
135 mIntent.putExtra("direction", BluetoothShare.DIRECTION_INBOUND); in onCreate_withDirectionInbound_withExtraShowAllFileIsTrue_displayLiveFolder()
136 ActivityScenario<BluetoothOppTransferHistory> scenario = ActivityScenario.launch(mIntent); in onCreate_withDirectionInbound_withExtraShowAllFileIsTrue_displayLiveFolder()
146 mIntent.putExtra(Constants.EXTRA_SHOW_ALL_FILES, false); in onCreate_withDirectionInbound_withExtraShowAllFileIsFalse_displayInboundHistory()
147 mIntent.putExtra("direction", BluetoothShare.DIRECTION_INBOUND); in onCreate_withDirectionInbound_withExtraShowAllFileIsFalse_displayInboundHistory()
149 ActivityScenario<BluetoothOppTransferHistory> scenario = ActivityScenario.launch(mIntent); in onCreate_withDirectionInbound_withExtraShowAllFileIsFalse_displayInboundHistory()
[all …]
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DDataAction.java61 private Intent mIntent; field in DataAction
129 mIntent = phoneIntent; in DataAction()
134 mIntent = phoneIntent; in DataAction()
136 mIntent = smsIntent; in DataAction()
146 mIntent = CallUtil.getCallIntent(callUri); in DataAction()
160 mIntent = new Intent(Intent.ACTION_SENDTO, mailUri); in DataAction()
169 mIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(webAddress.toString())); in DataAction()
171 mIntent = null; in DataAction()
200 mIntent = new Intent(Intent.ACTION_SENDTO, imUri); in DataAction()
226 mIntent = StructuredPostalUtils.getViewPostalAddressIntent(postalAddress); in DataAction()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/bluetooth/
DQrCodeScanModeActivityTest.java39 private Intent mIntent; field in QrCodeScanModeActivityTest
44 mIntent = new Intent(BluetoothBroadcastUtils.ACTION_BLUETOOTH_LE_AUDIO_QR_CODE_SCANNER); in setUp()
51 QrCodeScanModeActivity.class.getName(), mIntent)); in setUp()
60 mIntent = new Intent(); in handleIntent_noIntentAction_shouldFinish()
61 mActivity.handleIntent(mIntent); in handleIntent_noIntentAction_shouldFinish()
67 doNothing().when(mActivity).showQrCodeScannerFragment(mIntent); in handleIntent_hasIntentExtra_shouldShowFragment()
68 mActivity.handleIntent(mIntent); in handleIntent_hasIntentExtra_shouldShowFragment()
69 verify(mActivity).showQrCodeScannerFragment(mIntent); in handleIntent_hasIntentExtra_shouldShowFragment()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DRetryLaunchViewModel.java135 private final Intent mIntent; field in RetryLaunchViewModel.LaunchActivityEvent
139 mIntent = requireNonNull(intent); in LaunchActivityEvent()
143 return mIntent; in getIntent()
151 return Objects.equals(mIntent.getAction(), that.mIntent.getAction()) in equals()
152 && Objects.equals(mIntent.getExtras(), that.mIntent.getExtras()); in equals()
157 return Objects.hash(mIntent.getAction(), mIntent.getExtras()); in hashCode()
163 + "mIntent=" + mIntent + '}'; in toString()
/packages/apps/Settings/src/com/android/settings/accounts/
DEmergencyInfoPreferenceController.java39 Intent mIntent; field in EmergencyInfoPreferenceController
65 if (TextUtils.equals(getPreferenceKey(), preference.getKey()) && mIntent != null) { in handlePreferenceTreeClick()
66 mIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); in handlePreferenceTreeClick()
67 mContext.startActivity(mIntent); in handlePreferenceTreeClick()
93 mIntent = new Intent(intentName).setPackage(packageName); in isEmergencyInfoSupported()
94 final List<ResolveInfo> infos = mContext.getPackageManager().queryIntentActivities(mIntent, in isEmergencyInfoSupported()
106 mIntent = new Intent(aospIntentName).setPackage(aospPackageName); in isAOSPVersionSupported()
107 final List<ResolveInfo> infos = mContext.getPackageManager().queryIntentActivities(mIntent, in isAOSPVersionSupported()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/examplestore/
DExampleStoreServiceProviderImplTest.java47 private Intent mIntent; field in ExampleStoreServiceProviderImplTest
55 mIntent = new Intent(); in setUp()
56 mIntent.setAction(EXAMPLE_STORE_ACTION).setPackage(packageName); in setUp()
57 mIntent.setData( in setUp()
69 assertTrue(mExampleStoreServiceProvider.bindService(mIntent)); in testBindService()
74 mExampleStoreServiceProvider.bindService(mIntent); in testGetExampleStoreService()
81 assertTrue(mExampleStoreServiceProvider.bindService(mIntent)); in testUnbindService()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/helper/
DLifecycleCallbackIntentReceiverTest.java48 private Intent mIntent; field in LifecycleCallbackIntentReceiverTest
60 mIntent = new Intent(TEST_INTENT_ACTION); in setUp()
87 mTarget.mReceiver.onReceive(mContext, mIntent); in receiver_register_whenActive()
96 mTarget.mReceiver.onReceive(mContext, mIntent); in receiver_register_whenActive()
99 assertThat(mConsumer.getData()).isEqualTo(mIntent); in receiver_register_whenActive()
111 mTarget.mReceiver.onReceive(mContext, mIntent); in receiver_unregister_whenInActive()
126 mTarget.mReceiver.onReceive(mContext, mIntent); in receiver_register_whenReActive()
129 assertThat(mConsumer.getData()).isEqualTo(mIntent); in receiver_register_whenReActive()
142 mTarget.mReceiver.onReceive(mContext, mIntent); in receiver_close_whenDestroy()
/packages/services/Telecomm/src/com/android/server/telecom/
DNewOutgoingCallIntentBroadcaster.java74 private final Intent mIntent; field in NewOutgoingCallIntentBroadcaster
106 mIntent = intent; in NewOutgoingCallIntentBroadcaster()
171 Uri originalUri = mIntent.getData(); in onReceive()
185 mIntent.getBooleanExtra( in onReceive()
187 mIntent.getIntExtra(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, in onReceive()
214 Intent intent = mIntent; in evaluateCall()
230 mIntent.putExtra(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, in evaluateCall()
244 PhoneAccountHandle targetPhoneAccount = mIntent.getParcelableExtra( in evaluateCall()
355 boolean speakerphoneOn = mIntent.getBooleanExtra( in processCall()
357 int videoState = mIntent.getIntExtra( in processCall()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/dpp/
DWifiDppConfiguratorActivityTest.java55 Intent mIntent; field in WifiDppConfiguratorActivityTest
62 mIntent = new Intent(WifiDppConfiguratorActivity.ACTION_CONFIGURATOR_QR_CODE_SCANNER); in setUp()
63 mIntent.putExtra(WifiDppUtils.EXTRA_WIFI_SSID, "GoogleGuest"); in setUp()
64 mIntent.putExtra(WifiDppUtils.EXTRA_WIFI_SECURITY, "WPA"); in setUp()
65 mIntent.putExtra(WifiDppUtils.EXTRA_WIFI_PRE_SHARED_KEY, "\\012345678,"); in setUp()
82 mActivity.handleIntent(mIntent); in handleIntent_isGuestUser_shouldFinish()
92 mActivity.handleIntent(mIntent); in handleIntent_notGuestUser_shouldNotFinish()
DWifiDppEnrolleeActivityTest.java51 Intent mIntent; field in WifiDppEnrolleeActivityTest
58 when(mIntent.getAction()).thenReturn(ACTION_ENROLLEE_QR_CODE_SCANNER); in setUp()
59 when(mIntent.getStringExtra(WifiDppUtils.EXTRA_WIFI_SSID)).thenReturn(WIFI_SSID); in setUp()
75 when(mIntent.getAction()).thenReturn(null); in handleIntent_noIntentAction_shouldFinish()
77 mActivity.handleIntent(mIntent); in handleIntent_noIntentAction_shouldFinish()
87 mActivity.handleIntent(mIntent); in handleIntent_notAllowedConfigWifi_shouldFinish()
98 mActivity.handleIntent(mIntent); in handleIntent_hasIntentDataAndAllowedConfigWifi_shouldShowFragment()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/
DResultHandlingServiceProviderImplTest.java48 private Intent mIntent; field in ResultHandlingServiceProviderImplTest
57 mIntent = new Intent(); in setUp()
58 mIntent.setAction(RESULT_HANDLING_SERVICE_ACTION).setPackage(packageName); in setUp()
59 mIntent.setData(new Uri.Builder().scheme("app").authority(packageName).build()); in setUp()
70 assertTrue(mResultHandlingServiceProvider.bindService(mIntent)); in testBindService()
83 mResultHandlingServiceProvider.bindService(mIntent); in testGetResultHandlingService()
90 assertTrue(mResultHandlingServiceProvider.bindService(mIntent)); in testUnbindService()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/
DMoreSpecialAccessPreferenceController.java31 private final Intent mIntent; field in MoreSpecialAccessPreferenceController
43 mIntent = resolveInfo != null ? intent : null; in MoreSpecialAccessPreferenceController()
45 mIntent = null; in MoreSpecialAccessPreferenceController()
51 return mIntent != null ? AVAILABLE_UNSEARCHABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
57 if (mIntent != null) { in handlePreferenceTreeClick()
58 mContext.startActivity(mIntent); in handlePreferenceTreeClick()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivityControllerTest.java281 private Intent mIntent; field in PreProvisioningActivityControllerTest
390 mController.initiateProvisioning(mIntent, TEST_MDM_PACKAGE)); in testManagedProfile()
412 mController.initiateProvisioning(mIntent, TEST_MDM_PACKAGE)); in testManagedProfile_hasRoleHolderUpdaterInstalled_startsRoleHolderUpdater()
429 mController.initiateProvisioning(mIntent, TEST_MDM_PACKAGE); in testManagedProfile_hasRoleHolderValidAndInstalled_updaterNotInstalled_startsRoleHolder()
453 mController.initiateProvisioning(mIntent, TEST_MDM_PACKAGE); in testTrustedSource_roleHolderDownloadExtra_downloadsRoleHolder()
476 mController.initiateProvisioning(mIntent, TEST_MDM_PACKAGE); in testManagedProfile_roleHolderDownloadExtraAndAllowOffline_startsPlatformProvidedProvisioning()
500 mController.initiateProvisioning(mIntent, TEST_MDM_PACKAGE); in testManagedProfile_noRoleHolderAndRoleHolderDownloadExtra_failsProvisioning()
520 mController.initiateProvisioning(mIntent, TEST_MDM_PACKAGE); in testManagedProfile_hasRoleHolderValidAndInstalled_updaterNotDefined_startsRoleHolder()
541 mController.initiateProvisioning(mIntent, TEST_MDM_PACKAGE); in testManagedProfile_roleHolderStarted_startedWithoutState()
545 mIntent, ADDITIONAL_EXTRAS_DEFAULT, TEST_CALLING_PACKAGE); in testManagedProfile_roleHolderStarted_startedWithoutState()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DMoreSpecialAccessPreferenceController.java39 private final Intent mIntent; field in MoreSpecialAccessPreferenceController
58 mIntent = (resolveInfo != null) ? intent : null; in MoreSpecialAccessPreferenceController()
60 mIntent = null; in MoreSpecialAccessPreferenceController()
71 return (mIntent != null) ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getDefaultAvailabilityStatus()
76 if (mIntent != null) { in handlePreferenceClicked()
77 getContext().startActivity(mIntent); in handlePreferenceClicked()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DSpellCheckerPreference.java44 private Intent mIntent; field in SpellCheckerPreference
86 mIntent = null; in setValue()
92 mIntent = null; in setValue()
94 mIntent = new Intent(Intent.ACTION_MAIN); in setValue()
95 mIntent.setClassName(sci.getPackageName(), settingsActivity); in setValue()
109 settingsButton.setVisibility(mIntent != null ? View.VISIBLE : View.INVISIBLE); in onBindViewHolder()
121 final Intent intent = mIntent; in onSettingsButtonClicked()
/packages/services/Telephony/tests/src/com/android/phone/euicc/
DEuiccUiDispatcherActivityTest.java54 private Intent mIntent = MANAGE_INTENT; field in EuiccUiDispatcherActivityTest
80 mIntent = new Intent(); in testResolveEuiccUiIntent_nullAction()
86 mIntent = new Intent("fake.action"); in testResolveEuiccUiIntent_unsupportedAction()
108 mIntent.putExtra("foo", "bar"); in testExtrasPropagated()
117 mIntent = new Intent(EuiccManager.ACTION_TRANSFER_EMBEDDED_SUBSCRIPTIONS); in testTransferEmbeddedSubscriptionsAction()
126 mIntent = new Intent(EuiccManager.ACTION_CONVERT_TO_EMBEDDED_SUBSCRIPTION); in testConvertToEmbeddedSubscriptionAction()
140 return mIntent; in getIntent()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DWorkPolicyInfoPreferenceController.java54 private Intent mIntent; field in WorkPolicyInfoPreferenceController
80 if (mIntent == null || mAdminName == null) return; in updateState()
82 preference.setIntent(mIntent); in updateState()
96 return (mIntent == null || mAdminName == null) ? DISABLED_FOR_PROFILE : AVAILABLE; in getDefaultAvailabilityStatus()
108 mIntent = new Intent(Settings.ACTION_SHOW_WORK_POLICY_INFO) in updateState()
112 List<ResolveInfo> activities = mPm.queryIntentActivities(mIntent, /* flags= */ 0); in updateState()
133 mIntent = null; in resetState()

12345