/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowIntentTest.java | 38 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 …]
|
D | ShadowPendingIntentTest.java | 39 Intent intent = new Intent(); in getBroadcast_shouldCreateIntentForBroadcast() local 40 PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 99, intent, 100); in getBroadcast_shouldCreateIntentForBroadcast() 46 assertThat(intent).isEqualTo(shadow.getSavedIntent()); in getBroadcast_shouldCreateIntentForBroadcast() 54 Intent intent = new Intent(); in getActivity_shouldCreateIntentForBroadcast() local 55 PendingIntent pendingIntent = PendingIntent.getActivity(context, 99, intent, 100); in getActivity_shouldCreateIntentForBroadcast() 61 assertThat(intent).isEqualTo(shadow.getSavedIntent()); in getActivity_shouldCreateIntentForBroadcast() 98 Intent intent = new Intent(); in getService_shouldCreateIntentForBroadcast() local 99 PendingIntent pendingIntent = PendingIntent.getService(context, 99, intent, 100); in getService_shouldCreateIntentForBroadcast() 105 assertThat(intent).isEqualTo(shadow.getSavedIntent()); in getService_shouldCreateIntentForBroadcast() 133 Intent intent = new Intent(); in send_shouldFillInIntentData() local [all …]
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | IntentTest.java | 37 Intent intent = new Intent(); in testStringExtra() local 38 assertSame(intent, intent.putExtra("foo", "bar")); in testStringExtra() 39 assertEquals("bar", intent.getExtras().get("foo")); in testStringExtra() 44 Intent intent = new Intent(); in testCharSequenceExtra() local 46 assertSame(intent, intent.putExtra("foo", cs)); in testCharSequenceExtra() 47 assertSame(cs, intent.getExtras().get("foo")); in testCharSequenceExtra() 52 Intent intent = new Intent(); in testIntExtra() local 53 assertSame(intent, intent.putExtra("foo", 2)); in testIntExtra() 54 assertEquals(2, intent.getExtras().get("foo")); in testIntExtra() 55 assertEquals(2, intent.getIntExtra("foo", -1)); in testIntExtra() [all …]
|
D | PendingIntentTest.java | 32 assertThat(expectedIntent, equalTo(((TestIntentSender) intentSender).intent)); in shouldGetIntentSender() 37 Intent intent = new Intent(); in getBroadcast__shouldCreateIntentForBroadcast() local 38 …PendingIntent pendingIntent = PendingIntent.getBroadcast(Robolectric.application, 99, intent, 100); in getBroadcast__shouldCreateIntentForBroadcast() 43 assertThat(intent, equalTo(shadow.getSavedIntent())); in getBroadcast__shouldCreateIntentForBroadcast() 49 Intent intent = new Intent(); in getActivity__shouldCreateIntentForBroadcast() local 50 … PendingIntent pendingIntent = PendingIntent.getActivity(Robolectric.application, 99, intent, 100); in getActivity__shouldCreateIntentForBroadcast() 55 assertThat(intent, equalTo(shadow.getSavedIntent())); in getActivity__shouldCreateIntentForBroadcast() 61 Intent intent = new Intent(); in getService__shouldCreateIntentForBroadcast() local 62 … PendingIntent pendingIntent = PendingIntent.getService(Robolectric.application, 99, intent, 100); in getService__shouldCreateIntentForBroadcast() 67 assertThat(intent, equalTo(shadow.getSavedIntent())); in getService__shouldCreateIntentForBroadcast() [all …]
|
/external/sl4a/Common/src/com/googlecode/android_scripting/ |
D | IntentBuilders.java | 38 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/ |
D | PersistService.java | 80 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 …]
|
D | LauncherUtils.java | 52 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/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/service/ |
D | ScriptingLayerService.java | 85 public IBinder onBind(Intent intent) { in onBind() argument 160 private void startAction(Intent intent, int flags, int startId) { in startAction() argument 164 if (intent == null) { in startAction() 165 } else if (intent.getAction().equals(Constants.ACTION_KILL_ALL)) { in startAction() 168 } else if (intent.getAction().equals(Constants.ACTION_KILL_PROCESS)) { in startAction() 169 killProcess(intent); in startAction() 173 } else if (intent.getAction().equals(Constants.ACTION_SHOW_RUNNING_SCRIPTS)) { in startAction() 176 if (intent.getAction().equals(Constants.ACTION_LAUNCH_SERVER)) { in startAction() 177 proxy = launchServer(intent, false); in startAction() 183 else if (intent.getAction().equals(Constants.ACTION_LAUNCH_FOREGROUND_SCRIPT)) { in startAction() [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowApplication.java | 169 public void startActivity(Intent intent) { in startActivity() argument 170 verifyActivityInManifest(intent); in startActivity() 171 startedActivities.add(intent); in startActivity() 175 public void startActivity(Intent intent, Bundle options) { in startActivity() argument 176 verifyActivityInManifest(intent); in startActivity() 177 startedActivities.add(intent); in startActivity() 181 public ComponentName startService(Intent intent) { in startService() argument 182 startedServices.add(new Intent.FilterComparison(intent)); in startService() 183 if (intent.getComponent() != null) { in startService() 184 return intent.getComponent(); in startService() [all …]
|
D | ShadowApplicationPackageManager.java | 212 public ResolveInfo resolveActivity(Intent intent, int flags) { in resolveActivity() argument 213 List<ResolveInfo> candidates = queryIntentActivities(intent, flags); in resolveActivity() 255 public List<ResolveInfo> queryIntentServices(Intent intent, int flags) { in queryIntentServices() argument 257 List<ResolveInfo> resolveInfos = queryOverriddenIntents(intent, flags); in queryIntentServices() 266 IntentFilter intentFilter = matchIntentFilter(intent, service.intents, flags); in queryIntentServices() 281 public List<ResolveInfo> queryIntentServicesAsUser(Intent intent, int flags, int userId) { in queryIntentServicesAsUser() argument 282 return queryIntentServices(intent, flags); in queryIntentServicesAsUser() 286 public List<ResolveInfo> queryIntentActivities(Intent intent, int flags) { in queryIntentActivities() argument 287 List<ResolveInfo> resolveInfoList = queryOverriddenIntents(intent, flags); in queryIntentActivities() 290 if (isExplicitIntent(intent)) { in queryIntentActivities() [all …]
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/ |
D | RobolectricPackageManager.java | 76 public List<ResolveInfo> queryIntentActivities( Intent intent, int flags ) { in queryIntentActivities() argument 77 return queryIntent(intent, flags); in queryIntentActivities() 81 public List<ResolveInfo> queryIntentServices( Intent intent, int flags ) { in queryIntentServices() argument 82 return queryIntent(intent, flags); in queryIntentServices() 86 public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags) { in queryBroadcastReceivers() argument 87 return queryIntent(intent, flags); in queryBroadcastReceivers() 91 public ResolveInfo resolveActivity(Intent intent, int flags) { in resolveActivity() argument 92 List<ResolveInfo> candidates = queryIntentActivities(intent, flags); in resolveActivity() 97 public ResolveInfo resolveService(Intent intent, int flags) { in resolveService() argument 98 return resolveActivity(intent, flags); in resolveService() [all …]
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
D | AndroidFacade.java | 149 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 …]
|
D | ApplicationManagerFacade.java | 65 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 …]
|
D | BatteryManagerFacade.java | 79 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/ |
D | ComponentController.java | 16 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()
|
D | FragmentController.java | 26 public static <F extends Fragment> FragmentController<F> of(F fragment, Intent intent) { in of() argument 27 return new FragmentController<>(fragment, FragmentControllerActivity.class, intent); in of() 34 …public static <F extends Fragment> FragmentController<F> of(F fragment, Intent intent, Bundle argu… in of() argument 35 return new FragmentController<>(fragment, FragmentControllerActivity.class, intent, in of() 39 …ent> FragmentController<F> of(F fragment, Class<? extends Activity> activityClass, Intent intent) { in of() argument 40 return new FragmentController<>(fragment, activityClass, intent); in of() 48 Intent intent, Bundle arguments) { in of() argument 49 return new FragmentController<>(fragment, activityClass, intent, arguments); in of() 52 private FragmentController(F fragment, Class<? extends Activity> activityClass, Intent intent) { in FragmentController() argument 53 this(fragment, activityClass, intent, null); in FragmentController() [all …]
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowPendingIntent.java | 28 …public static PendingIntent getActivity(Context context, int requestCode, Intent intent, int flags… in getActivity() argument 29 return create(context, intent, true, false, false, requestCode); in getActivity() 33 …public static PendingIntent getBroadcast(Context context, int requestCode, Intent intent, int flag… in getBroadcast() argument 34 return create(context, intent, false, true, false, requestCode); in getBroadcast() 38 …public static PendingIntent getService(Context context, int requestCode, Intent intent, int flags)… in getService() argument 39 return create(context, intent, false, false, true, requestCode); in getService() 48 public void send(Context context, int code, Intent intent) throws CanceledException { in send() argument 49 savedIntent.fillIn(intent, 0 ); in send() 62 testIntentSender.intent = savedIntent; in getIntentSender() 84 Intent intent = null; in readPendingIntentOrNullFromParcel() local [all …]
|
D | ShadowApplication.java | 172 public void startActivity(Intent intent) { in startActivity() argument 173 startedActivities.add(intent); in startActivity() 178 public ComponentName startService(Intent intent) { in startService() argument 179 startedServices.add(intent); in startService() 197 public boolean bindService(Intent intent, final ServiceConnection serviceConnection, int i) { in bindService() argument 198 if (unbindableActions.contains(intent.getAction())) { in bindService() 201 startedServices.add(intent); in bindService() 322 public void sendBroadcast(Intent intent) { in sendBroadcast() argument 323 broadcastIntents.add(intent); in sendBroadcast() 328 if (wrapper.intentFilter.matchAction(intent.getAction())) { in sendBroadcast() [all …]
|
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
D | ConnectActivity.java | 139 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 …]
|
D | CallActivity.java | 201 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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/matchers/ |
D | StartedServiceMatcher.java | 88 Intent intent = createIntent(serviceClass); in createIntent() local 89 intent.putExtra(extraKey, extraValue); in createIntent() 90 return intent; in createIntent() 94 Intent intent = createIntent(serviceClass); in createIntent() local 95 intent.setAction(action); in createIntent() 96 return intent; in createIntent() 110 Intent intent = new Intent(); in createIntent() local 111 intent.setClassName(packageName, serviceClass.getName()); in createIntent() 112 intent.setClass(getShadowApplication().getApplicationContext(), serviceClass); in createIntent() 113 return intent; in createIntent()
|
D | StartedMatcher.java | 68 Intent intent = createIntent(activityClass); in createIntent() local 69 intent.putExtra(extraKey, extraValue); in createIntent() 70 return intent; in createIntent() 74 Intent intent = createIntent(activityClass); in createIntent() local 75 intent.setAction(action); in createIntent() 76 return intent; in createIntent() 85 Intent intent = new Intent(); in createIntent() local 86 intent.setClassName(packageName, activityClass.getName()); in createIntent() 87 return intent; in createIntent()
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ |
D | ScriptsLiveFolder.java | 38 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/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/ |
D | MockContext.java | 234 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/robolectric-shadows/robolectric/src/main/java/org/robolectric/ |
D | Robolectric.java | 47 …tatic <T extends Service> ServiceController<T> buildService(Class<T> serviceClass, Intent intent) { in buildService() argument 48 return ServiceController.of(ReflectionHelpers.callConstructor(serviceClass), intent); in buildService() 59 …ntentService> IntentServiceController<T> buildIntentService(Class<T> serviceClass, Intent intent) { in buildIntentService() argument 60 …erviceClass, new ReflectionHelpers.ClassParameter<String>(String.class, "IntentService")), intent); in buildIntentService() 83 …c <T extends Activity> ActivityController<T> buildActivity(Class<T> activityClass, Intent intent) { in buildActivity() argument 84 return ActivityController.of(ReflectionHelpers.callConstructor(activityClass), intent); in buildActivity() 105 …c <T extends Fragment> FragmentController<T> buildFragment(Class<T> fragmentClass, Intent intent) { in buildFragment() argument 106 return FragmentController.of(ReflectionHelpers.callConstructor(fragmentClass), intent); in buildFragment() 110 Intent intent, in buildFragment() argument 112 … return FragmentController.of(ReflectionHelpers.callConstructor(fragmentClass), intent, arguments); in buildFragment() [all …]
|