Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/android/app/activity/
DSubActivityTest.java27 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testPendingResult()
28 mIntent.putExtra("mode", SubActivityScreen.PENDING_RESULT_MODE); in testPendingResult()
33 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testNoResult()
34 mIntent.putExtra("mode", SubActivityScreen.NO_RESULT_MODE); in testNoResult()
39 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testResult()
40 mIntent.putExtra("mode", SubActivityScreen.RESULT_MODE); in testResult()
45 mIntent.putExtra("component", in testFinishSub()
47 mIntent.putExtra("mode", SubActivityScreen.FINISH_SUB_MODE); in testFinishSub()
52 mIntent.putExtra("component", in testRemoteNoResult()
54 mIntent.putExtra("mode", SubActivityScreen.NO_RESULT_MODE); in testRemoteNoResult()
[all …]
DLifecycleTest.java32 mTopIntent = mIntent; in setUp()
40 mIntent = mTopIntent; in testBasic()
47 mIntent = mTabIntent; in testTabBasic()
55 mIntent = mTopIntent; in testScreen()
64 mIntent = mTabIntent; in testTabScreen()
71 mIntent = mTopIntent; in testDialog()
78 mIntent = mTabIntent; in testTabDialog()
84 mIntent = mTopIntent; in testFinishCreate()
91 mIntent = mTabIntent; in testTabFinishCreate()
97 mIntent = mTopIntent; in testFinishStart()
[all …]
DLaunchTest.java29 mIntent.putExtra("component", new ComponentName(getContext(), TestedActivity.class)); in testColdActivity()
35 mIntent.putExtra("component", new ComponentName(getContext(), LocalActivity.class)); in testLocalActivity()
41 mIntent.putExtra("component", new ComponentName(getContext(), TestedScreen.class)); in testColdScreen()
47 mIntent.putExtra("component", new ComponentName(getContext(), LocalScreen.class)); in testLocalScreen()
66 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopInCreate()
72 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopWhileResumed()
73 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/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DLocalBluetoothProfileManagerTest.java70 private Intent mIntent; field in LocalBluetoothProfileManagerTest
158 mIntent = new Intent(BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED); in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback()
159 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback()
160 mIntent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, BluetoothProfile.STATE_CONNECTING); in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback()
161 mIntent.putExtra(BluetoothProfile.EXTRA_STATE, BluetoothProfile.STATE_CONNECTED); in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback()
163 mContext.sendBroadcast(mIntent); in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback()
179 mIntent = new Intent(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback()
180 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback()
181 mIntent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, BluetoothProfile.STATE_CONNECTING); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback()
182 mIntent.putExtra(BluetoothProfile.EXTRA_STATE, BluetoothProfile.STATE_CONNECTED); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback()
[all …]
DBluetoothEventManagerTest.java59 private Intent mIntent; field in BluetoothEventManagerTest
100 mIntent = new Intent(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED); in intentWithExtraState_audioStateChangedShouldDispatchToRegisterCallback()
102 mContext.sendBroadcast(mIntent); in intentWithExtraState_audioStateChangedShouldDispatchToRegisterCallback()
113 mIntent = new Intent(TelephonyManager.ACTION_PHONE_STATE_CHANGED); in intentWithExtraState_phoneStateChangedShouldDispatchToRegisterCallback()
115 mContext.sendBroadcast(mIntent); in intentWithExtraState_phoneStateChangedShouldDispatchToRegisterCallback()
138 mIntent = new Intent(BluetoothDevice.ACTION_ACL_DISCONNECTED); in dispatchAclConnectionStateChanged_aclDisconnected_shouldDispatchCallback()
139 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mBluetoothDevice); in dispatchAclConnectionStateChanged_aclDisconnected_shouldDispatchCallback()
141 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_aclDisconnected_shouldDispatchCallback()
150 mIntent = new Intent(BluetoothDevice.ACTION_ACL_CONNECTED); in dispatchAclConnectionStateChanged_aclConnected_shouldDispatchCallback()
151 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mBluetoothDevice); in dispatchAclConnectionStateChanged_aclConnected_shouldDispatchCallback()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartInterceptor.java94 Intent mIntent; field in ActivityStartInterceptor
135 new Intent[] { mIntent }, new String[] { mResolvedType }, in createIntentSenderForOriginalIntent()
150 mIntent = intent; in intercept()
201 mIntent = UnlaunchableAppActivity.createInQuietModeDialogIntent(mUserId, target); in interceptQuietProfileIfNeeded()
207 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, parent.id, 0, mRealCallingUid); in interceptQuietProfileIfNeeded()
208 mAInfo = mSupervisor.resolveActivity(mIntent, mRInfo, mStartFlags, null /*profilerInfo*/); in interceptQuietProfileIfNeeded()
218 mIntent = devicePolicyManager.createShowAdminSupportIntent(mUserId, true); in interceptSuspendedByAdminPackage()
219 mIntent.putExtra(EXTRA_RESTRICTION, POLICY_SUSPEND_PACKAGES); in interceptSuspendedByAdminPackage()
227 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, parent.id, 0, in interceptSuspendedByAdminPackage()
230 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, mUserId, 0, in interceptSuspendedByAdminPackage()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/app/
DPendingIntentPerfTest.java46 private Intent mIntent; field in PendingIntentPerfTest
51 mIntent = StubActivity.createLaunchIntent(mContext); in setUp()
64 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, in create()
83 mIntent, 0); in createWithCancelFlag()
86 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, in createWithCancelFlag()
105 mIntent, 0); in createWithUpdateFlag()
108 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, in createWithUpdateFlag()
127 mIntent, 0); in cancel()
/frameworks/base/core/java/android/app/job/
DJobWorkItem.java35 final Intent mIntent; field in JobWorkItem
52 mIntent = intent; in JobWorkItem()
80 mIntent = intent; in JobWorkItem()
89 return mIntent; in getIntent()
183 sb.append(mIntent); in toString()
205 if (mIntent != null) { in writeToParcel()
207 mIntent.writeToParcel(out, 0); in writeToParcel()
231 mIntent = Intent.CREATOR.createFromParcel(in); in JobWorkItem()
233 mIntent = null; in JobWorkItem()
/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/packages/SystemUI/src/com/android/systemui/qs/external/
DTileLifecycleManager.java71 private final Intent mIntent; field in TileLifecycleManager
100 mIntent = intent; in TileLifecycleManager()
101 mIntent.putExtra(TileService.EXTRA_SERVICE, service.asBinder()); in TileLifecycleManager()
102 mIntent.putExtra(TileService.EXTRA_TOKEN, mToken); in TileLifecycleManager()
105 if (DEBUG) Log.d(TAG, "Creating " + mIntent + " " + mUser); in TileLifecycleManager()
109 return mIntent.getComponent(); in getComponent()
124 ServiceInfo info = mPackageManagerAdapter.getServiceInfo(mIntent.getComponent(), in isActiveTile()
158 if (DEBUG) Log.d(TAG, "Binding service " + mIntent + " " + mUser); in setBindService()
161 mIsBound = mContext.bindServiceAsUser(mIntent, this, in setBindService()
169 if (DEBUG) Log.d(TAG, "Unbinding service " + mIntent + " " + mUser); in setBindService()
[all …]
/frameworks/base/core/java/android/content/
DClipData.java207 final Intent mIntent; field in ClipData.Item
215 mIntent = other.mIntent; in Item()
225 mIntent = null; in Item()
242 mIntent = null; in Item()
252 mIntent = intent; in Item()
262 mIntent = null; in Item()
273 mIntent = intent; in Item()
290 mIntent = intent; in Item()
312 return mIntent; in getIntent()
607 if (mIntent != null) { in coerceToHtmlOrStyledText()
[all …]
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/
DSeamlessAppRotationTest.java53 private Intent mIntent; field in SeamlessAppRotationTest
57 this.mIntent = intent; in SeamlessAppRotationTest()
101 if (mIntent.getExtras() != null && in runTransition()
102 mIntent.getExtras().getBoolean(EXTRA_STARVE_UI_THREAD)) { in runTransition()
107 changeAppRotation(mIntent, intentId, InstrumentationRegistry.getContext(), in runTransition()
141 .hasVisibleRegion(mIntent.getComponent().getPackageName(), startingPos) in checkPosition_appLayerRotates()
145 .hasVisibleRegion(mIntent.getComponent().getPackageName(), startingPos) in checkPosition_appLayerRotates()
147 .hasVisibleRegion(mIntent.getComponent().getPackageName(), endingPos) in checkPosition_appLayerRotates()
/frameworks/base/core/java/android/app/assist/
DAssistContent.java22 private Intent mIntent; field in AssistContent
45 mIntent = intent; in setDefaultIntent()
67 mIntent = intent; in setIntent()
75 return mIntent; in getIntent()
162 mIntent = Intent.CREATOR.createFromParcel(in); in AssistContent()
180 if (mIntent != null) { in writeToParcelInternal()
182 mIntent.writeToParcel(dest, flags); in writeToParcelInternal()
/frameworks/base/core/java/android/app/servertransaction/
DLaunchActivityItem.java50 private Intent mIntent; field in LaunchActivityItem
79 ActivityClientRecord r = new ActivityClientRecord(token, mIntent, mIdent, mInfo, in execute()
129 dest.writeTypedObject(mIntent, flags); in writeToParcel()
182 final boolean intentsEqual = (mIntent == null && other.mIntent == null) in equals()
183 || (mIntent != null && mIntent.filterEquals(other.mIntent)); in equals()
201 result = 31 * result + mIntent.filterHashCode(); in hashCode()
251 return "LaunchActivityItem{intent=" + mIntent + ",ident=" + mIdent + ",info=" + mInfo in toString()
267 instance.mIntent = intent; in setValues()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/registry/
DBenchmarkGroup.java93 private final Intent mIntent; field in BenchmarkGroup
104 mIntent = intent; in BenchmarkGroup()
110 mIntent.putExtra(BENCHMARK_EXTRA_ENABLED_TESTS, enabledBenchmarksIds); in getIntent()
111 return mIntent; in getIntent()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStartInterceptorTest.java165 assertEquals(ADMIN_SUPPORT_INTENT, mInterceptor.mIntent); in testSuspendedByAdminPackage()
185 mInterceptor.mIntent.getParcelableExtra(SuspendedAppActivity.EXTRA_DIALOG_INFO)); in testSuspendedPackage()
187 mInterceptor.mIntent.getStringExtra(SuspendedAppActivity.EXTRA_SUSPENDING_PACKAGE)); in testSuspendedPackage()
189 mInterceptor.mIntent.getStringExtra(SuspendedAppActivity.EXTRA_SUSPENDED_PACKAGE)); in testSuspendedPackage()
190 assertEquals(TEST_USER_ID, mInterceptor.mIntent.getIntExtra(Intent.EXTRA_USER_ID, -1000)); in testSuspendedPackage()
203 .filterEquals(mInterceptor.mIntent)); in testInterceptQuietProfile()
215 assertTrue(CONFIRM_CREDENTIALS_INTENT.filterEquals(mInterceptor.mIntent)); in testWorkChallenge()
229 mInterceptor.mIntent.getComponent().getClassName()); in testHarmfulAppWarning()
/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/base/services/core/java/com/android/server/am/
DPreBootBroadcaster.java59 private final Intent mIntent; field in PreBootBroadcaster
71 mIntent = new Intent(Intent.ACTION_PRE_BOOT_COMPLETED); in PreBootBroadcaster()
72 mIntent.addFlags(Intent.FLAG_RECEIVER_BOOT_UPGRADE | Intent.FLAG_DEBUG_TRIAGED_MISSING); in PreBootBroadcaster()
74 mTargets = mService.mContext.getPackageManager().queryBroadcastReceiversAsUser(mIntent, in PreBootBroadcaster()
109 mIntent.setComponent(componentName); in sendNext()
111 mService.broadcastIntentLocked(null, null, mIntent, null, this, 0, null, null, null, in sendNext()
/frameworks/base/services/systemcaptions/java/com/android/server/systemcaptions/
DRemoteSystemCaptionsManagerService.java43 private final Intent mIntent; field in RemoteSystemCaptionsManagerService
66 mIntent = new Intent(SERVICE_INTERFACE).setComponent(componentName); in RemoteSystemCaptionsManagerService()
112 boolean willBind = mContext.bindServiceAsUser(mIntent, mServiceConnection, flags, in ensureBound()
115 Slog.w(TAG, "Could not bind to " + mIntent + " with flags " + flags); in ensureBound()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DCarNavigationButton.java44 private String mIntent; field in CarNavigationButton
62 mIntent = typedArray.getString(R.styleable.CarNavigationButton_intent); in CarNavigationButton()
91 if (mIntent != null) { in onFinishInflate()
92 final Intent intent = Intent.parseUri(mIntent, Intent.URI_INTENT_SCHEME); in onFinishInflate()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierKeyDownloadMgrTest.java280 Intent mIntent = new Intent(DownloadManager.ACTION_DOWNLOAD_COMPLETE); in testDownloadComplete() local
281 mContext.sendBroadcast(mIntent); in testDownloadComplete()
302 Intent mIntent = new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED); in testCarrierConfigChanged() local
303 mIntent.putExtra(PhoneConstants.PHONE_KEY, 0); in testCarrierConfigChanged()
304 mContext.sendBroadcast(mIntent); in testCarrierConfigChanged()
326 Intent mIntent = new Intent("com.android.internal.telephony.carrier_key_download_alarm" in testAlarmRenewal() local
328 mContext.sendBroadcast(mIntent); in testAlarmRenewal()
/frameworks/base/core/tests/utiltests/src/android/util/
DRemoteIntArray.java40 private final Intent mIntent = new Intent(); field in RemoteIntArray
45 mIntent.setComponent(new ComponentName(InstrumentationRegistry.getContext(), in RemoteIntArray()
120 InstrumentationRegistry.getContext().bindService(mIntent, this, Context.BIND_AUTO_CREATE); in bindLocked()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItem.java44 private Intent mIntent; field in ActionMenuItem
101 return mIntent; in getIntent()
250 mIntent = intent; in setIntent()
310 if (mIntent != null) { in invoke()
311 mContext.startActivity(mIntent); in invoke()

123