Searched refs:intent (Results 1 - 25 of 216) sorted by relevance

123456789

/external/sl4a/Common/src/com/googlecode/android_scripting/
H A DIntentBuilders.java38 Intent intent = new Intent();
39 intent.setComponent(Constants.TRIGGER_SERVICE_COMPONENT_NAME);
40 return intent;
44 * Builds an intent that will launch a script in the background.
48 * @return the intent that will launch the script
52 Intent intent = new Intent();
53 intent.setComponent(componentName);
54 intent.setAction(Constants.ACTION_LAUNCH_BACKGROUND_SCRIPT);
55 intent.putExtra(Constants.EXTRA_SCRIPT_PATH, script.getAbsolutePath());
56 return intent;
[all...]
/external/robolectric/v1/src/main/java/android/content/
H A DTestIntentSender.java4 public Intent intent; field in class:TestIntentSender
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/
H A DTestBroadcastReceiver.java9 public Intent intent; field in class:TestBroadcastReceiver
12 public void onReceive(Context context, Intent intent) { argument
14 this.intent = intent;
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
H A DIntentTest.java37 Intent intent = new Intent();
38 assertSame(intent, intent.putExtra("foo", "bar"));
39 assertEquals("bar", intent.getExtras().get("foo"));
44 Intent intent = new Intent();
46 assertSame(intent, intent.putExtra("foo", cs));
47 assertSame(cs, intent.getExtras().get("foo"));
52 Intent intent = new Intent();
53 assertSame(intent, inten
[all...]
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
H A DLauncherUtils.java52 Intent intent = new Intent(context, PollingService.class);
53 return (context.startService(intent) != null);
64 Intent intent = new Intent(context, PollingService.class);
65 return context.stopService(intent);
71 Intent intent = new Intent(context, EABService.class);
72 return (context.startService(intent) != null);
78 Intent intent = new Intent(context, EABService.class);
79 return context.stopService(intent);
H A DPersistService.java80 public int onStartCommand(Intent intent, int flags, int startId) { argument
81 if(intent == null) {
85 if(RcsPresence.ACTION_PRESENCE_CHANGED.equals(intent.getAction())) {
88 msg.obj = intent;
91 } else if(RcsPresence.ACTION_PUBLISH_STATE_CHANGED.equals(intent.getAction())) {
94 msg.obj = intent;
98 logger.debug("unknown intent=" + intent);
110 public IBinder onBind(Intent intent) { argument
133 Intent intent
194 handlePresence(Intent intent) argument
[all...]
H A DDeviceShutdown.java47 public void onReceive(Context context, Intent intent) { argument
48 logger.debug("onReceive() in PresencePolling, intent: " +
49 intent + ", context: " + context);
H A DAlarmBroadcastReceiver.java50 public void onReceive(Context context, Intent intent) { argument
51 logger.info("onReceive(), intent: " + intent +
54 String action = intent.getAction();
58 int pollingType = intent.getIntExtra("pollingType",
65 long id = intent.getLongExtra("pollingTaskId", -1);
71 String number = intent.getStringExtra(Contacts.NEW_PHONE_NUMBER);
75 logger.debug("No interest in this intent: " + action);
/external/libmojo/base/android/java/src/org/chromium/base/
H A DPowerStatusReceiver.java15 * It's instantiated by the framework via the application intent-filter
20 public void onReceive(Context context, Intent intent) { argument
21 PowerMonitor.onBatteryChargingChanged(intent);
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
H A DScriptsLiveFolder.java38 final Intent intent = getIntent();
39 final String action = intent.getAction();
49 final Intent intent = new Intent();
50 intent.setData(uri);
51 intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_NAME, name);
52 intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_ICON, ShortcutIconResource
54 intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_DISPLAY_MODE, LiveFolders.DISPLAY_MODE_LIST);
55 return intent;
H A DScriptingLayerServiceLauncher.java36 // Forward the intent that launched us to start the service.
39 Intent intent = getIntent();
40 intent.setComponent(Constants.SL4A_SERVICE_COMPONENT_NAME);
41 startService(intent);
H A DScriptingLayerService.java84 public IBinder onBind(Intent intent) { argument
159 private void startAction(Intent intent, int flags, int startId) { argument
163 if (intent == null) {
164 } else if (intent.getAction().equals(Constants.ACTION_KILL_ALL)) {
167 } else if (intent.getAction().equals(Constants.ACTION_KILL_PROCESS)) {
168 killProcess(intent);
172 } else if (intent.getAction().equals(Constants.ACTION_SHOW_RUNNING_SCRIPTS)) {
175 if (intent.getAction().equals(Constants.ACTION_LAUNCH_SERVER)) {
176 proxy = launchServer(intent, false);
182 else if (intent
213 onStartCommand(Intent intent, int flags, int startId) argument
241 launchServer(Intent intent, boolean requiresHandshake) argument
254 launchScript(Intent intent, AndroidProxy proxy) argument
270 launchInterpreter(Intent intent, AndroidProxy proxy) argument
325 killProcess(Intent intent) argument
[all...]
/external/svox/pico/src/com/svox/pico/
H A DVoiceDataInstallerReceiver.java34 public void onReceive(Context context, Intent intent) { argument
35 if (Intent.ACTION_PACKAGE_ADDED.equals(intent.getAction())
36 && INSTALLER_PACKAGE.equals(getPackageName(intent))) {
47 * Returns the name of the package that was added from the intent.
48 * @param intent the {@link Intent}
50 private static String getPackageName(Intent intent) { argument
51 return intent.getData().getSchemeSpecificPart();
H A DLangPackUninstaller.java33 public void onReceive(Context context, Intent intent) { argument
39 * Returns the name of the package that was added from the intent.
40 * @param intent the {@link Intent}
42 private static String getPackageName(Intent intent) { argument
43 return intent.getData().getSchemeSpecificPart();
/external/robolectric/v1/src/main/java/com/foo/
H A DReceiver.java10 public void onReceive(Context context, Intent intent) { argument
/external/robolectric/v1/src/main/java/com/xtremelabs/
H A DConfigTestReceiver.java10 public void onReceive(Context context, Intent intent) { argument
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/
H A DDotConfigTestReceiver.java10 public void onReceive(Context context, Intent intent) { argument
/external/volley/src/main/java/com/android/volley/
H A DAuthFailureError.java26 /** An intent that can be used to resolve this exception. (Brings up the password dialog.) */
31 public AuthFailureError(Intent intent) { argument
32 mResolutionIntent = intent;
/external/ims/rcs/rcsservice/src/com/android/service/ims/presence/
H A DAlarmBroadcastReceiver.java51 public void onReceive(Context context, Intent intent) { argument
52 String action = intent.getAction();
53 logger.info("onReceive intent: " + action);
55 // this could happen when there is a crash and the previous broadcasted intent
64 int times = intent.getIntExtra("times", -1);
67 int taskId = intent.getIntExtra("taskId", -1);
71 int sipCode = intent.getIntExtra("sipCode", 888);
78 logger.debug("not interest in intent=" + intent);
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/matchers/
H A DStartedServiceMatcher.java40 * Check if the class of the intent and the keys of the intent's extras match
48 message = "null intent (did you mean to expect null?)";
65 // Test only that we are sending intent to the right service class
70 // Test that both intent extras have the same keys
88 Intent intent = createIntent(serviceClass);
89 intent.putExtra(extraKey, extraValue);
90 return intent;
94 Intent intent = createIntent(serviceClass);
95 intent
[all...]
H A DStartedMatcher.java39 message = "null intent (did you mean to expect null?)";
68 Intent intent = createIntent(activityClass);
69 intent.putExtra(extraKey, extraValue);
70 return intent;
74 Intent intent = createIntent(activityClass);
75 intent.setAction(action);
76 return intent;
85 Intent intent = new Intent();
86 intent.setClassName(packageName, activityClass.getName());
87 return intent;
[all...]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
H A DRobolectricPackageManager.java76 public List<ResolveInfo> queryIntentActivities( Intent intent, int flags ) { argument
77 return queryIntent(intent, flags);
81 public List<ResolveInfo> queryIntentServices( Intent intent, int flags ) { argument
82 return queryIntent(intent, flags);
86 public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags) { argument
87 return queryIntent(intent, flags);
91 public ResolveInfo resolveActivity(Intent intent, int flags) { argument
92 List<ResolveInfo> candidates = queryIntentActivities(intent, flags);
97 public ResolveInfo resolveService(Intent intent, int flags) { argument
98 return resolveActivity(intent, flag
101 addResolveInfoForIntent( Intent intent, List<ResolveInfo> info ) argument
105 addResolveInfoForIntent(Intent intent, ResolveInfo info) argument
115 getActivityIcon(Intent intent) argument
128 addActivityIcon( Intent intent, Drawable d ) argument
192 queryIntent(Intent intent, int flags) argument
[all...]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowNfcAdapter.java19 private PendingIntent intent; field in class:ShadowNfcAdapter
42 public void enableForegroundDispatch(Activity activity, PendingIntent intent, IntentFilter[] filters, String[][] techLists) { argument
44 this.intent = intent;
59 return intent;
/external/sl4a/Common/src/com/googlecode/android_scripting/trigger/
H A DScriptTrigger.java43 Intent intent = IntentBuilders.buildStartInBackgroundIntent(mScript);
45 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
46 context.startActivity(intent);
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/locale/
H A DLocaleReceiver.java32 public void onReceive(Context context, Intent intent) { argument
35 new File(intent.getBundleExtra(com.twofortyfouram.locale.platform.Intent.EXTRA_BUNDLE)
39 if (intent.getBooleanExtra(Constants.EXTRA_LAUNCH_IN_BACKGROUND, false)) {

Completed in 1061 milliseconds

123456789