Home
last modified time | relevance | path

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

1234

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningControllerTest.java118 private Intent mIntent; field in PreProvisioningControllerTest
180 mController.initiateProvisioning(mIntent, null, TEST_MDM_PACKAGE); in testManagedProfile()
198 mController.initiateProvisioning(mIntent, null, TEST_MDM_PACKAGE); in testManagedProfile_provisioningNotAllowed()
209 mController.initiateProvisioning(mIntent, null, null); in testManagedProfile_nullCallingPackage()
220 mController.initiateProvisioning(mIntent, null, "com.android.invalid.dpc"); in testManagedProfile_invalidCallingPackage()
232 mController.initiateProvisioning(mIntent, null, TEST_MDM_PACKAGE); in testManagedProfile_withEncryption()
247 mController.initiateProvisioning(mIntent, null, MP_PACKAGE_NAME); in testManagedProfile_afterEncryption()
263 mController.initiateProvisioning(mIntent, null, TEST_MDM_PACKAGE); in testManagedProfile_withExistingProfile()
273 mController.initiateProvisioning(mIntent, null, TEST_MDM_PACKAGE); in testManagedProfile_badLauncher()
288 mController.initiateProvisioning(mIntent, null, TEST_BOGUS_PACKAGE); in testManagedProfile_wrongPackage()
[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/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverTest.java78 Intent mIntent; field in CellBroadcastReceiverTest
129 doReturn(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED).when(mIntent).getAction(); in testOnReceive_actionCarrierConfigChanged()
132 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionCarrierConfigChanged()
140 doReturn(CellBroadcastReceiver.CELLBROADCAST_START_CONFIG_ACTION).when(mIntent).getAction(); in testOnReceive_cellbroadcastStartConfigAction()
141 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_cellbroadcastStartConfigAction()
149 .when(mIntent).getAction(); in testOnReceive_actionDefaultSmsSubscriptionChanged()
151 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionDefaultSmsSubscriptionChanged()
158 doReturn(Telephony.Sms.Intents.ACTION_SMS_EMERGENCY_CB_RECEIVED).when(mIntent).getAction(); in testOnReceive_actionSmsEmergencyCbReceived()
159 doReturn(mIntent).when(mIntent).setClass(mContext, CellBroadcastAlertService.class); in testOnReceive_actionSmsEmergencyCbReceived()
160 doReturn(null).when(mContext).startService(mIntent); in testOnReceive_actionSmsEmergencyCbReceived()
[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/services/Telecomm/src/com/android/server/telecom/
DNewOutgoingCallIntentBroadcaster.java77 private final Intent mIntent; field in NewOutgoingCallIntentBroadcaster
108 mIntent = intent; in NewOutgoingCallIntentBroadcaster()
172 Uri originalUri = mIntent.getData(); in onReceive()
186 mIntent.getBooleanExtra( in onReceive()
188 mIntent.getIntExtra(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, in onReceive()
215 Intent intent = mIntent; in evaluateCall()
231 mIntent.putExtra(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, in evaluateCall()
245 PhoneAccountHandle targetPhoneAccount = mIntent.getParcelableExtra( in evaluateCall()
336 boolean speakerphoneOn = mIntent.getBooleanExtra( in processCall()
338 int videoState = mIntent.getIntExtra( in processCall()
[all …]
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/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/DeskClock/src/com/android/deskclock/
DFetchMatchingAlarmsAction.java46 private final Intent mIntent; field in FetchMatchingAlarmsAction
55 mIntent = intent; in FetchMatchingAlarmsAction()
63 final String searchMode = mIntent.getStringExtra(AlarmClock.EXTRA_ALARM_SEARCH_MODE); in run()
74 final int hour = mIntent.getIntExtra(AlarmClock.EXTRA_HOUR, -1); in run()
76 final int minutes = mIntent.getIntExtra(AlarmClock.EXTRA_MINUTES, 0); in run()
77 final Boolean isPm = (Boolean) mIntent.getExtras().get(AlarmClock.EXTRA_IS_PM); in run()
139 final String label = mIntent.getStringExtra(AlarmClock.EXTRA_MESSAGE); in run()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
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/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/Settings/tests/robotests/src/com/android/settings/sim/
DPreferredSimDialogFragmentTest.java60 mIntent.putExtra(PREFERRED_SIM, 0); in onCreateDialog_noSims_dismissed()
68 mIntent.putExtra(PREFERRED_SIM, 1); in onCreateDialog_oneSimWrongSlotArgument_dismissed()
75 mIntent.putExtra(PREFERRED_SIM, 0); in onCreateDialog_twoSimsSelectFirst_correctMessage()
86 mIntent.putExtra(PREFERRED_SIM, 1); in onCreateDialog_twoSimsSelectSecond_correctMessage()
97 mIntent.putExtra(PREFERRED_SIM, 0); in onClick_yesClicked_callsOnSubscriptionSelected()
111 mIntent.putExtra(PREFERRED_SIM, 0); in onClick_noClicked_doesNotCallOnSubscriptionSelected()
/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/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/apps/Settings/src/com/android/settings/password/
DChooseLockPassword.java114 private final Intent mIntent; field in ChooseLockPassword.IntentBuilder
117 mIntent = new Intent(context, ChooseLockPassword.class); in IntentBuilder()
118 mIntent.putExtra(ChooseLockGeneric.CONFIRM_CREDENTIALS, false); in IntentBuilder()
119 mIntent.putExtra(EncryptionInterstitial.EXTRA_REQUIRE_PASSWORD, false); in IntentBuilder()
120 mIntent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_HAS_CHALLENGE, false); in IntentBuilder()
124 mIntent.putExtra(LockPatternUtils.PASSWORD_TYPE_KEY, quality); in setPasswordQuality()
129 mIntent.putExtra(Intent.EXTRA_USER_ID, userId); in setUserId()
134 mIntent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_HAS_CHALLENGE, true); in setChallenge()
135 mIntent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_CHALLENGE, challenge); in setChallenge()
140 mIntent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_PASSWORD, password); in setPassword()
[all …]
DChooseLockPattern.java103 private final Intent mIntent; field in ChooseLockPattern.IntentBuilder
106 mIntent = new Intent(context, ChooseLockPattern.class); in IntentBuilder()
107 mIntent.putExtra(EncryptionInterstitial.EXTRA_REQUIRE_PASSWORD, false); in IntentBuilder()
108 mIntent.putExtra(ChooseLockGeneric.CONFIRM_CREDENTIALS, false); in IntentBuilder()
109 mIntent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_HAS_CHALLENGE, false); in IntentBuilder()
113 mIntent.putExtra(Intent.EXTRA_USER_ID, userId); in setUserId()
118 mIntent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_HAS_CHALLENGE, true); in setChallenge()
119 mIntent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_CHALLENGE, challenge); in setChallenge()
124 mIntent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_PASSWORD, pattern); in setPattern()
129 mIntent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_FOR_FINGERPRINT, forFingerprint); in setForFingerprint()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DDataUsagePreferenceController.java40 private Intent mIntent; field in DataUsagePreferenceController
56 mContext.startActivity(mIntent); in handlePreferenceTreeClick()
94 mIntent = new Intent(Settings.ACTION_MOBILE_DATA_USAGE); in init()
95 mIntent.putExtra(Settings.EXTRA_NETWORK_TEMPLATE, mTemplate); in init()
96 mIntent.putExtra(Settings.EXTRA_SUB_ID, mSubId); in init()

1234