Home
last modified time | relevance | path

Searched refs:intent (Results 1 – 25 of 694) sorted by relevance

12345678910>>...28

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowIntentTest.java38 Intent intent = new Intent(); in resolveActivityInfo_shouldReturnActivityInfoForExistingActivity() local
39 intent.setClassName(context, TEST_ACTIVITY_CLASS_NAME); in resolveActivityInfo_shouldReturnActivityInfoForExistingActivity()
40 …ActivityInfo activityInfo = intent.resolveActivityInfo(packageManager, PackageManager.GET_ACTIVITI… in resolveActivityInfo_shouldReturnActivityInfoForExistingActivity()
46 Intent intent = new Intent(); in testGetExtraReturnsNull_whenThereAreNoExtrasAdded() local
47 assertEquals(intent.getExtras(), null); in testGetExtraReturnsNull_whenThereAreNoExtrasAdded()
52 Intent intent = new Intent(); in testStringExtra() local
53 assertSame(intent, intent.putExtra("foo", "bar")); in testStringExtra()
54 assertEquals("bar", intent.getExtras().get("foo")); in testStringExtra()
59 Intent intent = new Intent(); in testCharSequenceExtra() local
61 assertSame(intent, intent.putExtra("foo", cs)); in testCharSequenceExtra()
[all …]
DShadowPendingIntentTest.java40 Intent intent = new Intent(); in getBroadcast_shouldCreateIntentForBroadcast() local
41 PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 99, intent, 100); in getBroadcast_shouldCreateIntentForBroadcast()
48 assertThat(intent).isEqualTo(shadow.getSavedIntent()); in getBroadcast_shouldCreateIntentForBroadcast()
56 Intent intent = new Intent(); in getActivity_shouldCreateIntentForBroadcast() local
57 PendingIntent pendingIntent = PendingIntent.getActivity(context, 99, intent, 100); in getActivity_shouldCreateIntentForBroadcast()
64 assertThat(intent).isEqualTo(shadow.getSavedIntent()); in getActivity_shouldCreateIntentForBroadcast()
103 Intent intent = new Intent(); in getService_shouldCreateIntentForBroadcast() local
104 PendingIntent pendingIntent = PendingIntent.getService(context, 99, intent, 100); in getService_shouldCreateIntentForBroadcast()
111 assertThat(intent).isEqualTo(shadow.getSavedIntent()); in getService_shouldCreateIntentForBroadcast()
120 Intent intent = new Intent(); in getForegroundService_shouldCreateIntentForBroadcast() local
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/
DIntentBuilders.java38 Intent intent = new Intent(); in buildTriggerServiceIntent() local
39 intent.setComponent(Constants.TRIGGER_SERVICE_COMPONENT_NAME); in buildTriggerServiceIntent()
40 return intent; in buildTriggerServiceIntent()
52 Intent intent = new Intent(); in buildStartInBackgroundIntent() local
53 intent.setComponent(componentName); in buildStartInBackgroundIntent()
54 intent.setAction(Constants.ACTION_LAUNCH_BACKGROUND_SCRIPT); in buildStartInBackgroundIntent()
55 intent.putExtra(Constants.EXTRA_SCRIPT_PATH, script.getAbsolutePath()); in buildStartInBackgroundIntent()
56 return intent; in buildStartInBackgroundIntent()
68 Intent intent = new Intent(); in buildStartInTerminalIntent() local
69 intent.setComponent(componentName); in buildStartInTerminalIntent()
[all …]
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DPersistService.java80 public int onStartCommand(Intent intent, int flags, int startId) { in onStartCommand() argument
81 if(intent == null) { in onStartCommand()
85 if(RcsPresence.ACTION_PRESENCE_CHANGED.equals(intent.getAction())) { in onStartCommand()
88 msg.obj = intent; in onStartCommand()
91 } else if(RcsPresence.ACTION_PUBLISH_STATE_CHANGED.equals(intent.getAction())) { in onStartCommand()
94 msg.obj = intent; in onStartCommand()
98 logger.debug("unknown intent=" + intent); in onStartCommand()
110 public IBinder onBind(Intent intent) { in onBind() argument
133 Intent intent = (Intent)msg.obj; in handleMessage() local
134 logger.print("handleMessage serviceId: " + serviceId + " intent: " + intent); in handleMessage()
[all …]
DLauncherUtils.java52 Intent intent = new Intent(context, PollingService.class); in launchPollingService() local
53 return (context.startService(intent) != null); in launchPollingService()
64 Intent intent = new Intent(context, PollingService.class); in stopPollingService() local
65 return context.stopService(intent); in stopPollingService()
71 Intent intent = new Intent(context, EABService.class); in launchEabService() local
72 return (context.startService(intent) != null); in launchEabService()
78 Intent intent = new Intent(context, EABService.class); in stopEabService() local
79 return context.stopService(intent); in stopEabService()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowInstrumentation.java89 protected Activity startActivitySync(Intent intent, Bundle options) { in startActivitySync() argument
99 Intent intent, in execStartActivity() argument
103 verifyActivityInManifest(intent); in execStartActivity()
104 logStartedActivity(intent, requestCode, options); in execStartActivity()
110 .execStartActivity(who, contextThread, token, target, intent, requestCode, options); in execStartActivity()
119 Intent intent, in execStartActivity() argument
122 verifyActivityInManifest(intent); in execStartActivity()
123 logStartedActivity(intent, requestCode, options); in execStartActivity()
127 private void logStartedActivity(Intent intent, int requestCode, Bundle options) { in logStartedActivity() argument
128 startedActivities.add(intent); in logStartedActivity()
[all …]
DShadowApplicationPackageManager.java266 protected ResolveInfo resolveActivity(Intent intent, int flags) { in resolveActivity() argument
270 if ((preferred.getKey().getFilter().match(context.getContentResolver(), intent, false, "robo") in resolveActivity()
276 List<ResolveInfo> candidates = queryIntentActivities(intent, flags); in resolveActivity()
334 protected List<ResolveInfo> queryIntentServices(Intent intent, int flags) { in queryIntentServices() argument
336 List<ResolveInfo> resolveInfoList = queryOverriddenIntents(intent, flags); in queryIntentServices()
343 if (isExplicitIntent(intent)) { in queryIntentServices()
344 ResolveInfo resolvedService = resolveServiceForExplicitIntent(intent); in queryIntentServices()
353 queryImplicitIntentServices(intent), in queryIntentServices()
436 protected List<ResolveInfo> queryIntentServicesAsUser(Intent intent, int flags, int userId) { in queryIntentServicesAsUser() argument
437 return queryIntentServices(intent, flags); in queryIntentServicesAsUser()
[all …]
DShadowPendingIntent.java64 Context context, int requestCode, @NonNull Intent intent, int flags) { in getActivity() argument
65 return create(context, new Intent[] {intent}, Type.ACTIVITY, requestCode, flags); in getActivity()
70 Context context, int requestCode, @NonNull Intent intent, int flags, Bundle options) { in getActivity() argument
71 return create(context, new Intent[] {intent}, Type.ACTIVITY, requestCode, flags); in getActivity()
88 Context context, int requestCode, @NonNull Intent intent, int flags) { in getBroadcast() argument
89 return create(context, new Intent[] {intent}, Type.BROADCAST, requestCode, flags); in getBroadcast()
94 Context context, int requestCode, @NonNull Intent intent, int flags) { in getService() argument
95 return create(context, new Intent[] {intent}, Type.SERVICE, requestCode, flags); in getService()
100 Context context, int requestCode, @NonNull Intent intent, int flags) { in getForegroundService() argument
101 return create(context, new Intent[] {intent}, Type.FOREGROUND_SERVICE, requestCode, flags); in getForegroundService()
[all …]
DShadowContextImpl.java87 IntentSender intent, in startIntentSender() argument
94 intent.sendIntent(realContextImpl, 0, fillInIntent, null, null, null); in startIntentSender()
145 protected void sendBroadcast(Intent intent) { in sendBroadcast() argument
146 getShadowInstrumentation().sendBroadcastWithPermission(intent, null, realContextImpl); in sendBroadcast()
150 protected void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() argument
152 .sendBroadcastWithPermission(intent, receiverPermission, realContextImpl); in sendBroadcast()
156 protected void sendOrderedBroadcast(Intent intent, String receiverPermission) { in sendOrderedBroadcast() argument
158 .sendOrderedBroadcastWithPermission(intent, receiverPermission, realContextImpl); in sendOrderedBroadcast()
163 Intent intent, in sendOrderedBroadcast() argument
172 intent, in sendOrderedBroadcast()
[all …]
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/service/
DScriptingLayerService.java86 public IBinder onBind(Intent intent) { in onBind() argument
163 private void startAction(Intent intent, int flags, int startId) { in startAction() argument
164 if (intent == null || intent.getAction() == null) { in startAction()
171 Log.d(String.format("Received intent: %s", intent.toUri(0))); in startAction()
173 if (intent.getAction().equals(Constants.ACTION_KILL_ALL)) { in startAction()
176 } else if (intent.getAction().equals(Constants.ACTION_KILL_PROCESS)) { in startAction()
177 killProcess(intent); in startAction()
181 } else if (intent.getAction().equals(Constants.ACTION_SHOW_RUNNING_SCRIPTS)) { in startAction()
184 if (intent.getAction().equals(Constants.ACTION_LAUNCH_SERVER)) { in startAction()
185 proxy = launchServer(intent, false); in startAction()
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DAndroidFacade.java149 public Intent startActivityForResult(final Intent intent) { in startActivityForResult() argument
155 startActivityForResult(intent, 0); in startActivityForResult()
157 intent.putExtra("EXCEPTION", e.getMessage()); in startActivityForResult()
158 setResult(intent); in startActivityForResult()
178 public int startActivityForResultCodeWithTimeout(final Intent intent, in startActivityForResultCodeWithTimeout() argument
185 startActivityForResult(intent, request); in startActivityForResultCodeWithTimeout()
187 intent.putExtra("EXCEPTION", e.getMessage()); in startActivityForResultCodeWithTimeout()
212 Intent intent) throws JSONException { in putExtrasFromJsonObject() argument
221 intent.putExtra(name, (Integer) data); in putExtrasFromJsonObject()
224 intent.putExtra(name, (Float) data); in putExtrasFromJsonObject()
[all …]
DApplicationManagerFacade.java65 Intent intent = new Intent(Intent.ACTION_MAIN); in getLaunchableApplications() local
66 intent.addCategory(Intent.CATEGORY_LAUNCHER); in getLaunchableApplications()
67 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentActivities(intent, 0); in getLaunchableApplications()
77 Intent intent = new Intent(Intent.ACTION_MAIN); in launch() local
79 intent.setClassName(packageName, className); in launch()
80 mAndroidFacade.startActivity(intent); in launch()
85 Intent intent = new Intent(Intent.ACTION_MAIN); in launchForResult() local
87 intent.setClassName(packageName, className); in launchForResult()
88 return mAndroidFacade.startActivityForResult(intent); in launchForResult()
99 @RpcParameter(name = "intent") Intent intent, in launchForResultWithIntent()
[all …]
DBatteryManagerFacade.java79 public void onReceive(Context context, Intent intent) { in onReceive() argument
80 mBatteryStatus = intent.getIntExtra("status", 1); in onReceive()
81 mBatteryHealth = intent.getIntExtra("health", 1); in onReceive()
82 mPlugType = intent.getIntExtra("plugged", -1); in onReceive()
85 intent.getBooleanExtra(getBatteryManagerFieldValue("EXTRA_PRESENT"), false); in onReceive()
86 mBatteryLevel = intent.getIntExtra(getBatteryManagerFieldValue("EXTRA_LEVEL"), -1); in onReceive()
87 mBatteryMaxLevel = intent.getIntExtra(getBatteryManagerFieldValue("EXTRA_SCALE"), 0); in onReceive()
88 mBatteryVoltage = intent.getIntExtra(getBatteryManagerFieldValue("EXTRA_VOLTAGE"), -1); in onReceive()
90 intent.getIntExtra(getBatteryManagerFieldValue("EXTRA_TEMPERATURE"), -1); in onReceive()
91 mBatteryTechnology = intent.getStringExtra(getBatteryManagerFieldValue("EXTRA_TECHNOLOGY")); in onReceive()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/controller/
DComponentController.java16 protected Intent intent; field in ComponentController
21 public ComponentController(T component, Intent intent) { in ComponentController() argument
23 this.intent = intent; in ComponentController()
42 …Intent intent = this.intent == null ? new Intent(RuntimeEnvironment.application, component.getClas… in getIntent() local
43 if (intent.getComponent() == null) { in getIntent()
44 intent.setClass(RuntimeEnvironment.application, component.getClass()); in getIntent()
46 return intent; in getIntent()
DFragmentController.java25 public static <F extends Fragment> FragmentController<F> of(F fragment, Intent intent) { in of() argument
26 return new FragmentController<>(fragment, FragmentControllerActivity.class, intent); in of()
33 …public static <F extends Fragment> FragmentController<F> of(F fragment, Intent intent, Bundle argu… in of() argument
34 return new FragmentController<>(fragment, FragmentControllerActivity.class, intent, in of()
38 …ent> FragmentController<F> of(F fragment, Class<? extends Activity> activityClass, Intent intent) { in of() argument
39 return new FragmentController<>(fragment, activityClass, intent); in of()
47 Intent intent, Bundle arguments) { in of() argument
48 return new FragmentController<>(fragment, activityClass, intent, arguments); in of()
51 private FragmentController(F fragment, Class<? extends Activity> activityClass, Intent intent) { in FragmentController() argument
52 this(fragment, activityClass, intent, null); in FragmentController()
[all …]
DServiceController.java18 public static <T extends Service> ServiceController<T> of(T service, Intent intent) { in of() argument
19 ServiceController<T> controller = new ServiceController<>(service, intent); in of()
24 private ServiceController(T service, Intent intent) { in ServiceController() argument
25 super(service, intent); in ServiceController()
88 public ServiceController<T> withIntent(Intent intent) { in withIntent() argument
89 this.intent = intent; in withIntent()
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DConnectActivity.java139 final Intent intent = getIntent(); in onCreate() local
140 if ("android.intent.action.VIEW".equals(intent.getAction()) in onCreate()
143 boolean loopback = intent.getBooleanExtra( in onCreate()
145 int runTimeMs = intent.getIntExtra( in onCreate()
164 Intent intent = new Intent(this, SettingsActivity.class); in onOptionsItemSelected() local
165 startActivity(intent); in onOptionsItemSelected()
347 Intent intent = new Intent(this, CallActivity.class); in connectToRoom() local
348 intent.setData(uri); in connectToRoom()
349 intent.putExtra(CallActivity.EXTRA_ROOMID, roomId); in connectToRoom()
350 intent.putExtra(CallActivity.EXTRA_LOOPBACK, loopback); in connectToRoom()
[all …]
DCallActivity.java201 final Intent intent = getIntent(); in onCreate() local
202 Uri roomUri = intent.getData(); in onCreate()
210 String roomId = intent.getStringExtra(EXTRA_ROOMID); in onCreate()
218 boolean loopback = intent.getBooleanExtra(EXTRA_LOOPBACK, false); in onCreate()
219 boolean tracing = intent.getBooleanExtra(EXTRA_TRACING, false); in onCreate()
221 intent.getBooleanExtra(EXTRA_VIDEO_CALL, true), in onCreate()
224 intent.getIntExtra(EXTRA_VIDEO_WIDTH, 0), in onCreate()
225 intent.getIntExtra(EXTRA_VIDEO_HEIGHT, 0), in onCreate()
226 intent.getIntExtra(EXTRA_VIDEO_FPS, 0), in onCreate()
227 intent.getIntExtra(EXTRA_VIDEO_BITRATE, 0), in onCreate()
[all …]
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
DScriptsLiveFolder.java38 final Intent intent = getIntent(); in onCreate() local
39 final String action = intent.getAction(); in onCreate()
49 final Intent intent = new Intent(); in createLiveFolder() local
50 intent.setData(uri); in createLiveFolder()
51 intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_NAME, name); in createLiveFolder()
52 intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_ICON, ShortcutIconResource in createLiveFolder()
54 intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_DISPLAY_MODE, LiveFolders.DISPLAY_MODE_LIST); in createLiveFolder()
55 return intent; in createLiveFolder()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/fakes/
DRoboMonitoringInstrumentation.java41 public Activity startActivitySync(final Intent intent) { in startActivitySync() argument
42 ActivityInfo ai = intent.resolveActivityInfo(getTargetContext().getPackageManager(), 0); in startActivitySync()
45 return Robolectric.buildActivity(activityClass, intent) in startActivitySync()
70 Intent intent, in execStartActivity() argument
74 super.execStartActivity(who, contextThread, token, target, intent, requestCode); in execStartActivity()
89 Intent intent, in execStartActivity() argument
93 super.execStartActivity(who, contextThread, token, target, intent, requestCode, options); in execStartActivity()
108 Intent intent, in execStartActivity() argument
113 super.execStartActivity(who, contextThread, token, target, intent, requestCode, options); in execStartActivity()
128 Intent intent, in execStartActivity() argument
[all …]
/external/setupcompat/main/java/com/google/android/setupcompat/util/
DWizardManagerHelper.java81 Intent intent = new Intent(ACTION_NEXT); in getNextIntent() local
82 copyWizardManagerExtras(originalIntent, intent); in getNextIntent()
83 intent.putExtra(EXTRA_RESULT_CODE, resultCode); in getNextIntent()
85 intent.putExtras(data.getExtras()); in getNextIntent()
87 intent.putExtra(EXTRA_THEME, originalIntent.getStringExtra(EXTRA_THEME)); in getNextIntent()
89 return intent; in getNextIntent()
118 public static boolean isSetupWizardIntent(Intent intent) { in isSetupWizardIntent() argument
119 return intent.getBooleanExtra(EXTRA_IS_FIRST_RUN, false); in isSetupWizardIntent()
195 public static boolean isInitialSetupWizard(Intent intent) { in isInitialSetupWizard() argument
196 return intent.getBooleanExtra(EXTRA_IS_FIRST_RUN, false); in isInitialSetupWizard()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DRobolectric.java35 …tatic <T extends Service> ServiceController<T> buildService(Class<T> serviceClass, Intent intent) { in buildService() argument
36 return ServiceController.of(ReflectionHelpers.callConstructor(serviceClass), intent); in buildService()
47 …ntentService> IntentServiceController<T> buildIntentService(Class<T> serviceClass, Intent intent) { in buildIntentService() argument
48 return IntentServiceController.of(ReflectionHelpers.callConstructor(serviceClass), intent); in buildIntentService()
71 …c <T extends Activity> ActivityController<T> buildActivity(Class<T> activityClass, Intent intent) { in buildActivity() argument
72 return ActivityController.of(ReflectionHelpers.callConstructor(activityClass), intent); in buildActivity()
93 …c <T extends Fragment> FragmentController<T> buildFragment(Class<T> fragmentClass, Intent intent) { in buildFragment() argument
94 return FragmentController.of(ReflectionHelpers.callConstructor(fragmentClass), intent); in buildFragment()
98 Intent intent, in buildFragment() argument
100 … return FragmentController.of(ReflectionHelpers.callConstructor(fragmentClass), intent, arguments); in buildFragment()
[all …]
/external/robolectric-shadows/shadows/androidx/fragment/src/main/java/org/robolectric/shadows/androidx/fragment/
DFragmentController.java24 F fragment, Class<? extends FragmentActivity> activityClass, Intent intent) { in FragmentController() argument
25 this(fragment, activityClass, intent, null /*arguments*/); in FragmentController()
36 Intent intent, in FragmentController() argument
38 super(fragment, intent); in FragmentController()
44 ActivityController.of(ReflectionHelpers.callConstructor(activityClass), intent); in FragmentController()
64 public static <F extends Fragment> FragmentController<F> of(F fragment, Intent intent) { in of() argument
65 return new FragmentController<>(fragment, FragmentControllerActivity.class, intent); in of()
100 F fragment, Intent intent, Bundle arguments) { in of() argument
101 return new FragmentController<>(fragment, FragmentControllerActivity.class, intent, arguments); in of()
113 F fragment, Class<? extends FragmentActivity> activityClass, Intent intent) { in of() argument
[all …]
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
DMockContext.java234 public void startActivity(Intent intent) { in startActivity() argument
239 public void startActivity(Intent intent, Bundle bundle) { in startActivity() argument
254 …public void startIntentSender(IntentSender intentSender, Intent intent, int i, int i1, int i2) thr… in startIntentSender() argument
259 …public void startIntentSender(IntentSender intentSender, Intent intent, int i, int i1, int i2, Bun… in startIntentSender() argument
264 public void sendBroadcast(Intent intent) { in sendBroadcast() argument
269 public void sendBroadcast(Intent intent, String s) { in sendBroadcast() argument
274 public void sendOrderedBroadcast(Intent intent, String s) { in sendOrderedBroadcast() argument
279 …public void sendOrderedBroadcast(Intent intent, String s, BroadcastReceiver broadcastReceiver, Han… in sendOrderedBroadcast() argument
284 public void sendStickyBroadcast(Intent intent) { in sendStickyBroadcast() argument
289 …public void sendStickyOrderedBroadcast(Intent intent, BroadcastReceiver broadcastReceiver, Handler… in sendStickyOrderedBroadcast() argument
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothPairingHelper.java44 public void onReceive(Context c, Intent intent) { in onReceive() argument
45 String action = intent.getAction(); in onReceive()
48 BluetoothDevice mDevice = intent.getParcelableExtra( in onReceive()
54 int type = intent.getIntExtra( in onReceive()
58 int pin = intent.getIntExtra(BluetoothDevice.EXTRA_PAIRING_KEY, 0); in onReceive()
107 int type = intent.getIntExtra( in onReceive()
119 intent.getStringExtra( in onReceive()
122 intent.getStringExtra(BluetoothDevice.EXTRA_CLASS_NAME); in onReceive()
124 intent.getIntExtra( in onReceive()

12345678910>>...28