/developers/build/prebuilts/gradle/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
TimerNotificationService.java | 25 import android.content.Intent; 47 protected void onHandleIntent(Intent intent) { 49 Log.d(TAG, "onHandleIntent called with intent: " + intent); 51 String action = intent.getAction(); 64 Intent dialogIntent = new Intent(this, SetTimerActivity.class); 65 dialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 76 Intent intent = new Intent(Constants.ACTION_SHOW_ALARM, null, this local [all...] |
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/ |
MultiplePartitionsActivity.java | 19 import android.content.Intent; 53 public static Intent getStartActivityIntent(Context context) { 54 Intent intent = new Intent(context, MultiplePartitionsActivity.class); local 55 return intent; 78 Intent intent = getIntent(); local 79 if (intent != null) { 80 int newType = intent.getIntExtra("dateType", -1) [all...] |
/developers/samples/android/wearable/wear/Geofencing/Wearable/src/main/java/com/example/android/wearable/geofencing/ |
CheckInAndDeleteDataItemsService.java | 26 import android.content.Intent; 64 protected void onHandleIntent(Intent intent) { 65 if (ACTION_CHECK_IN.equals(intent.getAction())) { 72 } else if (!ACTION_DELETE_DATA_ITEM.equals(intent.getAction())) { 74 // (which causes an intent with ACTION_DELETE_DATA_ITEM). 75 Log.e(TAG, "Unrecognized action: " + intent.getAction()); 82 Uri dataItemUri = intent.getData(); 105 Intent confirmationActivity = new Intent(this, ConfirmationActivity.class [all...] |
/developers/samples/android/wearable/wear/SynchronizedNotifications/Application/src/main/java/com/example/android/wearable/synchronizednotifications/ |
DismissListener.java | 21 import android.content.Intent; 71 public int onStartCommand(Intent intent, int flags, int startId) { 72 if (null != intent) { 73 String action = intent.getAction(); 77 int notificationId = intent.getIntExtra(Constants.KEY_NOTIFICATION_ID, -1); 83 return super.onStartCommand(intent, flags, startId);
|
/developers/samples/android/wearable/wear/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
TimerNotificationService.java | 25 import android.content.Intent; 47 protected void onHandleIntent(Intent intent) { 49 Log.d(TAG, "onHandleIntent called with intent: " + intent); 51 String action = intent.getAction(); 64 Intent dialogIntent = new Intent(this, SetTimerActivity.class); 65 dialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 76 Intent intent = new Intent(Constants.ACTION_SHOW_ALARM, null, this local [all...] |
/development/samples/browseable/DoneBar/src/com.example.android.donebar/ |
MainActivity.java | 21 import android.content.Intent; 59 startActivity(mSamples[position].intent); 96 Intent intent; field in class:MainActivity.Sample 98 private Sample(int titleResId, int descriptionResId, Intent intent) { 99 this.intent = intent; 107 new Intent(MainActivity.this, activityClass));
|
/development/samples/browseable/Geofencing/Wearable/src/com.example.android.wearable.geofencing/ |
CheckInAndDeleteDataItemsService.java | 26 import android.content.Intent; 64 protected void onHandleIntent(Intent intent) { 65 if (ACTION_CHECK_IN.equals(intent.getAction())) { 72 } else if (!ACTION_DELETE_DATA_ITEM.equals(intent.getAction())) { 74 // (which causes an intent with ACTION_DELETE_DATA_ITEM). 75 Log.e(TAG, "Unrecognized action: " + intent.getAction()); 82 Uri dataItemUri = intent.getData(); 105 Intent confirmationActivity = new Intent(this, ConfirmationActivity.class [all...] |
/development/samples/browseable/NavigationDrawer/src/com.example.android.navigationdrawer/ |
MainActivity.java | 21 import android.content.Intent; 57 startActivity(mSamples[position].intent); 94 Intent intent; field in class:MainActivity.Sample 96 private Sample(int titleResId, int descriptionResId, Intent intent) { 97 this.intent = intent; 105 new Intent(MainActivity.this, activityClass));
|
/development/samples/browseable/SynchronizedNotifications/Application/src/com.example.android.wearable.synchronizednotifications/ |
DismissListener.java | 21 import android.content.Intent; 71 public int onStartCommand(Intent intent, int flags, int startId) { 72 if (null != intent) { 73 String action = intent.getAction(); 77 int notificationId = intent.getIntExtra(Constants.KEY_NOTIFICATION_ID, -1); 83 return super.onStartCommand(intent, flags, startId);
|
/development/samples/browseable/Timer/src/com.example.android.wearable.timer/ |
TimerNotificationService.java | 25 import android.content.Intent; 47 protected void onHandleIntent(Intent intent) { 49 Log.d(TAG, "onHandleIntent called with intent: " + intent); 51 String action = intent.getAction(); 64 Intent dialogIntent = new Intent(this, SetTimerActivity.class); 65 dialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 76 Intent intent = new Intent(Constants.ACTION_SHOW_ALARM, null, this local [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/activity/ |
FutureActivity.java | 21 import android.content.Intent; 60 Intent intent = new Intent(Intent.ACTION_MAIN); // Should default to main of current app. local 61 intent.addCategory(Intent.CATEGORY_LAUNCHER); 63 for (ResolveInfo resolve : getPackageManager().queryIntentActivities(intent, 0)) { 65 intent.setClassName(packageName, resolve.activityInfo.name); 69 startActivity(intent); [all...] |
/frameworks/base/core/java/android/app/ |
LocalActivityManager.java | 19 import android.content.Intent; 49 LocalActivityRecord(String _id, Intent _intent) { 51 intent = _intent; 55 Intent intent; // Which activity to run here. field in class:LocalActivityManager.LocalActivityRecord 132 if (localLOGV) Log.v(TAG, r.id + ": starting " + r.intent); 134 r.activityInfo = mActivityThread.resolveActivityInfo(r.intent); 137 mParent, r.id, r.intent, r.activityInfo, r, r.instanceState, instance); 227 * <li> If the Intent maps to a different activity component than is 231 * as singleTop), or the Intent has th [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
WorkLockActivityController.java | 26 import android.content.Intent; 55 Intent intent = new Intent(KeyguardManager.ACTION_CONFIRM_DEVICE_CREDENTIAL_WITH_USER) local 57 .putExtra(Intent.EXTRA_USER_ID, userId) 59 .addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT 60 | Intent.FLAG_ACTIVITY_CLEAR_TOP); 66 final int result = startActivityAsUser(intent, options.toBundle(), UserHandle.USER_CURRENT); 80 private int startActivityAsUser(Intent intent, Bundle options, int userId) [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
IntentBindRecord.java | 20 import android.content.Intent; 28 * A particular Intent that has been bound to a Service. 33 /** The intent that is bound.*/ 34 final Intent.FilterComparison intent; // field in class:IntentBindRecord 35 /** All apps that have bound to this Intent. */ 57 pw.print(prefix); pw.print("intent={"); 58 pw.print(intent.getIntent().toShortString(false, true, false, false)); 74 IntentBindRecord(ServiceRecord _service, Intent.FilterComparison _intent) { 76 intent = _intent [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
InstantAppResolver.java | 33 import android.content.Intent; 101 final Intent intent = requestObj.origIntent; local 103 new InstantAppDigest(intent.getData().getHost(), 5 /*maxDigests*/); 112 instantAppResolveInfoList, intent, requestObj.resolvedType, 113 requestObj.userId, intent.getPackage(), digest, token); 151 final Intent intent = requestObj.origIntent; local 152 final String hostName = intent.getData().getHost(); 163 final Intent failureIntent 249 final Intent intent = new Intent(action); local [all...] |
/frameworks/base/services/core/java/com/android/server/vr/ |
SettingsObserver.java | 22 import android.content.Intent; 72 public void onReceive(Context context, Intent intent) { 73 if (Intent.ACTION_SETTING_RESTORED.equals(intent.getAction())) { 74 String element = intent.getStringExtra(Intent.EXTRA_SETTING_NAME); 76 String prevValue = intent.getStringExtra(Intent.EXTRA_SETTING_PREVIOUS_VALUE); 77 String newValue = intent.getStringExtra(Intent.EXTRA_SETTING_NEW_VALUE) [all...] |
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
Utils.java | 19 import android.content.Intent; 65 Intent intent = new Intent(Intent.ACTION_MAIN); local 66 intent.setComponent(new ComponentName(PACKAGE, ELEMENT_LAYOUT_CLASS)); 67 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 68 intent.putExtra(ElementLayoutActivity.NUM_ELEMENTS_KEY, numElements); 69 instrumentation.getTargetContext().startActivity(intent); [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
QuickActivity.java | 21 import android.content.Intent; 98 protected final void onNewIntent(Intent intent) { 100 Log.v(TAG, "Intent Action = " + intent.getAction()); 101 setIntent(intent); 102 super.onNewIntent(intent); 103 onNewIntentTasks(intent); 230 protected void onNewIntentTasks(Intent newIntent) {
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
AccountImageHelper.java | 21 import android.content.Intent; 22 import android.content.Intent.ShortcutIconResource; 99 final Intent intent = new Intent(); local 100 intent.setClassName(servicePackageName, serviceName); 101 intent.setAction(Intent.ACTION_VIEW); 102 intent.setDataAndType(uri, RawContacts.CONTENT_ITEM_TYPE); 104 context.startService(intent); [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
QueryService.java | 20 import android.content.Intent; 27 * A service that executes a query specified by an intent and dump the result on logcat. Use the 55 protected void onHandleIntent(Intent intent) { 56 final Uri uri = intent.getData(); 58 final String projection = intent.getStringExtra(EXTRA_PROJECTION); 59 final String selection = intent.getStringExtra(EXTRA_SELECTION); 60 final String order = intent.getStringExtra(EXTRA_ORDER);
|
/packages/apps/Dialer/java/com/android/contacts/common/ |
MoreContactUtils.java | 19 import android.content.Intent; 195 * Returns the intent to launch for the given invitable account type and contact lookup URI. This 200 public static Intent getInvitableIntent(AccountType accountType, Uri lookupUri) { 206 Intent intent = new Intent(); local 207 intent.setClassName(syncAdapterPackageName, className); 209 intent.setAction(ContactsContract.Intents.INVITE_CONTACT); 212 intent.setData(lookupUri); 213 return intent; [all...] |
/packages/apps/Dialer/java/com/android/dialer/main/impl/ |
MainImpl.java | 22 import android.content.Intent; 82 Intent intent = new Intent("com.android.launcher.action.INSTALL_SHORTCUT"); local 83 intent.putExtra( 84 Intent.EXTRA_SHORTCUT_ICON, 85 Intent.ShortcutIconResource.fromContext(context, R.drawable.nui_launcher_icon)); 86 intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, context.getString(R.string.nui_shortcut_name)); 87 intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, MainActivity.getIntent(context)) [all...] |
/packages/apps/Email/provider_src/com/android/email/service/ |
EasTestAuthenticatorService.java | 26 import android.content.Intent; 65 // activity. In this case, we add an intent that will be used to gather the 69 Intent intent = local 72 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response); 73 b.putParcelable(AccountManager.KEY_INTENT, intent); 116 public IBinder onBind(Intent intent) { 117 if (AccountManager.ACTION_AUTHENTICATOR_INTENT.equals(intent.getAction())) {
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
AppInfo.java | 21 import android.content.Intent; 40 * The intent used to start the application. 42 public Intent intent; field in class:AppInfo 61 public Intent getIntent() { 62 return intent; 83 intent = makeLaunchIntent(info); 94 intent = new Intent(info.intent); [all...] |
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ |
TestInstrumentationRunner.java | 23 import android.content.Intent; 48 (classLoader, className, intent) -> newActivity.newInstance()); 56 public Activity newActivity(ClassLoader cl, String className, Intent intent) 60 return callback.createActivity(cl, className, intent); 62 return super.newActivity(cl, className, intent); 102 Activity createActivity(ClassLoader cl, String className, Intent intent)
|