Home
last modified time | relevance | path

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

12345678910>>...22

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DIntentTest.java37 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 …]
DPendingIntentTest.java32 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/
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()
DAlarmBroadcastReceiver.java49 public void onReceive(Context context, Intent intent) { in onReceive() argument
50 logger.info("onReceive(), intent: " + intent + in onReceive()
53 String action = intent.getAction(); in onReceive()
57 int pollingType = intent.getIntExtra("pollingType", in onReceive()
64 long id = intent.getLongExtra("pollingTaskId", -1); in onReceive()
70 String number = intent.getStringExtra(Contacts.NEW_PHONE_NUMBER); in onReceive()
DPresenceBroadcastReceiver.java43 public void onReceive(Context context, Intent intent) { in onReceive() argument
44 logger.print("onReceive(), intent: " + intent + in onReceive()
47 String action = intent.getAction(); in onReceive()
49 intent.setClass(context, PersistService.class); in onReceive()
50 context.startService(intent); in onReceive()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
DScriptingLayerService.java85 public IBinder onBind(Intent intent) { in onBind() argument
149 public int onStartCommand(Intent intent, int flags, int startId) { in onStartCommand() argument
150 super.onStartCommand(intent, flags, startId); in onStartCommand()
152 if (intent == null) { in onStartCommand()
155 if (intent.getAction().equals(Constants.ACTION_KILL_ALL)) { in onStartCommand()
161 if (intent.getAction().equals(Constants.ACTION_KILL_PROCESS)) { in onStartCommand()
162 killProcess(intent); in onStartCommand()
169 if (intent.getAction().equals(Constants.ACTION_SHOW_RUNNING_SCRIPTS)) { in onStartCommand()
184 if (intent.getAction().equals(Constants.ACTION_LAUNCH_SERVER)) { in onStartCommand()
185 proxy = launchServer(intent, false); in onStartCommand()
[all …]
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/v1/src/main/java/com/xtremelabs/robolectric/res/
DRobolectricPackageManager.java76 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/
DAndroidFacade.java146 public Intent startActivityForResult(final Intent intent) { in startActivityForResult() argument
152 startActivityForResult(intent, 0); in startActivityForResult()
154 intent.putExtra("EXCEPTION", e.getMessage()); in startActivityForResult()
155 setResult(intent); in startActivityForResult()
175 public int startActivityForResultCodeWithTimeout(final Intent intent, in startActivityForResultCodeWithTimeout() argument
182 startActivityForResult(intent, request); in startActivityForResultCodeWithTimeout()
184 intent.putExtra("EXCEPTION", e.getMessage()); in startActivityForResultCodeWithTimeout()
209 Intent intent) throws JSONException { in putExtrasFromJsonObject() argument
218 intent.putExtra(name, (Integer) data); in putExtrasFromJsonObject()
221 intent.putExtra(name, (Float) data); in putExtrasFromJsonObject()
[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/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowPendingIntent.java28 …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 …]
DShadowApplication.java172 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/
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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/matchers/
DStartedServiceMatcher.java88 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()
DStartedMatcher.java68 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/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothPairingHelper.java40 public void onReceive(Context c, Intent intent) { in onReceive() argument
41 String action = intent.getAction(); in onReceive()
44 BluetoothDevice mDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive()
46 int type = intent.getIntExtra(BluetoothDevice.EXTRA_PAIRING_VARIANT, BluetoothDevice.ERROR); in onReceive()
48 int pin = intent.getIntExtra(BluetoothDevice.EXTRA_PAIRING_KEY,0); in onReceive()
61 … int type = intent.getIntExtra(BluetoothDevice.EXTRA_ACCESS_REQUEST_TYPE, BluetoothDevice.ERROR); in onReceive()
67 String mReturnPackage = intent.getStringExtra(BluetoothDevice.EXTRA_PACKAGE_NAME); in onReceive()
68 String mReturnClass = intent.getStringExtra(BluetoothDevice.EXTRA_CLASS_NAME); in onReceive()
69 int mRequestType = intent.getIntExtra(BluetoothDevice.EXTRA_ACCESS_REQUEST_TYPE, in onReceive()
/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/ims/rcs/rcsservice/src/com/android/service/ims/presence/
DAlarmBroadcastReceiver.java51 public void onReceive(Context context, Intent intent) { in onReceive() argument
52 String action = intent.getAction(); in onReceive()
64 int times = intent.getIntExtra("times", -1); in onReceive()
67 int taskId = intent.getIntExtra("taskId", -1); in onReceive()
71 int sipCode = intent.getIntExtra("sipCode", 888); in onReceive()
78 logger.debug("not interest in intent=" + intent); in onReceive()
/external/svox/pico/src/com/svox/pico/
DVoiceDataInstallerReceiver.java34 public void onReceive(Context context, Intent intent) { in onReceive() argument
35 if (Intent.ACTION_PACKAGE_ADDED.equals(intent.getAction()) in onReceive()
36 && INSTALLER_PACKAGE.equals(getPackageName(intent))) { in onReceive()
50 private static String getPackageName(Intent intent) { in getPackageName() argument
51 return intent.getData().getSchemeSpecificPart(); in getPackageName()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/
DTestBroadcastReceiver.java9 public Intent intent; field in TestBroadcastReceiver
12 public void onReceive(Context context, Intent intent) { in onReceive() argument
14 this.intent = intent; in onReceive()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/view/
DTestMenuItem.java17 private Intent intent; field in TestMenuItem
92 public MenuItem setIntent(Intent intent) { in setIntent() argument
93 this.intent = intent; in setIntent()
99 return this.intent; in getIntent()
197 } else if (enabled && intent != null) { in click()
198 Robolectric.application.startActivity(intent); in click()
/external/zxing/qr_scanner/src/com/google/zxing/client/android/
DCaptureActivity.java119 Intent intent = getIntent(); in onResume() local
120 String action = intent == null ? null : intent.getAction(); in onResume()
121 String dataString = intent == null ? null : intent.getDataString(); in onResume()
122 if (intent != null && action != null) { in onResume()
124 if (intent.hasExtra(Intents.Scan.WIDTH) && intent.hasExtra(Intents.Scan.HEIGHT)) { in onResume()
125 int width = intent.getIntExtra(Intents.Scan.WIDTH, 0); in onResume()
126 int height = intent.getIntExtra(Intents.Scan.HEIGHT, 0); in onResume()
132 characterSet = intent.getStringExtra(Intents.Scan.CHARACTER_SET); in onResume()

12345678910>>...22