/developers/samples/android/background/JobScheduler/Application/src/main/java/com/example/android/jobscheduler/service/ |
MyJobService.java | 21 import android.content.Intent; 64 public int onStartCommand(Intent intent, int flags, int startId) { 65 mActivityMessenger = intent.getParcelableExtra(MESSENGER_INTENT_KEY); 105 // only exists when the MainActivity calls startService() with the callback in the Intent.
|
/developers/samples/android/content/DirectShare/Application/src/main/java/com/example/android/directshare/ |
SelectContactActivity.java | 20 import android.content.Intent; 41 = "com.example.android.directshare.intent.action.SELECT_CONTACT"; 47 Intent intent = getIntent(); local 48 if (!ACTION_SELECT_CONTACT.equals(intent.getAction())) { 91 Intent data = new Intent();
|
/developers/samples/android/notification/CustomNotifications/Application/src/main/java/com/example/android/customnotifications/ |
MainActivity.java | 22 import android.content.Intent; 49 // BEGIN_INCLUDE(intent) 50 //Create Intent to launch this Activity again if the notification is clicked. 51 Intent i = new Intent(this, MainActivity.class); 52 i.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); 53 PendingIntent intent = PendingIntent.getActivity(this, 0, i, local 55 builder.setContentIntent(intent); 56 // END_INCLUDE(intent)
|
/developers/samples/android/security/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/ |
AlarmIntentService.java | 25 import android.content.Intent; 54 protected void onHandleIntent(Intent intent) { 56 Alarm alarm = AlarmUtil.readAlarm(intent.getExtras()); 71 Intent wentOffIntent = new Intent(ALARM_WENT_OFF_ACTION);
|
/development/apps/BuildWidget/src/com/android/buildwidget/ |
BuildWidget.java | 25 import android.content.Intent; 46 context.startService(new Intent(context, UpdateService.class)); 51 public void onStart(Intent intent, int startId) { 69 new Intent(android.provider.Settings.ACTION_DEVICE_INFO_SETTINGS), 82 public IBinder onBind(Intent intent) {
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
NotificationBackgroundService.java | 29 import android.content.Intent; 41 public int onStartCommand(Intent intent, int flags, int startId) { 49 public IBinder onBind(Intent intent) { 74 new Intent(this, NotificationBackgroundService.class), 0); 83 .setContentIntent(contentIntent) // The intent to send when the entry is clicked
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
SmsMessageReceiver.java | 21 import android.content.Intent; 33 public void onReceive(Context context, Intent intent) { 34 Bundle extras = intent.getExtras(); 66 Intent di = new Intent(); 68 di.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
/development/samples/browseable/CustomNotifications/src/com.example.android.customnotifications/ |
MainActivity.java | 22 import android.content.Intent; 49 // BEGIN_INCLUDE(intent) 50 //Create Intent to launch this Activity again if the notification is clicked. 51 Intent i = new Intent(this, MainActivity.class); 52 i.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); 53 PendingIntent intent = PendingIntent.getActivity(this, 0, i, local 55 builder.setContentIntent(intent); 56 // END_INCLUDE(intent)
|
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/ |
AlarmIntentService.java | 25 import android.content.Intent; 54 protected void onHandleIntent(Intent intent) { 56 Alarm alarm = AlarmUtil.readAlarm(intent.getExtras()); 71 Intent wentOffIntent = new Intent(ALARM_WENT_OFF_ACTION);
|
/development/samples/browseable/DirectShare/src/com.example.android.directshare/ |
SelectContactActivity.java | 20 import android.content.Intent; 41 = "com.example.android.directshare.intent.action.SELECT_CONTACT"; 47 Intent intent = getIntent(); local 48 if (!ACTION_SELECT_CONTACT.equals(intent.getAction())) { 91 Intent data = new Intent();
|
/development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/service/ |
MyJobService.java | 21 import android.content.Intent; 64 public int onStartCommand(Intent intent, int flags, int startId) { 65 mActivityMessenger = intent.getParcelableExtra(MESSENGER_INTENT_KEY); 105 // only exists when the MainActivity calls startService() with the callback in the Intent.
|
/development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/ |
Notepadv2.java | 20 import android.content.Intent; 115 protected void onActivityResult(int requestCode, int resultCode, Intent intent) { 116 super.onActivityResult(requestCode, resultCode, intent);
|
/external/ims/rcs/rcsservice/src/com/android/service/ims/ |
RcsService.java | 35 import android.content.Intent; 122 public void onReceive(Context context, Intent intent) { 123 logger.print("onReceive intent=" + intent); 125 intent.getAction())){ 128 intent.getAction())){ 131 intent.getAction())) { 132 String stateExtra = intent.getStringExtra( 170 public int onStartCommand(Intent intent, int flags, int startId) [all...] |
/external/libmojo/base/android/java/src/org/chromium/base/ |
PowerMonitor.java | 8 import android.content.Intent; 60 IntentFilter ifilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); 61 Intent batteryStatusIntent = context.registerReceiver(null, ifilter); 69 public static void onBatteryChargingChanged(Intent intent) { 71 // We may be called by the framework intent-filter before being fully initialized. This 75 int chargePlug = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
|
/external/pdfium/core/fxcodec/codec/ |
fx_codec_icc.cpp | 60 int intent, 114 TYPE_GRAY_8, intent, 0); 118 TYPE_BGR_8, intent, 0); 123 T_DOSWAP(dwDstFormat) ? TYPE_KYMC_8 : TYPE_CMYK_8, intent, 0); 145 int32_t intent, 148 nullptr, 0, 3, intent, dwSrcFormat); 219 int32_t intent, 222 intent, dwSrcFormat); [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
LevelSelectActivity.java | 21 import android.content.Intent; 246 Intent intent = new Intent(); local 248 intent.putExtra("resource", selectedLevel.level.resource); 249 intent.putExtra("row", selectedLevel.x); 250 intent.putExtra("index", selectedLevel.y); 254 mButtonFlickerAnimation.setAnimationListener(new EndActivityAfterAnimation(intent)); 256 setResult(RESULT_OK, intent); 358 private Intent mIntent [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/content/pm/ |
StubPackageManager.java | 4 import android.content.Intent; 37 @Override public Intent getLaunchIntentForPackage(String packageName) { 140 @Override public ResolveInfo resolveActivity(Intent intent, int flags) { 144 @Override public List<ResolveInfo> queryIntentActivities(Intent intent, int flags) { 149 public List<ResolveInfo> queryIntentActivityOptions(ComponentName caller, Intent[] specifics, Intent intent, int flags) { 153 @Override public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags) [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
LocalBroadcastManagerTest.java | 5 import android.content.Intent; 32 public void onReceive(Context context, Intent intent) { 39 instance.sendBroadcast(new Intent("com.bar")); 41 instance.sendBroadcast(new Intent("com.foo")); 52 public void onReceive(Context context, Intent intent) { 59 instance.sendBroadcast(new Intent("com.foo"));
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/ |
MediaScannerFacade.java | 22 import android.content.Intent; 57 public void onReceive(Context context, Intent intent) { 58 String action = intent.getAction(); 59 if(action.equals(Intent.ACTION_MEDIA_SCANNER_FINISHED)) { 69 mService.sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, 72 new IntentFilter(Intent.ACTION_MEDIA_SCANNER_FINISHED)); 77 mService.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.parse(path))) [all...] |
/external/volley/src/main/java/com/android/volley/toolbox/ |
AndroidAuthenticator.java | 26 import android.content.Intent; 101 Intent intent = result.getParcelable(AccountManager.KEY_INTENT); local 102 throw new AuthFailureError(intent);
|
/frameworks/base/core/java/android/preference/ |
PreferenceActivity.java | 29 import android.content.Intent; 139 * When starting this activity, the invoking Intent can contain this extra 171 * When starting this activity, the invoking Intent can contain this extra 419 * Intent to launch when the preference is selected. 421 public Intent intent; field in class:PreferenceActivity.Header 500 if (intent != null) { 502 intent.writeToParcel(dest, flags); 523 intent = Intent.CREATOR.createFromParcel(in) 662 Intent intent = getIntent(); local 1124 Intent intent = new Intent(Intent.ACTION_MAIN); local 1163 Intent intent = onBuildStartFragmentIntent(fragmentName, args, titleRes, shortTitleRes); local [all...] |
/frameworks/base/core/java/android/service/dreams/ |
Sandman.java | 21 import android.content.Intent; 51 * Returns true if the specified dock app intent should be started. 54 public static boolean shouldStartDockApp(Context context, Intent intent) { 55 ComponentName name = intent.resolveActivity(context.getPackageManager());
|
/frameworks/base/location/java/android/location/ |
ILocationManager.aidl | 43 in PendingIntent intent, String packageName); 44 void removeUpdates(in ILocationListener listener, in PendingIntent intent, String packageName); 47 in PendingIntent intent, String packageName); 48 void removeGeofence(in Geofence fence, in PendingIntent intent, String packageName);
|
/frameworks/base/media/java/android/media/midi/ |
MidiDeviceService.java | 21 import android.content.Intent; 35 * an intent filter with the {@link #SERVICE_INTERFACE} action 41 * <intent-filter> 43 * </intent-filter> 138 public IBinder onBind(Intent intent) { 139 if (SERVICE_INTERFACE.equals(intent.getAction()) && mServer != null) {
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
ProvisionObserver.java | 25 import android.content.Intent; 90 public static boolean isDeferredForProvision(Context context, Intent intent) { 95 switch(intent.getAction()) {
|