Home
last modified time | relevance | path

Searched refs:extras (Results 1 – 25 of 29) sorted by relevance

12

/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DCarHelper.java37 public static void setSlotReservationFlags(Bundle extras, boolean reservePlayingQueueSlot, in setSlotReservationFlags() argument
40 extras.putBoolean(SLOT_RESERVATION_QUEUE, true); in setSlotReservationFlags()
42 extras.remove(SLOT_RESERVATION_QUEUE); in setSlotReservationFlags()
45 extras.putBoolean(SLOT_RESERVATION_SKIP_TO_PREV, true); in setSlotReservationFlags()
47 extras.remove(SLOT_RESERVATION_SKIP_TO_PREV); in setSlotReservationFlags()
50 extras.putBoolean(SLOT_RESERVATION_SKIP_TO_NEXT, true); in setSlotReservationFlags()
52 extras.remove(SLOT_RESERVATION_SKIP_TO_NEXT); in setSlotReservationFlags()
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarmUtil.java49 Bundle extras = writeAlarm(alarm); in scheduleAlarm() local
50 intent.putExtras(extras); in scheduleAlarm()
100 public static Alarm readAlarm(Bundle extras) { in readAlarm() argument
101 int id = extras.getInt(AlarmIntentService.KEY_ALARM_ID); in readAlarm()
102 int month = extras.getInt(AlarmIntentService.KEY_ALARM_MONTH); in readAlarm()
103 int date = extras.getInt(AlarmIntentService.KEY_ALARM_DATE); in readAlarm()
104 int hour = extras.getInt(AlarmIntentService.KEY_ALARM_HOUR); in readAlarm()
105 int minute = extras.getInt(AlarmIntentService.KEY_ALARM_MINUTE); in readAlarm()
111 Bundle extras = new Bundle(); in writeAlarm() local
112 extras.putInt(AlarmIntentService.KEY_ALARM_ID, alarm.id); in writeAlarm()
[all …]
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DContentActivity.java18 Bundle extras = getIntent().getExtras(); in onCreate() local
19 if (extras != null) { in onCreate()
22 mThemeId = extras.getInt("theme"); in onCreate()
34 if (extras != null) { in onCreate()
36 int category = extras.getInt("category"); in onCreate()
37 int position = extras.getInt("position"); in onCreate()
/development/samples/browseable/DirectShare/src/com.example.android.directshare/
DSampleChooserTargetService.java44 Bundle extras = new Bundle(); in onGetChooserTargets() local
45 extras.putInt(Contact.ID, i); in onGetChooserTargets()
58 extras)); in onGetChooserTargets()
/development/samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/
DGetRestrictionsReceiver.java119 Bundle extras = new Bundle(); in createRestrictions() local
120 extras.putParcelableArrayList(Intent.EXTRA_RESTRICTIONS_LIST, newEntries); in createRestrictions()
121 result.setResult(Activity.RESULT_OK, null, extras); in createRestrictions()
143 final Bundle extras = new Bundle(); in createRestrictions() local
155 extras.putParcelable(Intent.EXTRA_RESTRICTIONS_INTENT, customIntent); in createRestrictions()
158 extras.putParcelableArrayList(Intent.EXTRA_RESTRICTIONS_LIST, newEntries); in createRestrictions()
159 result.setResult(Activity.RESULT_OK, null, extras); in createRestrictions()
/development/samples/ApiDemos/src/com/example/android/apis/os/
DSmsMessageReceiver.java34 Bundle extras = intent.getExtras(); in onReceive() local
35 if (extras == null) in onReceive()
38 Object[] pdus = (Object[]) extras.get("pdus"); in onReceive()
/development/samples/StackWidget/src/com/example/android/stackwidget/
DStackWidgetService.java86 Bundle extras = new Bundle(); in getViewAt() local
87 extras.putInt(StackWidgetProvider.EXTRA_ITEM, position); in getViewAt()
89 fillInIntent.putExtras(extras); in getViewAt()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DInstallApkSessionApi.java109 Bundle extras = intent.getExtras(); in onNewIntent() local
111 int status = extras.getInt(PackageInstaller.EXTRA_STATUS); in onNewIntent()
112 String message = extras.getString(PackageInstaller.EXTRA_STATUS_MESSAGE); in onNewIntent()
117 Intent confirmIntent = (Intent) extras.get(Intent.EXTRA_INTENT); in onNewIntent()
/development/samples/browseable/AppShortcuts/src/com.example.android.appshortcuts/
DShortcutHelper.java134 final PersistableBundle extras = shortcut.getExtras(); in refreshShortcuts() local
135 if (extras != null && extras.getLong(EXTRA_LAST_REFRESH) >= staleThreshold) { in refreshShortcuts()
190 final PersistableBundle extras = new PersistableBundle(); in setExtras() local
191 extras.putLong(EXTRA_LAST_REFRESH, System.currentTimeMillis()); in setExtras()
192 b.setExtras(extras); in setExtras()
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/
DWeatherWidgetService.java91 final Bundle extras = new Bundle(); in getViewAt() local
92 extras.putString(WeatherWidgetProvider.EXTRA_DAY_ID, day); in getViewAt()
93 fillInIntent.putExtras(extras); in getViewAt()
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/
DShortcutHelper.java136 final PersistableBundle extras = shortcut.getExtras(); in refreshShortcuts() local
137 if (extras != null && extras.getLong(EXTRA_LAST_REFRESH) >= staleThreshold) { in refreshShortcuts()
193 final PersistableBundle extras = new PersistableBundle(); in setExtras() local
194 extras.putLong(EXTRA_LAST_REFRESH, System.currentTimeMillis()); in setExtras()
195 b.setExtras(extras); in setExtras()
/development/samples/ApiDemos/src/com/example/android/apis/appwidget/
DExampleAppWidgetConfigure.java70 Bundle extras = intent.getExtras(); in onCreate() local
71 if (extras != null) { in onCreate()
72 mAppWidgetId = extras.getInt( in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/media/
DMediaPlayerDemo_Audio.java47 Bundle extras = getIntent().getExtras(); in onCreate() local
48 playAudio(extras.getInt(MEDIA)); in onCreate()
DMediaPlayerDemo_Video.java46 private Bundle extras; field in MediaPlayerDemo_Video
68 extras = getIntent().getExtras(); in onCreate()
181 playVideo(extras.getInt(MEDIA)); in surfaceCreated()
/development/samples/browseable/DragAndDropAcrossApps/DropTarget/src/com.example.android/droptarget/
DDropTargetFragment.java171 PersistableBundle extras = clipDescription.getExtras(); in getExtra() local
172 if (extras != null) { in getExtra()
173 return extras.getString(EXTRA_IMAGE_INFO); in getExtra()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DPrintHtmlOffScreen.java108 Bundle extras) { in doPrint()
110 callback, extras); in doPrint()
/development/samples/browseable/DragAndDropAcrossApps/DragSource/src/com.example.android/dragsource/
DDragSourceFragment.java163 PersistableBundle extras = new PersistableBundle(1); in setUpDraggableImage()
165 extras.putString(EXTRA_IMAGE_INFO, in setUpDraggableImage()
167 clipDescription.setExtras(extras); in setUpDraggableImage()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DMusicService.java171 Bundle extras = new Bundle(); in onCreate() local
172 CarHelper.setSlotReservationFlags(extras, true, true, true); in onCreate()
173 mSession.setExtras(extras); in onCreate()
359 public void onPlayFromMediaId(String mediaId, Bundle extras) { in onPlayFromMediaId() argument
360 LogHelper.d(TAG, "playFromMediaId mediaId:", mediaId, " extras=", extras); in onPlayFromMediaId()
438 public void onCustomAction(String action, Bundle extras) { in onCustomAction() argument
455 public void onPlayFromSearch(String query, Bundle extras) { in onPlayFromSearch() argument
/development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/
DMainActivity.java145 PersistableBundle extras = new PersistableBundle(); in scheduleJob() local
150 extras.putLong(WORK_DURATION_KEY, Long.valueOf(workDuration) * 1000); in scheduleJob()
152 builder.setExtras(extras); in scheduleJob()
/development/samples/training/basic/ActivityLifecycle/
Dbuild.properties17 extensible.classpath=${sdk.dir}/extras/android/support/v13/android-support-v13.jar
/development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/
DCardService.java85 public byte[] processCommandApdu(byte[] commandApdu, Bundle extras) { in processCommandApdu() argument
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyNetworkMonitor.java43 public void performReceive(Intent intent, int resultCode, String data, Bundle extras, in performReceive() argument
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/
DSyncAdapter.java67 public void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument
/development/samples/browseable/DataLayer/Application/src/com.example.android.wearable.datalayer/
DMainActivity.java167 Bundle extras = data.getExtras(); in onActivityResult() local
168 mImageBitmap = (Bitmap) extras.get("data"); in onActivityResult()
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/
DSyncAdapter.java135 public void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument

12