Home
last modified time | relevance | path

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

123

/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()
143 doReturn(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED).when(mIntent).getAction(); in testOnReceive_actionCarrierConfigChangedOnRebroadcast()
144 doReturn(true).when(mIntent) in testOnReceive_actionCarrierConfigChangedOnRebroadcast()
146 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionCarrierConfigChangedOnRebroadcast()
157 doReturn(Intent.ACTION_BOOT_COMPLETED).when(mIntent).getAction(); in testOnReceive_actionBootCompleted()
158 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionBootCompleted()
163 doReturn(CellBroadcastReceiver.CELLBROADCAST_START_CONFIG_ACTION).when(mIntent).getAction(); in testOnReceive_cellbroadcastStartConfigAction()
164 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_cellbroadcastStartConfigAction()
[all …]
/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/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/Telecomm/src/com/android/server/telecom/
DNewOutgoingCallIntentBroadcaster.java76 private final Intent mIntent; field in NewOutgoingCallIntentBroadcaster
107 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()
335 boolean speakerphoneOn = mIntent.getBooleanExtra( in processCall()
337 int videoState = mIntent.getIntExtra( in processCall()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivityControllerTest.java145 private Intent mIntent; field in PreProvisioningActivityControllerTest
233 mController.initiateProvisioning(mIntent, TEST_MDM_PACKAGE)); in testManagedProfile()
252 mController.initiateProvisioning(mIntent, TEST_MDM_PACKAGE); in testManagedProfile_provisioningNotAllowed()
263 mController.initiateProvisioning(mIntent, null); in testManagedProfile_nullCallingPackage()
274 mController.initiateProvisioning(mIntent, "com.android.invalid.dpc"); in testManagedProfile_invalidCallingPackage()
287 mController.initiateProvisioning(mIntent, TEST_MDM_PACKAGE)); in testManagedProfile_withEncryption()
303 mController.initiateProvisioning(mIntent, MP_PACKAGE_NAME)); in testManagedProfile_afterEncryption()
321 mController.initiateProvisioning(mIntent, TEST_MDM_PACKAGE)); in testManagedProfile_badLauncher()
336 mController.initiateProvisioning(mIntent, TEST_BOGUS_PACKAGE); in testManagedProfile_wrongPackage()
350 mController.initiateProvisioning(mIntent, TEST_MDM_PACKAGE); in testManagedProfile_frp()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DWorkPolicyInfoPreferenceController.java52 private Intent mIntent; field in WorkPolicyInfoPreferenceController
75 if (mIntent != null) { in updateState()
76 preference.setIntent(mIntent); in updateState()
86 return mIntent == null ? DISABLED_FOR_PROFILE : AVAILABLE; in getAvailabilityStatus()
90 mIntent = null; in updateIntent()
98 mIntent = new Intent(Settings.ACTION_SHOW_WORK_POLICY_INFO) in updateIntent()
102 List<ResolveInfo> activities = mPm.queryIntentActivities(mIntent, /* flags= */ 0); in updateIntent()
106 mIntent = null; in updateIntent()
/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/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/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/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DMoreSpecialAccessPreferenceController.java38 private final Intent mIntent; field in MoreSpecialAccessPreferenceController
50 mIntent = (resolveInfo != null) ? intent : null; in MoreSpecialAccessPreferenceController()
52 mIntent = null; in MoreSpecialAccessPreferenceController()
63 return (mIntent != null) ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
68 if (mIntent != null) { in handlePreferenceClicked()
69 getContext().startActivity(mIntent); in handlePreferenceClicked()
/packages/apps/Settings/src/com/android/settings/emergency/
DEmergencyGestureEntrypointPreferenceController.java43 Intent mIntent; field in EmergencyGestureEntrypointPreferenceController
57 mIntent = intent; in EmergencyGestureEntrypointPreferenceController()
73 if (TextUtils.equals(getPreferenceKey(), preference.getKey()) && mIntent != null) { in handlePreferenceTreeClick()
74 mIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); in handlePreferenceTreeClick()
75 mContext.startActivity(mIntent); in handlePreferenceTreeClick()
127 return !mUseCustomIntent || mIntent != null; in canHandleClicks()
DMoreSettingsPreferenceController.java60 Intent mIntent; field in MoreSettingsPreferenceController
71 mIntent = new Intent(Intent.ACTION_MAIN) in MoreSettingsPreferenceController()
75 .queryIntentActivities(mIntent, MATCH_SYSTEM_ONLY); in MoreSettingsPreferenceController()
78 mIntent.setClassName(packageName, info.get(0).activityInfo.name); in MoreSettingsPreferenceController()
80 mIntent = null; in MoreSettingsPreferenceController()
105 if (mIntent == null) { in getAvailabilityStatus()
116 final Intent intent = new Intent(mIntent) in onClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DVolumeSliceHelperTest.java62 private Intent mIntent; field in VolumeSliceHelperTest
75 mIntent = createIntent(AudioManager.VOLUME_CHANGED_ACTION) in setUp()
156 VolumeSliceHelper.onReceive(mContext, mIntent); in onReceive_audioStreamRegistered_shouldNotifyChange()
163 VolumeSliceHelper.onReceive(mContext, mIntent); in onReceive_audioStreamNotRegistered_shouldNotNotifyChange()
171 mIntent.putExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, AudioManager.STREAM_DTMF); in onReceive_audioStreamNotMatched_shouldNotNotifyChange()
173 VolumeSliceHelper.onReceive(mContext, mIntent); in onReceive_audioStreamNotMatched_shouldNotNotifyChange()
180 mIntent.putExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, 1) in onReceive_mediaVolumeNotChanged_shouldNotNotifyChange()
184 VolumeSliceHelper.onReceive(mContext, mIntent); in onReceive_mediaVolumeNotChanged_shouldNotNotifyChange()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiDialogActivity.java106 private Intent mIntent; field in WifiDialogActivity
112 mIntent = getIntent(); in onCreate()
113 if (WizardManagerHelper.isSetupWizardIntent(mIntent)) { in onCreate()
114 setTheme(SetupWizardUtils.getTransparentTheme(this, mIntent)); in onCreate()
119 mIsWifiTrackerLib = !TextUtils.isEmpty(mIntent.getStringExtra(KEY_CHOSEN_WIFIENTRY_KEY)); in onCreate()
142 mIntent.getStringExtra(KEY_CHOSEN_WIFIENTRY_KEY)); in onCreate()
144 final Bundle accessPointState = mIntent.getBundleExtra(KEY_ACCESS_POINT_STATE); in onCreate()
324 WizardManagerHelper.copyWizardManagerExtras(mIntent, intent); in onScan()
333 WizardManagerHelper.copyWizardManagerExtras(mIntent, intent); in onScan()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenRulePreference.java55 private Intent mIntent; field in ZenRulePreference
81 if (mIntent != null) { in getSecondTargetResId()
92 if (mIntent != null) { in onBindViewHolder()
98 mContext.startActivity(mIntent); in onBindViewHolder()
172 mIntent = AbstractZenModeAutomaticRulePreferenceController.getRuleIntent(action, in setAttributes()
174 if (mIntent.resolveActivity(mPm) == null) { in setAttributes()
175 mIntent = null; in setAttributes()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
DResultPayload.java33 protected final Intent mIntent; field in ResultPayload
128 mIntent = in.readParcelable(ResultPayload.class.getClassLoader()); in ResultPayload()
132 mIntent = intent; in ResultPayload()
147 dest.writeParcelable(mIntent, flags); in writeToParcel()
163 return mIntent; in getIntent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/
DPreferredSimDialogFragmentTest.java63 mIntent.putExtra(PREFERRED_SIM, 0); in onCreateDialog_noSims_dismissed()
71 mIntent.putExtra(PREFERRED_SIM, 1); in onCreateDialog_oneSimWrongSlotArgument_dismissed()
80 mIntent.putExtra(PREFERRED_SIM, 0); in onCreateDialog_twoSimsSelectFirst_correctMessage()
93 mIntent.putExtra(PREFERRED_SIM, 1); in onCreateDialog_twoSimsSelectSecond_correctMessage()
105 mIntent.putExtra(PREFERRED_SIM, 0); in onClick_yesClicked_callsOnSubscriptionSelected()
120 mIntent.putExtra(PREFERRED_SIM, 0); in onClick_noClicked_doesNotCallOnSubscriptionSelected()
/packages/apps/DeskClock/src/com/android/deskclock/
DFetchMatchingAlarmsAction.kt44 private val mIntent: Intent, constant in com.android.deskclock.FetchMatchingAlarmsAction
52 val searchMode = mIntent.getStringExtra(AlarmClock.EXTRA_ALARM_SEARCH_MODE) in run()
63 val hour = mIntent.getIntExtra(AlarmClock.EXTRA_HOUR, -1) in run()
65 val minutes = mIntent.getIntExtra(AlarmClock.EXTRA_MINUTES, 0) in run()
66 val isPm = mIntent.extras!![AlarmClock.EXTRA_IS_PM] as Boolean? in run()
123 val label = mIntent.getStringExtra(AlarmClock.EXTRA_MESSAGE) in run()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DAction.java45 private final Intent mIntent; field in Action
67 private Intent mIntent; field in Action.Builder
88 mIntent, in build()
109 mIntent = intent; in intent()
166 mIntent = intent; in Action()
226 return mIntent; in getIntent()
347 dest.writeParcelable(mIntent, flags); in writeToParcel()
/packages/services/Iwlan/test/com/google/android/iwlan/
DIwlanBroadcastReceiverTest.java172 final Intent mIntent = new Intent(ACTION_CARRIER_SIGNAL_PCO_VALUE); in onReceiveMethodWithArgs() local
173 mIntent.putExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, testSubId); in onReceiveMethodWithArgs()
174 mIntent.putExtra(EXTRA_APN_TYPE_INT_KEY, apnType); in onReceiveMethodWithArgs()
175 mIntent.putExtra(EXTRA_PCO_ID_KEY, pcoId); in onReceiveMethodWithArgs()
176 mIntent.putExtra(EXTRA_PCO_VALUE_KEY, pcoData); in onReceiveMethodWithArgs()
179 mBroadcastReceiver.onReceive(mMockContext, mIntent); in onReceiveMethodWithArgs()
/packages/apps/Contacts/tests/src/com/android/contacts/test/
DLaunchPerformanceBase.java32 protected Intent mIntent; field in LaunchPerformanceBase
36 mIntent = new Intent(Intent.ACTION_MAIN); in LaunchPerformanceBase()
37 mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in LaunchPerformanceBase()
47 startActivitySync(mIntent); in LaunchApp()

123