Home
last modified time | relevance | path

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

12345

/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/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverTest.java86 Intent mIntent; field in CellBroadcastReceiverTest
146 doReturn(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED).when(mIntent).getAction(); in testOnReceive_actionCarrierConfigChanged()
148 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionCarrierConfigChanged()
157 doReturn(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED).when(mIntent).getAction(); in testOnReceive_actionCarrierConfigChangedOnRebroadcast()
158 doReturn(true).when(mIntent) in testOnReceive_actionCarrierConfigChangedOnRebroadcast()
160 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionCarrierConfigChangedOnRebroadcast()
171 doReturn(Intent.ACTION_BOOT_COMPLETED).when(mIntent).getAction(); in testOnReceive_actionBootCompleted()
172 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionBootCompleted()
177 doReturn(CellBroadcastReceiver.CELLBROADCAST_START_CONFIG_ACTION).when(mIntent).getAction(); in testOnReceive_cellbroadcastStartConfigAction()
178 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/LegacyCamera/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java41 private Intent mIntent; field in VideoCaptureIntentTest
52 mIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); in setUp()
81 setActivityIntent(mIntent); in testNoExtraOutput()
98 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); in testExtraOutput()
99 setActivityIntent(mIntent); in testExtraOutput()
110 setActivityIntent(mIntent); in testRetake()
126 setActivityIntent(mIntent); in testCancel()
137 setActivityIntent(mIntent); in testRecordCancel()
153 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); in testExtraSizeLimit()
154 mIntent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, sizeLimit); in testExtraSizeLimit()
[all …]
DImageCaptureIntentTest.java40 private Intent mIntent; field in ImageCaptureIntentTest
49 mIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); in setUp()
54 setActivityIntent(mIntent); in testNoExtraOutput()
77 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file)); in testExtraOutput()
78 setActivityIntent(mIntent); in testExtraOutput()
105 setActivityIntent(mIntent); in testRetake()
124 setActivityIntent(mIntent); in testCancel()
135 setActivityIntent(mIntent); in testSnapshotCancel()
/packages/apps/Camera2/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java41 private Intent mIntent; field in VideoCaptureIntentTest
52 mIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); in setUp()
81 setActivityIntent(mIntent); in testNoExtraOutput()
98 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); in testExtraOutput()
99 setActivityIntent(mIntent); in testExtraOutput()
110 setActivityIntent(mIntent); in testCancel()
121 setActivityIntent(mIntent); in testRecordCancel()
137 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); in testExtraSizeLimit()
138 mIntent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, sizeLimit); in testExtraSizeLimit()
139 mIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0); // use low quality to speed up in testExtraSizeLimit()
[all …]
DImageCaptureIntentTest.java39 private Intent mIntent; field in ImageCaptureIntentTest
48 mIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); in setUp()
53 setActivityIntent(mIntent); in testNoExtraOutput()
76 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file)); in testExtraOutput()
77 setActivityIntent(mIntent); in testExtraOutput()
104 setActivityIntent(mIntent); in testCancel()
115 setActivityIntent(mIntent); in testSnapshotCancel()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppLauncherActivityTest.java71 Intent mIntent; field in BluetoothOppLauncherActivityTest
91 mIntent = new Intent(); in setUp()
92 mIntent.setClass(mTargetContext, BluetoothOppLauncherActivity.class); in setUp()
114 ActivityScenario.launch(mIntent); in onCreate_withNoAction_returnImmediately()
120 mIntent.setAction(Intent.ACTION_SEND); in onCreate_withActionSend_withoutMetadata_finishImmediately()
122 ActivityScenario.launch(mIntent); in onCreate_withActionSend_withoutMetadata_finishImmediately()
129 mIntent.setAction(Intent.ACTION_SEND_MULTIPLE); in onCreate_withActionSendMultiple_withoutMetadata_finishImmediately()
131 ActivityScenario.launch(mIntent); in onCreate_withActionSendMultiple_withoutMetadata_finishImmediately()
137 mIntent.setAction(Constants.ACTION_OPEN); in onCreate_withActionOpen_sendBroadcast()
138 mIntent.setData(Uri.EMPTY); in onCreate_withActionOpen_sendBroadcast()
[all …]
DBluetoothOppTransferHistoryTest.java77 Intent mIntent; field in BluetoothOppTransferHistoryTest
93 mIntent = new Intent(); in setUp()
94 mIntent.setClass(mTargetContext, BluetoothOppTransferHistory.class); in setUp()
95 mIntent.setData(dataUrl); in setUp()
159 mIntent.setAction(Constants.ACTION_OPEN_INBOUND_TRANSFER); in onCreate_withDirectionInbound_displayInboundHistory()
161 mIntent.putExtra(Constants.EXTRA_DIRECTION, BluetoothShare.DIRECTION_INBOUND); in onCreate_withDirectionInbound_displayInboundHistory()
164 ActivityScenario.launch(mIntent); in onCreate_withDirectionInbound_displayInboundHistory()
182 mIntent.setAction(Constants.ACTION_OPEN_OUTBOUND_TRANSFER); in onCreate_withDirectionOutbound_displayOutboundHistory()
184 mIntent.putExtra(Constants.EXTRA_DIRECTION, BluetoothShare.DIRECTION_OUTBOUND); in onCreate_withDirectionOutbound_displayOutboundHistory()
187 ActivityScenario.launch(mIntent); in onCreate_withDirectionOutbound_displayOutboundHistory()
[all …]
/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/events/
DDockEventsReceiverTest.java48 public Intent mIntent; field in DockEventsReceiverTest
62 when(mIntent.getAction()).thenReturn(null); in onReceive_intentWithNoAction_noOp()
64 mDockEventsReceiver.onReceive(mContext, mIntent); in onReceive_intentWithNoAction_noOp()
73 when(mIntent.getAction()).thenReturn(action); in onReceive_intentWithActionNotConvertibleToDockEvent_noOp()
75 mDockEventsReceiver.onReceive(mContext, mIntent); in onReceive_intentWithActionNotConvertibleToDockEvent_noOp()
82 when(mIntent.getAction()).thenReturn(DockEvent.LAUNCH.toString()); in onReceive_intentWithNoData_noOp()
83 when(mIntent.getParcelableExtra(eq(EXTRA_COMPONENT), eq(ComponentName.class))) in onReceive_intentWithNoData_noOp()
86 mDockEventsReceiver.onReceive(mContext, mIntent); in onReceive_intentWithNoData_noOp()
93 when(mIntent.getAction()).thenReturn(DockEvent.LAUNCH.toString()); in onReceive_intentWithDockEventAndData_callController()
95 when(mIntent.getParcelableExtra(eq(EXTRA_COMPONENT), eq(ComponentName.class))) in onReceive_intentWithDockEventAndData_callController()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/bluetooth/
DQrCodeScanModeActivityTest.java40 private Intent mIntent; field in QrCodeScanModeActivityTest
45 mIntent = new Intent(BluetoothBroadcastUtils.ACTION_BLUETOOTH_LE_AUDIO_QR_CODE_SCANNER); in setUp()
52 QrCodeScanModeActivity.class.getName(), mIntent)); in setUp()
61 mIntent = new Intent(); in handleIntent_noIntentAction_shouldFinish()
62 mActivity.handleIntent(mIntent); in handleIntent_noIntentAction_shouldFinish()
68 doNothing().when(mActivity).showQrCodeScannerFragment(mIntent); in handleIntent_hasIntentExtra_shouldShowFragment()
69 mActivity.handleIntent(mIntent); in handleIntent_hasIntentExtra_shouldShowFragment()
70 verify(mActivity).showQrCodeScannerFragment(mIntent); in handleIntent_hasIntentExtra_shouldShowFragment()
/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/services/Iwlan/test/com/google/android/iwlan/
DIwlanBroadcastReceiverTest.java171 final Intent mIntent = new Intent(ACTION_CARRIER_SIGNAL_PCO_VALUE); in onReceiveMethodWithArgs() local
172 mIntent.putExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, TEST_SUB_ID); in onReceiveMethodWithArgs()
173 mIntent.putExtra(EXTRA_APN_TYPE_INT_KEY, apnType); in onReceiveMethodWithArgs()
174 mIntent.putExtra(EXTRA_PCO_ID_KEY, pcoId); in onReceiveMethodWithArgs()
175 mIntent.putExtra(EXTRA_PCO_VALUE_KEY, pcoData); in onReceiveMethodWithArgs()
178 mBroadcastReceiver.onReceive(mMockContext, mIntent); in onReceiveMethodWithArgs()
183 final Intent mIntent = new Intent(ACTION_CARRIER_SIGNAL_PCO_VALUE); in onReceiveMethodWithArgs() local
184 mIntent.putExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, TEST_SUB_ID); in onReceiveMethodWithArgs()
185 mIntent.putExtra(EXTRA_APN_TYPE_INT_KEY, apnType); in onReceiveMethodWithArgs()
186 mIntent.putExtra(EXTRA_PCO_ID_KEY, pcoId); in onReceiveMethodWithArgs()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DNewOutgoingCallIntentBroadcaster.java76 private final Intent mIntent; field in NewOutgoingCallIntentBroadcaster
110 mIntent = intent; in NewOutgoingCallIntentBroadcaster()
177 Uri originalUri = mIntent.getData(); in onReceive()
191 mIntent.getBooleanExtra( in onReceive()
193 mIntent.getIntExtra(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, in onReceive()
220 Intent intent = mIntent; in evaluateCall()
236 mIntent.putExtra(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, in evaluateCall()
250 PhoneAccountHandle targetPhoneAccount = mIntent.getParcelableExtra( in evaluateCall()
375 getGateWayInfoFromIntent(mIntent, mIntent.getData()), in processCall()
376 mIntent.getBooleanExtra(TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE, in processCall()
[all …]
/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/inputmethod/
DSpellCheckerPreference.java46 Intent mIntent; field in SpellCheckerPreference
94 mIntent = null; in setValue()
100 mIntent = null; in setValue()
102 mIntent = new Intent(Intent.ACTION_MAIN); in setValue()
103 mIntent.setClassName(sci.getPackageName(), settingsActivity); in setValue()
120 divider.setVisibility(mIntent != null ? View.VISIBLE : View.GONE); in onBindViewHolder()
123 widgetFrame.setVisibility(mIntent != null ? View.VISIBLE : View.GONE); in onBindViewHolder()
128 settingsButton.setVisibility(mIntent != null ? View.VISIBLE : View.INVISIBLE); in onBindViewHolder()
141 final Intent intent = mIntent; in onSettingsButtonClicked()
/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/apps/Settings/tests/robotests/src/com/android/settings/wifi/dpp/
DWifiDppEnrolleeActivityTest.java52 Intent mIntent; field in WifiDppEnrolleeActivityTest
59 when(mIntent.getAction()).thenReturn(ACTION_ENROLLEE_QR_CODE_SCANNER); in setUp()
60 when(mIntent.getStringExtra(WifiDppUtils.EXTRA_WIFI_SSID)).thenReturn(WIFI_SSID); in setUp()
74 when(mIntent.getAction()).thenReturn(null); in handleIntent_noIntentAction_shouldFinish()
76 mActivity.handleIntent(mIntent); in handleIntent_noIntentAction_shouldFinish()
85 mActivity.handleIntent(mIntent); in handleIntent_notAllowedConfigWifi_shouldFinish()
95 mActivity.handleIntent(mIntent); in handleIntent_hasIntentDataAndAllowedConfigWifi_shouldShowFragment()
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()
81 mActivity.handleIntent(mIntent); in handleIntent_isGuestUser_shouldFinish()
91 mActivity.handleIntent(mIntent); in handleIntent_notGuestUser_shouldNotFinish()
/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/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/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/services/Car/car-lib/src/android/car/app/
DCarDisplayCompatContainer.java66 private Intent mIntent; field in CarDisplayCompatContainer
164 mIntent = intent; in startActivity()
190 private final Intent mIntent; field in CarDisplayCompatContainer.RemoteCarRootTaskViewCallbackImpl
199 mIntent = intent; in RemoteCarRootTaskViewCallbackImpl()
210 if (mIntent != null) { in onTaskViewCreated()
211 mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in onTaskViewCreated()
212 mContext.startActivity(mIntent); in onTaskViewCreated()
229 if (mIntent != null) { in onConnected()
230 String packageName = mIntent.getComponent().getPackageName(); in onConnected()
/packages/apps/Settings/src/com/android/settings/emergency/
DEmergencyGestureEntrypointPreferenceController.java40 Intent mIntent; field in EmergencyGestureEntrypointPreferenceController
56 mIntent = intent; in EmergencyGestureEntrypointPreferenceController()
72 if (TextUtils.equals(getPreferenceKey(), preference.getKey()) && mIntent != null) { in handlePreferenceTreeClick()
73 mIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); in handlePreferenceTreeClick()
74 mContext.startActivity(mIntent); in handlePreferenceTreeClick()
113 return !mUseCustomIntent || mIntent != null; in canHandleClicks()
/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