Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/android/app/activity/
DSubActivityTest.java26 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testPendingResult()
27 mIntent.putExtra("mode", SubActivityScreen.PENDING_RESULT_MODE); in testPendingResult()
32 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testNoResult()
33 mIntent.putExtra("mode", SubActivityScreen.NO_RESULT_MODE); in testNoResult()
38 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testResult()
39 mIntent.putExtra("mode", SubActivityScreen.RESULT_MODE); in testResult()
44 mIntent.putExtra("component", in testFinishSub()
46 mIntent.putExtra("mode", SubActivityScreen.FINISH_SUB_MODE); in testFinishSub()
51 mIntent.putExtra("component", in testRemoteNoResult()
53 mIntent.putExtra("mode", SubActivityScreen.NO_RESULT_MODE); in testRemoteNoResult()
[all …]
DLifecycleTest.java31 mTopIntent = mIntent; in setUp()
39 mIntent = mTopIntent; in testBasic()
46 mIntent = mTabIntent; in testTabBasic()
54 mIntent = mTopIntent; in testScreen()
63 mIntent = mTabIntent; in testTabScreen()
70 mIntent = mTopIntent; in testDialog()
77 mIntent = mTabIntent; in testTabDialog()
83 mIntent = mTopIntent; in testFinishCreate()
90 mIntent = mTabIntent; in testTabFinishCreate()
96 mIntent = mTopIntent; in testFinishStart()
[all …]
DLaunchTest.java28 mIntent.putExtra("component", new ComponentName(getContext(), TestedActivity.class)); in testColdActivity()
34 mIntent.putExtra("component", new ComponentName(getContext(), LocalActivity.class)); in testLocalActivity()
40 mIntent.putExtra("component", new ComponentName(getContext(), TestedScreen.class)); in testColdScreen()
46 mIntent.putExtra("component", new ComponentName(getContext(), LocalScreen.class)); in testLocalScreen()
65 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopInCreate()
71 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopWhileResumed()
72 mIntent.putExtra(ClearTop.WAIT_CLEAR_TASK, true); in testClearTopWhileResumed()
DActivityTestsBase.java32 protected Intent mIntent; field in ActivityTestsBase
46 mIntent = new Intent(mContext, LaunchpadActivity.class); in setUp()
92 return mIntent; in editIntent()
133 mIntent.setAction(action); in runLaunchpad()
136 mIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in runLaunchpad()
137 mContext.startActivity(mIntent); in runLaunchpad()
/frameworks/opt/photoviewer/src/com/android/ex/photo/
DIntents.java104 private final Intent mIntent; field in Intents.PhotoViewIntentBuilder
146 mIntent = new Intent(context, cls); in PhotoViewIntentBuilder()
151 mIntent = new Intent(); in PhotoViewIntentBuilder()
152 mIntent.setClassName(context, activityName); in PhotoViewIntentBuilder()
283 mIntent.setAction(Intent.ACTION_VIEW); in build()
287 mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT in build()
298 mIntent.putExtra(EXTRA_PHOTO_INDEX, (int) mPhotoIndex); in build()
302 mIntent.putExtra(EXTRA_INITIAL_PHOTO_URI, mInitialPhotoUri); in build()
311 mIntent.putExtra(EXTRA_PHOTOS_URI, mPhotosUri); in build()
312 mIntent.setData(Uri.parse(mPhotosUri)); in build()
[all …]
/frameworks/support/compat/java/android/support/v4/app/
DShareCompat.java195 private Intent mIntent; field in ShareCompat.IntentBuilder
215 mIntent = new Intent().setAction(Intent.ACTION_SEND); in IntentBuilder()
216 mIntent.putExtra(EXTRA_CALLING_PACKAGE, launchingActivity.getPackageName()); in IntentBuilder()
217 mIntent.putExtra(EXTRA_CALLING_ACTIVITY, launchingActivity.getComponentName()); in IntentBuilder()
218 mIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); in IntentBuilder()
246 boolean isSendMultiple = mIntent.getAction().equals(Intent.ACTION_SEND_MULTIPLE); in getIntent()
251 mIntent.setAction(Intent.ACTION_SEND); in getIntent()
253 mIntent.putExtra(Intent.EXTRA_STREAM, mStreams.get(0)); in getIntent()
255 mIntent.removeExtra(Intent.EXTRA_STREAM); in getIntent()
263 mIntent.setAction(Intent.ACTION_SEND_MULTIPLE); in getIntent()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionInfoUpdaterTest.java143 Intent mIntent = new Intent(TelephonyIntents.ACTION_SIM_STATE_CHANGED); in testSimAbsent() local
144 mIntent.putExtra(IccCardConstants.INTENT_KEY_ICC_STATE, in testSimAbsent()
146 mIntent.putExtra(PhoneConstants.PHONE_KEY, FAKE_SUB_ID_1); in testSimAbsent()
148 mContext.sendBroadcast(mIntent); in testSimAbsent()
164 Intent mIntent = new Intent(TelephonyIntents.ACTION_SIM_STATE_CHANGED); in testSimUnknown() local
165 mIntent.putExtra(IccCardConstants.INTENT_KEY_ICC_STATE, in testSimUnknown()
167 mIntent.putExtra(PhoneConstants.PHONE_KEY, FAKE_SUB_ID_1); in testSimUnknown()
169 mContext.sendBroadcast(mIntent); in testSimUnknown()
183 Intent mIntent = new Intent(TelephonyIntents.ACTION_SIM_STATE_CHANGED); in testSimError() local
184 mIntent.putExtra(IccCardConstants.INTENT_KEY_ICC_STATE, in testSimError()
[all …]
/frameworks/support/customtabs/src/android/support/customtabs/
DCustomTabsIntent.java274 private final Intent mIntent = new Intent(Intent.ACTION_VIEW); field in CustomTabsIntent.Builder
298 if (session != null) mIntent.setPackage(session.getComponentName().getPackageName()); in Builder()
302 mIntent.putExtras(bundle); in Builder()
311 mIntent.putExtra(EXTRA_TOOLBAR_COLOR, color); in setToolbarColor()
319 mIntent.putExtra(EXTRA_ENABLE_URLBAR_HIDING, true); in enableUrlBarHiding()
329 mIntent.putExtra(EXTRA_CLOSE_BUTTON_ICON, icon); in setCloseButtonIcon()
339 mIntent.putExtra(EXTRA_TITLE_VISIBILITY_STATE, in setShowTitle()
363 mIntent.putExtra(EXTRA_DEFAULT_SHARE_MENU_ITEM, true); in addDefaultShareMenuItem()
388 mIntent.putExtra(EXTRA_ACTION_BUTTON_BUNDLE, bundle); in setActionButton()
389 mIntent.putExtra(EXTRA_TINT_ACTION_BUTTON, shouldTint); in setActionButton()
[all …]
/frameworks/base/core/java/android/app/job/
DJobWorkItem.java29 final Intent mIntent; field in JobWorkItem
41 mIntent = intent; in JobWorkItem()
48 return mIntent; in getIntent()
101 sb.append(mIntent); in toString()
115 if (mIntent != null) { in writeToParcel()
117 mIntent.writeToParcel(out, 0); in writeToParcel()
138 mIntent = Intent.CREATOR.createFromParcel(in); in JobWorkItem()
140 mIntent = null; in JobWorkItem()
/frameworks/base/services/core/java/com/android/server/am/
DActivityStartInterceptor.java74 Intent mIntent; field in ActivityStartInterceptor
100 mIntent = intent; in intercept()
128 new Intent[] {mIntent}, new String[] {mResolvedType}, in interceptQuietProfileIfNeeded()
131 mIntent = UnlaunchableAppActivity.createInQuietModeDialogIntent(mUserId, in interceptQuietProfileIfNeeded()
138 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, parent.id); in interceptQuietProfileIfNeeded()
139 mAInfo = mSupervisor.resolveActivity(mIntent, mRInfo, mStartFlags, null /*profilerInfo*/); in interceptQuietProfileIfNeeded()
154 mIntent = devicePolicyManager.createShowAdminSupportIntent(mUserId, true); in interceptSuspendPackageIfNeed()
161 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, parent.id); in interceptSuspendPackageIfNeed()
163 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, mUserId); in interceptSuspendPackageIfNeed()
165 mAInfo = mSupervisor.resolveActivity(mIntent, mRInfo, mStartFlags, null /*profilerInfo*/); in interceptSuspendPackageIfNeed()
[all …]
DPreBootBroadcaster.java58 private final Intent mIntent; field in PreBootBroadcaster
70 mIntent = new Intent(Intent.ACTION_PRE_BOOT_COMPLETED); in PreBootBroadcaster()
71 mIntent.addFlags(Intent.FLAG_RECEIVER_BOOT_UPGRADE | Intent.FLAG_DEBUG_TRIAGED_MISSING); in PreBootBroadcaster()
73 mTargets = mService.mContext.getPackageManager().queryBroadcastReceiversAsUser(mIntent, in PreBootBroadcaster()
108 mIntent.setComponent(componentName); in sendNext()
109 mService.broadcastIntentLocked(null, null, mIntent, null, this, 0, null, null, null, in sendNext()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileLifecycleManager.java73 private final Intent mIntent; field in TileLifecycleManager
102 mIntent = intent; in TileLifecycleManager()
103 mIntent.putExtra(TileService.EXTRA_SERVICE, service.asBinder()); in TileLifecycleManager()
104 mIntent.putExtra(TileService.EXTRA_TOKEN, mToken); in TileLifecycleManager()
107 if (DEBUG) Log.d(TAG, "Creating " + mIntent + " " + mUser); in TileLifecycleManager()
111 return mIntent.getComponent(); in getComponent()
126 ServiceInfo info = mPackageManagerAdapter.getServiceInfo(mIntent.getComponent(), in isActiveTile()
160 if (DEBUG) Log.d(TAG, "Binding service " + mIntent + " " + mUser); in setBindService()
163 mIsBound = mContext.bindServiceAsUser(mIntent, this, in setBindService()
171 if (DEBUG) Log.d(TAG, "Unbinding service " + mIntent + " " + mUser); in setBindService()
[all …]
/frameworks/base/core/java/android/content/
DClipData.java196 final Intent mIntent; field in ClipData.Item
203 mIntent = other.mIntent; in Item()
213 mIntent = null; in Item()
226 mIntent = null; in Item()
236 mIntent = intent; in Item()
246 mIntent = null; in Item()
257 mIntent = intent; in Item()
274 mIntent = intent; in Item()
296 return mIntent; in getIntent()
591 if (mIntent != null) { in coerceToHtmlOrStyledText()
[all …]
/frameworks/base/test-runner/src/android/test/
DLaunchPerformanceBase.java35 protected Intent mIntent; field in LaunchPerformanceBase
39 mIntent = new Intent(Intent.ACTION_MAIN); in LaunchPerformanceBase()
40 mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in LaunchPerformanceBase()
50 startActivitySync(mIntent); in LaunchApp()
/frameworks/base/core/java/android/app/assist/
DAssistContent.java18 private Intent mIntent; field in AssistContent
37 mIntent = intent; in setDefaultIntent()
59 mIntent = intent; in setIntent()
67 return mIntent; in getIntent()
153 mIntent = Intent.CREATOR.createFromParcel(in); in AssistContent()
170 if (mIntent != null) { in writeToParcelInternal()
172 mIntent.writeToParcel(dest, flags); in writeToParcelInternal()
/frameworks/base/core/java/android/view/textclassifier/
DTextClassification.java46 @Nullable private final Intent mIntent; field in TextClassification
63 mIntent = intent; in TextClassification()
129 return mIntent; in getIntent()
152 mText, mEntityConfidence, mLabel, mIntent); in toString()
177 @Nullable private Intent mIntent; field in TextClassification.Builder
225 mIntent = intent; in setIntent()
251 mText, mIcon, mLabel, mIntent, mOnClickListener, mEntityConfidence, mLogType); in build()
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/
DPhotoViewFragment.java97 protected Intent mIntent; field in PhotoViewFragment
195 mIntent = bundle.getParcelable(ARG_INTENT); in onCreate()
196 mDisplayThumbsFullScreen = mIntent.getBooleanExtra( in onCreate()
206 mIntent = new Intent().putExtras(state); in onCreate()
210 if (mIntent != null) { in onCreate()
211 mResolvedPhotoUri = mIntent.getStringExtra(Intents.EXTRA_RESOLVED_PHOTO_URI); in onCreate()
212 mThumbnailUri = mIntent.getStringExtra(Intents.EXTRA_THUMBNAIL_URI); in onCreate()
213 mContentDescription = mIntent.getStringExtra(Intents.EXTRA_CONTENT_DESCRIPTION); in onCreate()
214 mWatchNetworkState = mIntent.getBooleanExtra(Intents.EXTRA_WATCH_NETWORK, false); in onCreate()
228 mPhotoView.setMaxInitialScale(mIntent.getFloatExtra(Intents.EXTRA_MAX_INITIAL_SCALE, 1)); in initializeView()
[all …]
/frameworks/support/recommendation/src/android/support/app/recommendation/
DContentRecommendation.java307 Intent mIntent; field in ContentRecommendation.IntentData
932 mBuilderContentIntentData.mIntent = checkNotNull(intent); in setContentIntentData()
969 mBuilderDismissIntentData.mIntent = intent; in setDismissIntentData()
1106 mContentIntentData.mIntent, PendingIntent.FLAG_UPDATE_CURRENT, in getNotificationObject()
1110 mContentIntentData.mIntent, PendingIntent.FLAG_UPDATE_CURRENT); in getNotificationObject()
1114 mContentIntentData.mIntent, PendingIntent.FLAG_UPDATE_CURRENT); in getNotificationObject()
1123 mDismissIntentData.mIntent, PendingIntent.FLAG_UPDATE_CURRENT, in getNotificationObject()
1127 mDismissIntentData.mIntent, PendingIntent.FLAG_UPDATE_CURRENT); in getNotificationObject()
1131 mDismissIntentData.mIntent, PendingIntent.FLAG_UPDATE_CURRENT); in getNotificationObject()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItem.java43 private Intent mIntent; field in ActionMenuItem
99 return mIntent; in getIntent()
248 mIntent = intent; in setIntent()
308 if (mIntent != null) { in invoke()
309 mContext.startActivity(mIntent); in invoke()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DActivityChooserModel.java254 private Intent mIntent; field in ActivityChooserModel
367 if (mIntent == intent) { in setIntent()
370 mIntent = intent; in setIntent()
383 return mIntent; in getIntent()
458 if (mIntent == null) { in chooseActivity()
470 Intent choiceIntent = new Intent(mIntent); in chooseActivity()
671 if (mActivitySorter != null && mIntent != null in sortActivitiesIfNeeded()
673 mActivitySorter.sort(mIntent, mActivities, in sortActivitiesIfNeeded()
687 if (mReloadActivities && mIntent != null) { in loadActivitiesIfNeeded()
691 .queryIntentActivities(mIntent, 0); in loadActivitiesIfNeeded()
/frameworks/base/core/java/android/widget/
DActivityChooserModel.java267 private Intent mIntent; field in ActivityChooserModel
381 if (mIntent == intent) { in setIntent()
384 mIntent = intent; in setIntent()
397 return mIntent; in getIntent()
472 if (mIntent == null) { in chooseActivity()
484 Intent choiceIntent = new Intent(mIntent); in chooseActivity()
691 if (mActivitySorter != null && mIntent != null in sortActivitiesIfNeeded()
693 mActivitySorter.sort(mIntent, mActivities, in sortActivitiesIfNeeded()
707 if (mReloadActivities && mIntent != null) { in loadActivitiesIfNeeded()
711 .queryIntentActivities(mIntent, 0); in loadActivitiesIfNeeded()
/frameworks/base/core/tests/utiltests/src/android/util/
DRemoteIntArray.java39 private final Intent mIntent = new Intent(); field in RemoteIntArray
44 mIntent.setComponent(new ComponentName(InstrumentationRegistry.getContext(), in RemoteIntArray()
119 InstrumentationRegistry.getContext().bindService(mIntent, this, Context.BIND_AUTO_CREATE); in bindLocked()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGuidedAction.java134 private Intent mIntent; field in GuidedAction.BuilderBase
171 action.mIntent = mIntent; in applyValues()
311 mIntent = intent; in intent()
600 Intent mIntent; field in GuidedAction
691 return mIntent; in getIntent()
699 mIntent = intent; in setIntent()
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DActionMenuItem.java51 private Intent mIntent; field in ActionMenuItem
113 return mIntent; in getIntent()
237 mIntent = intent; in setIntent()
306 if (mIntent != null) { in invoke()
307 mContext.startActivity(mIntent); in invoke()
/frameworks/base/services/core/java/com/android/server/location/
DGeofenceState.java41 public final PendingIntent mIntent; field in GeofenceState
56 mIntent = intent; in GeofenceState()

123