Home
last modified time | relevance | path

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

1234

/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()
/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/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DWifiStateWorkerTest.java66 private Intent mIntent; field in WifiStateWorkerTest
75 when(mIntent.getAction()).thenReturn(WIFI_STATE_CHANGED_ACTION); in setup()
76 when(mIntent.getIntExtra(eq(EXTRA_WIFI_STATE), anyInt())).thenReturn(WIFI_STATE_ENABLED); in setup()
117 when(mIntent.getIntExtra(eq(EXTRA_WIFI_STATE), anyInt())).thenReturn(WIFI_STATE_DISABLING); in getWifiState_receiveWifiStateDisabling_getWifiStateDisabling()
118 mWifiStateWorker.onReceive(mContext, mIntent); in getWifiState_receiveWifiStateDisabling_getWifiStateDisabling()
125 when(mIntent.getIntExtra(eq(EXTRA_WIFI_STATE), anyInt())).thenReturn(WIFI_STATE_DISABLED); in getWifiState_receiveWifiStateDisabled_getWifiStateDisabled()
126 mWifiStateWorker.onReceive(mContext, mIntent); in getWifiState_receiveWifiStateDisabled_getWifiStateDisabled()
133 when(mIntent.getIntExtra(eq(EXTRA_WIFI_STATE), anyInt())).thenReturn(WIFI_STATE_ENABLING); in getWifiState_receiveWifiStateEnabling_getWifiStateEnabling()
134 mWifiStateWorker.onReceive(mContext, mIntent); in getWifiState_receiveWifiStateEnabling_getWifiStateEnabling()
141 when(mIntent.getIntExtra(eq(EXTRA_WIFI_STATE), anyInt())).thenReturn(WIFI_STATE_ENABLED); in getWifiState_receiveWifiStateEnabled_getWifiStateEnabled()
[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.java86 private Intent mIntent; field in BluetoothEventManagerTest
138 mIntent = new Intent(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED); in intentWithExtraState_audioStateChangedShouldDispatchToRegisterCallback()
140 mContext.sendBroadcast(mIntent); in intentWithExtraState_audioStateChangedShouldDispatchToRegisterCallback()
151 mIntent = new Intent(TelephonyManager.ACTION_PHONE_STATE_CHANGED); in intentWithExtraState_phoneStateChangedShouldDispatchToRegisterCallback()
153 mContext.sendBroadcast(mIntent); in intentWithExtraState_phoneStateChangedShouldDispatchToRegisterCallback()
176 mIntent = new Intent(BluetoothDevice.ACTION_ACL_DISCONNECTED); in dispatchAclConnectionStateChanged_aclDisconnected_shouldDispatchCallback()
177 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mBluetoothDevice); in dispatchAclConnectionStateChanged_aclDisconnected_shouldDispatchCallback()
179 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_aclDisconnected_shouldDispatchCallback()
188 mIntent = new Intent(BluetoothDevice.ACTION_ACL_CONNECTED); in dispatchAclConnectionStateChanged_aclConnected_shouldDispatchCallback()
189 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mBluetoothDevice); in dispatchAclConnectionStateChanged_aclConnected_shouldDispatchCallback()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DReviewNotificationPermissionsReceiverTest.java60 private Intent mIntent; field in ReviewNotificationPermissionsReceiverTest
65 mIntent = new Intent(); // actions will be set in test cases in setUp()
77 mIntent.setAction(NotificationManagerService.REVIEW_NOTIF_ACTION_REMIND); in testReceive_remindMeLater_firstTime()
83 mReceiver.onReceive(mContext, mIntent); in testReceive_remindMeLater_firstTime()
101 mIntent.setAction(NotificationManagerService.REVIEW_NOTIF_ACTION_REMIND); in testReceive_remindMeLater_laterTimes()
108 mReceiver.onReceive(mContext, mIntent); in testReceive_remindMeLater_laterTimes()
126 mIntent.setAction(NotificationManagerService.REVIEW_NOTIF_ACTION_DISMISS); in testReceive_dismiss()
129 mReceiver.onReceive(mContext, mIntent); in testReceive_dismiss()
147 mIntent.setAction(NotificationManagerService.REVIEW_NOTIF_ACTION_CANCELED); in testReceive_notificationCanceled_firstSwipe()
153 mReceiver.onReceive(mContext, mIntent); in testReceive_notificationCanceled_firstSwipe()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartInterceptor.java101 Intent mIntent; field in ActivityStartInterceptor
154 new Intent[] { mIntent }, new String[] { mResolvedType }, in createIntentSenderForOriginalIntent()
191 mIntent = intent; in intercept()
234 mIntent = interceptResult.intent; in intercept()
238 mRInfo = mSupervisor.resolveIntent(mIntent, null, mUserId, 0, mRealCallingUid); in intercept()
239 mAInfo = mSupervisor.resolveActivity(mIntent, mRInfo, mStartFlags, in intercept()
274 mIntent = UnlaunchableAppActivity.createInQuietModeDialogIntent(mUserId, target); in interceptQuietProfileIfNeeded()
280 mRInfo = mSupervisor.resolveIntent(mIntent, mResolvedType, parent.id, 0, mRealCallingUid); in interceptQuietProfileIfNeeded()
281 mAInfo = mSupervisor.resolveActivity(mIntent, mRInfo, mStartFlags, null /*profilerInfo*/); in interceptQuietProfileIfNeeded()
291 mIntent = devicePolicyManager.createShowAdminSupportIntent(mUserId, true); in interceptSuspendedByAdminPackage()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/
DLaunchConversationActivityTest.java109 private Intent mIntent; field in LaunchConversationActivityTest
128 mIntent = new Intent(); in setUp()
129 mIntent.putExtra(PeopleSpaceWidgetProvider.EXTRA_TILE_ID, "tile ID"); in setUp()
130 mIntent.putExtra(PeopleSpaceWidgetProvider.EXTRA_PACKAGE_NAME, PACKAGE_NAME); in setUp()
131 mIntent.putExtra(PeopleSpaceWidgetProvider.EXTRA_USER_HANDLE, USER_HANDLE); in setUp()
158 mIntent.putExtra(PeopleSpaceWidgetProvider.EXTRA_NOTIFICATION_KEY, in testDoNotClearNotificationIfNoKey()
160 mActivity.setIntent(mIntent); in testDoNotClearNotificationIfNoKey()
169 mIntent.putExtra(PeopleSpaceWidgetProvider.EXTRA_NOTIFICATION_KEY, in testDoNotClearNotificationIfNoNotificationEntry()
171 mActivity.setIntent(mIntent); in testDoNotClearNotificationIfNoNotificationEntry()
180 mIntent.putExtra(PeopleSpaceWidgetProvider.EXTRA_NOTIFICATION_KEY, in testDoNotClearNotificationIfNoRanking()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/app/
DPendingIntentPerfTest.java46 private Intent mIntent; field in PendingIntentPerfTest
51 mIntent = PerfTestActivity.createLaunchIntent(mContext); in setUp()
64 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, in create()
83 mIntent, PendingIntent.FLAG_MUTABLE_UNAUDITED); in createWithCancelFlag()
86 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, in createWithCancelFlag()
105 mIntent, PendingIntent.FLAG_MUTABLE_UNAUDITED); in createWithUpdateFlag()
108 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, in createWithUpdateFlag()
127 mIntent, PendingIntent.FLAG_MUTABLE_UNAUDITED); in cancel()
/frameworks/base/core/java/android/app/smartspace/uitemplatedata/
DTapAction.java52 private final Intent mIntent; field in TapAction
71 mIntent = in.readTypedObject(Intent.CREATOR); in TapAction()
82 mIntent = intent; in TapAction()
99 return mIntent; in getIntent()
132 out.writeTypedObject(mIntent, flags); in writeToParcel()
174 + "mIntent=" + mIntent in toString()
191 private Intent mIntent; field in TapAction.Builder
212 mIntent = intent; in setIntent()
261 if (mIntent == null && mPendingIntent == null && mExtras == null) { in build()
264 return new TapAction(mId, mIntent, mPendingIntent, mUserHandle, mExtras, in build()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileLifecycleManager.java86 private final Intent mIntent; field in TileLifecycleManager
115 mIntent = intent; in TileLifecycleManager()
116 mIntent.putExtra(TileService.EXTRA_SERVICE, service.asBinder()); in TileLifecycleManager()
117 mIntent.putExtra(TileService.EXTRA_TOKEN, mToken); in TileLifecycleManager()
121 if (DEBUG) Log.d(TAG, "Creating " + mIntent + " " + mUser); in TileLifecycleManager()
136 return mIntent.getComponent(); in getComponent()
151 ServiceInfo info = mPackageManagerAdapter.getServiceInfo(mIntent.getComponent(), in isActiveTile()
169 ServiceInfo info = mPackageManagerAdapter.getServiceInfo(mIntent.getComponent(), in isToggleableTile()
207 if (DEBUG) Log.d(TAG, "Binding service " + mIntent + " " + mUser); in setBindService()
210 mIsBound = mContext.bindServiceAsUser(mIntent, this, in setBindService()
[all …]
/frameworks/base/test-runner/src/android/test/
DLaunchPerformanceBase.java34 protected Intent mIntent; field in LaunchPerformanceBase
38 mIntent = new Intent(Intent.ACTION_MAIN); in LaunchPerformanceBase()
39 mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in LaunchPerformanceBase()
47 startActivitySync(mIntent); in LaunchApp()
/frameworks/base/core/java/android/app/search/
DSearchAction.java64 private final Intent mIntent; field in SearchAction
79 mIntent = in.readTypedObject(Intent.CREATOR); in SearchAction()
100 mIntent = intent; in SearchAction()
104 if (mPendingIntent == null && mIntent == null) { in SearchAction()
107 if (mPendingIntent != null && mIntent != null) { in SearchAction()
158 return mIntent; in getIntent()
202 out.writeTypedObject(mIntent, flags); in writeToParcel()
215 + " intent=" + mIntent in toString()
256 private Intent mIntent; field in SearchAction.Builder
322 mIntent = intent; in setIntent()
[all …]
/frameworks/base/tests/componentalias/src/android/content/componentalias/tests/
DComponentAliasMessage.java52 private Intent mIntent; field in ComponentAliasMessage
89 return mIntent; in getIntent()
117 mIntent = value; in setIntent()
137 "intent = " + mIntent + ", " + in toString()
152 if (mIntent != null) flg |= 0x8; in writeToParcel()
158 if (mIntent != null) dest.writeTypedObject(mIntent, flags); in writeToParcel()
183 this.mIntent = intent; in ComponentAliasMessage()
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DJobWorkItem.java36 final Intent mIntent; field in JobWorkItem
106 mIntent = intent; in JobWorkItem()
116 return mIntent; in getIntent()
201 sb.append(mIntent); in toString()
249 if (mIntent != null) { in writeToParcel()
251 mIntent.writeToParcel(out, 0); in writeToParcel()
276 mIntent = Intent.CREATOR.createFromParcel(in); in JobWorkItem()
278 mIntent = null; in JobWorkItem()
/frameworks/base/core/java/android/content/
DClipData.java208 final Intent mIntent; field in ClipData.Item
221 mIntent = other.mIntent; in Item()
233 mIntent = null; in Item()
249 mIntent = null; in Item()
259 mIntent = intent; in Item()
269 mIntent = null; in Item()
280 mIntent = intent; in Item()
297 mIntent = intent; in Item()
319 return mIntent; in getIntent()
653 if (mIntent != null) { in coerceToHtmlOrStyledText()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DActionProxyReceiverTest.java70 private Intent mIntent; field in ActionProxyReceiverTest
76 mIntent = new Intent(mContext, ActionProxyReceiver.class) in setup()
84 actionProxyReceiver.onReceive(mContext, mIntent); in testPendingIntentSentWithoutStatusBar()
103 actionProxyReceiver.onReceive(mContext, mIntent); in testPendingIntentSentWithStatusBar()
116 actionProxyReceiver.onReceive(mContext, mIntent); in testSmartActionsNotNotifiedByDefault()
126 mIntent.putExtra(EXTRA_SMART_ACTIONS_ENABLED, true); in testSmartActionsNotifiedIfEnabled()
128 mIntent.putExtra(EXTRA_ID, testId); in testSmartActionsNotifiedIfEnabled()
130 actionProxyReceiver.onReceive(mContext, mIntent); in testSmartActionsNotifiedIfEnabled()
DSmartActionsReceiverTest.java53 private Intent mIntent; field in SmartActionsReceiverTest
59 mIntent = new Intent(mContext, SmartActionsReceiver.class) in setup()
67 mIntent.putExtra(EXTRA_ID, testId); in testSmartActionIntent()
68 mIntent.putExtra(EXTRA_ACTION_TYPE, testActionType); in testSmartActionIntent()
72 mSmartActionsReceiver.onReceive(mContext, mIntent); in testSmartActionIntent()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DPersistentServiceConnectionTest.java62 private Intent mIntent; field in PersistentServiceConnectionTest
87 mIntent, in setup()
118 eq(mIntent), in testRetryOnBindFailure()
128 eq(mIntent), in testRetryOnBindFailure()
138 eq(mIntent), in testRetryOnBindFailure()
148 eq(mIntent), in testRetryOnBindFailure()
159 eq(mIntent), in testManualUnbindDoesNotReconnect()
171 eq(mIntent), in testManualUnbindDoesNotReconnect()
/frameworks/base/core/java/android/app/smartspace/
DSmartspaceAction.java75 private final Intent mIntent; field in SmartspaceAction
90 mIntent = in.readTypedObject(Intent.CREATOR); in SmartspaceAction()
111 mIntent = intent; in SmartspaceAction()
162 return mIntent; in getIntent()
206 out.writeTypedObject(mIntent, flags); in writeToParcel()
220 + ", mIntent=" + mIntent in toString()
262 private Intent mIntent; field in SmartspaceAction.Builder
331 mIntent = intent; in setIntent()
352 mPendingIntent, mIntent, mUserHandle, mExtras); in build()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/service/
DObservableServiceConnectionTest.java77 Intent mIntent; field in ObservableServiceConnectionTest
104 mIntent, mExecutor, mTransformer); in testConnect()
124 mIntent, mExecutor, mTransformer); in testDisconnect()
131 when(mContext.bindService(eq(mIntent), anyInt(), eq(mExecutor), eq(connection))) in testDisconnect()
154 mIntent, mExecutor, mTransformer); in testUnbind()
161 when(mContext.bindService(eq(mIntent), anyInt(), eq(mExecutor), eq(connection))) in testUnbind()
178 mIntent, mExecutor, mTransformer); in testBindServiceThrowsError()
181 when(mContext.bindService(eq(mIntent), anyInt(), eq(mExecutor), eq(connection))) in testBindServiceThrowsError()
/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/content/pm/
DInstantAppRequestInfo.java43 private final Intent mIntent; field in InstantAppRequestInfo
98 this.mIntent = intent; in InstantAppRequestInfo()
100 NonNull.class, null, mIntent); in InstantAppRequestInfo()
120 return mIntent; in getIntent()
165 dest.writeTypedObject(mIntent, flags); in writeToParcel()
189 this.mIntent = intent; in InstantAppRequestInfo()
191 NonNull.class, null, mIntent); in InstantAppRequestInfo()

1234