/frameworks/base/tests/ActivityManagerPerfTests/test-app/src/com/android/frameworks/perftests/amteststestapp/ |
TestService.java | 20 import android.content.Intent; 29 public IBinder onBind(Intent intent) { 34 public int onStartCommand(Intent intent, int flags, int startId) { 35 Utils.sendTime(intent, Constants.TYPE_SERVICE_START); 36 return super.onStartCommand(intent, flags, startId);
|
/frameworks/opt/car/setupwizard/library/src/com/android/car/setupwizardlib/util/ |
CarWizardManagerHelper.java | 20 import android.content.Intent; 38 * Get an intent that will invoke the next step of setup wizard. 40 * @param originalIntent The original intent that was used to start the step, usually via 43 * @return A new intent that can be used with 44 * {@link android.app.Activity#startActivityForResult(Intent, int)} to start the next 47 public static Intent getNextIntent(Intent originalIntent, int resultCode) { 52 * Get an intent that will invoke the next step of setup wizard. 54 * @param originalIntent The original intent that was used to start the step, usually via 57 * @param data An intent containing extra result data 63 Intent intent = new Intent(ACTION_NEXT); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
ImplicitIntentsUtil.java | 23 import android.content.Intent; 48 * Why not just always use explicit intents? The Contacts/Dialer app implements standard intent 49 * actions used by others apps. We want to continue exercising these intent filters to make sure 50 * they still work. Plus we sometimes don't know an explicit intent would work. See 58 * Start an intent. If it is possible for this app to handle the intent, force this app's 59 * activity to handle the intent. Sometimes it is impossible to know whether this app 60 * can handle an intent while coding since the code is used inside both Dialer and Contacts. 66 public static void startActivityInAppIfPossible(Context context, Intent intent) { 118 final Intent intent = ImplicitIntentsUtil.composeQuickContactIntent( local 145 final Intent intent = new Intent(context, QuickContactActivity.class); local 160 final Intent intent = new Intent(Settings.ACTION_SYNC_SETTINGS); local 171 final Intent intent = new Intent(Settings.ACTION_ADD_ACCOUNT); local 179 final Intent intent = composeQuickContactIntent(context, contactUri, local [all...] |
/packages/apps/Dialer/java/com/android/voicemail/ |
VoicemailPowerCycleReceiver.java | 21 import android.content.Intent; 24 /** Receives {@link Intent#ACTION_BOOT_COMPLETED} and {@link Intent#ACTION_SHUTDOWN} */ 28 public void onReceive(Context context, Intent intent) { 30 if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) { 32 } else if (Intent.ACTION_SHUTDOWN.equals(intent.getAction())) { 35 throw Assert.createAssertionFailException("unexpected action: " + intent.getAction()) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
Gallery.java | 21 import android.content.Intent; 29 Intent intent = IntentHelper.getGalleryIntent(Gallery.this); local 33 intent.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); 34 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 35 startActivity(intent);
|
/packages/apps/Nfc/src/com/android/nfc/ |
NfcRootActivity.java | 22 import android.content.Intent; 33 Intent intent = getIntent(); local 34 if (intent != null && intent.hasExtra(EXTRA_LAUNCH_INTENT)) { 35 final Intent launchIntent = intent.getParcelableExtra(EXTRA_LAUNCH_INTENT);
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/storage/ |
FormatActivityFormatReceiverTest.java | 30 import android.content.Intent; 58 final Intent intent = new Intent(SettingsStorageService.ACTION_FORMAT_AS_PRIVATE); local 59 intent.putExtra(DiskInfo.EXTRA_DISK_ID, "asdf"); 60 intent.putExtra(SettingsStorageService.EXTRA_PRIVATE_BENCH, 123L); 61 intent.putExtra(SettingsStorageService.EXTRA_INTERNAL_BENCH, 456L); 62 intent.putExtra(SettingsStorageService.EXTRA_SUCCESS, true); 64 new FormatActivity.FormatReceiver(mActivity).onReceive(mActivity, intent); 74 final Intent intent = new Intent(SettingsStorageService.ACTION_FORMAT_AS_PRIVATE) local 90 final Intent intent = new Intent(SettingsStorageService.ACTION_FORMAT_AS_PRIVATE); local 107 final Intent intent = new Intent(SettingsStorageService.ACTION_FORMAT_AS_PRIVATE); local 123 final Intent intent = new Intent(SettingsStorageService.ACTION_FORMAT_AS_PUBLIC); local 138 final Intent intent = new Intent(SettingsStorageService.ACTION_FORMAT_AS_PUBLIC); local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/settings/ |
PublicPreferenceActivity.java | 21 import android.content.Intent; 42 final Intent intent = getIntent(); local 45 intent.removeExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT); 46 intent.removeExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT_ARGUMENTS); 47 intent.removeExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT_SHORT_TITLE); 48 intent.removeExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT_TITLE); 51 final Uri dataUri = intent.getData(); 65 intent.setData(builder.build()); 72 // Force this intent to be sent to the appropriate MailPreferenceActivity clas [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
ViewContact.java | 20 import android.content.Intent; 29 Intent intent = new Intent(getIntent()); local 33 intent.setClass(this, HomeXLarge.class); 35 intent.setClass(this, DetailsNormal.class); 37 startActivity(intent);
|
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/ |
NotificationShowcaseActivity.java | 10 import android.content.Intent; 38 Intent intent = new Intent(NotificationService.ACTION_CREATE); local 39 intent.setComponent(new ComponentName(this, NotificationService.class)); 40 startService(intent); 44 Intent intent = new Intent(NotificationService.ACTION_DESTROY); local 45 intent.setComponent(new ComponentName(this, NotificationService.class)) 50 Intent intent = new Intent(); local [all...] |
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/ |
CommandHandler.java | 20 import android.content.Intent; 64 static Intent createScheduleWorkIntent(@NonNull Context context, @NonNull String workSpecId) { 65 Intent intent = new Intent(context, SystemAlarmService.class); local 66 intent.setAction(ACTION_SCHEDULE_WORK); 67 intent.putExtra(KEY_WORKSPEC_ID, workSpecId); 68 return intent; 71 static Intent createDelayMetIntent(@NonNull Context context, @NonNull String workSpecId) { 72 Intent intent = new Intent(context, SystemAlarmService.class) local 79 Intent intent = new Intent(context, SystemAlarmService.class); local 86 Intent intent = new Intent(context, SystemAlarmService.class); local 92 Intent intent = new Intent(context, SystemAlarmService.class); local 103 Intent intent = new Intent(context, SystemAlarmService.class); local [all...] |
/packages/apps/Dialer/java/com/android/incallui/spam/ |
SpamNotificationService.java | 21 import android.content.Intent; 54 /** Creates an intent to start this service. */ 55 public static Intent createServiceIntent( 57 Intent intent = new Intent(context, SpamNotificationService.class); local 58 intent.setAction(action); 59 intent.putExtra(EXTRA_PHONE_NUMBER, call.getNumber()); 60 intent.putExtra(EXTRA_CALL_ID, call.getUniqueCallId()); 61 intent.putExtra(EXTRA_CALL_START_TIME_MILLIS, call.getTimeAddedMs()) [all...] |
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
BasicAdminReceiver.java | 21 import android.content.Intent; 43 public void onUserAdded(Context context, Intent intent, UserHandle userHandle) { 44 super.onUserAdded(context, intent, userHandle); 49 public void onUserRemoved(Context context, Intent intent, UserHandle userHandle) { 50 super.onUserRemoved(context, intent, userHandle); 55 public void onUserStarted(Context context, Intent intent, UserHandle userHandle) { 56 super.onUserStarted(context, intent, userHandle) 84 Intent intent = new Intent(action); local [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
UnlaunchableAppActivity.java | 19 import static android.content.Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS; 20 import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK; 26 import android.content.Intent; 57 Intent intent = getIntent(); local 58 mReason = intent.getIntExtra(EXTRA_UNLAUNCHABLE_REASON, -1); 59 mUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL); 60 mTarget = intent.getParcelableExtra(Intent.EXTRA_INTENT) 105 Intent intent = new Intent(); local 112 Intent intent = createBaseIntent(); local 119 Intent intent = createInQuietModeDialogIntent(userId); local [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/ |
WakeLockHelper.java | 20 import android.content.Intent; 51 public void acquire(final Context context, final Intent intent, final int opcode) { 66 intent.putExtra(EXTRA_CALLING_PID, mMyPid); 72 public boolean isHeld(final Intent intent) { 73 final boolean respectWakeLock = (mMyPid == intent.getIntExtra(EXTRA_CALLING_PID, -1)); 80 public boolean ensure(final Intent intent, final int opcode) { 81 final boolean respectWakeLock = (mMyPid == intent.getIntExtra(EXTRA_CALLING_PID, -1)) [all...] |
/frameworks/base/location/java/android/location/ |
SettingInjectorService.java | 20 import android.content.Intent; 41 * <intent-filter> 43 * </intent-filter> 87 * Intent action that must be declared in the manifest for the subclass. Used to start the 104 * Intent action a client should broadcast when the value of one of its injected settings has 118 * Name of the intent key used to specify the messenger 136 public final IBinder onBind(Intent intent) { 141 public final void onStart(Intent intent, int startId) [all...] |
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/ |
ServiceStartPerfTest.java | 20 import android.content.Intent; 37 * Tries to start the service with the given intent, throwing a RuntimeException with the 40 private void startService(Intent intent) { 41 final ComponentName componentName = mContext.startService(intent); 52 final Intent intent = createServiceIntent(); 56 startService(intent); 72 final Intent intent = createServiceIntent() [all...] |
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
WizardManagerHelperTest.java | 26 import android.content.Intent; 51 final Intent intent = new Intent("test.intent.ACTION"); local 52 intent.putExtra("scriptUri", "android-resource://test-script"); 53 intent.putExtra("actionId", "test_action_id"); 54 intent.putExtra("theme", "test_theme"); 55 intent.putExtra("ignoreExtra", "poof"); // extra is ignored because it's not known 57 final Intent data = new Intent() 79 final Intent intent = new Intent(); local 87 final Intent intent = new Intent(); local 95 final Intent intent = new Intent(); local 103 final Intent intent = new Intent(); local 121 Intent intent = new Intent(); local 148 Intent intent = new Intent(); local 165 final Intent intent = new Intent(); local 175 final Intent intent = new Intent(); local 244 Intent intent = new Intent(); local 263 Intent intent = new Intent("test.intent.action"); local [all...] |
/packages/apps/Messaging/src/com/android/messaging/receiver/ |
SendStatusReceiver.java | 21 import android.content.Intent; 34 * The SMS sent and delivery intent receiver. 58 public void onReceive(final Context context, final Intent intent) { 60 final String action = intent.getAction(); 63 final Uri requestId = intent.getData(); 67 intent.getIntExtra(EXTRA_ERROR_CODE, NO_ERROR_CODE), 68 intent.getIntExtra(EXTRA_PART_ID, NO_PART_ID), 69 intent.getIntExtra(EXTRA_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID)); 71 final Uri messageUri = intent.getData() [all...] |
/packages/apps/Messaging/tests/src/com/android/messaging/ |
FakeContext.java | 23 import android.content.Intent; 36 public void startServiceForStub(Intent intent); 37 public void onStartCommandForStub(Intent intent, int flags, int startid); 40 ArrayList<Intent> mStartedIntents; 49 mStartedIntents = new ArrayList<Intent>(); 57 public ArrayList<Intent> extractIntents() { 58 final ArrayList<Intent> intents = mStartedIntents; 59 mStartedIntents = new ArrayList<Intent>(); [all...] |
/packages/apps/Settings/src/com/android/settings/enterprise/ |
ActionDisabledByAdminDialog.java | 22 import android.content.Intent; 47 public void onNewIntent(Intent intent) { 48 super.onNewIntent(intent); 49 final EnforcedAdmin admin = getAdminDetailsFromIntent(intent); 50 final String restriction = getRestrictionFromIntent(intent); 55 EnforcedAdmin getAdminDetailsFromIntent(Intent intent) { 57 if (intent == null) { 60 admin.component = intent.getParcelableExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN) [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
LauncherActivity.java | 25 import android.content.Intent; 71 Intent intent = findTask(activities); local 72 if (intent != null) { 73 if (restoreTask(intent)) { 86 private @Nullable Intent findTask(ActivityManager activities) { 89 Intent intent = task.getTaskInfo().baseIntent; local 90 Uri uri = intent.getData(); 92 return intent; 99 Intent intent = createLaunchIntent(this); local 133 Intent intent = new Intent(activity, FilesActivity.class); local [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
MenuHelper.java | 25 import android.content.Intent; 80 private static void startCameraActivity(Activity activity, Intent intent, 82 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); 83 intent.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT); 84 intent.setClassName(activity.getPackageName(), className); 91 activity.startActivity(intent); 93 intent.setComponent(null) 122 Intent intent = new Intent(MediaStore.INTENT_ACTION_VIDEO_CAMERA); local 128 Intent intent = new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA); local 152 Intent intent = new Intent(Intent.ACTION_VIEW, target); local [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
BleInsecureConnectionPriorityClientTestActivity.java | 19 import android.content.Intent;
27 Intent intent = new Intent(BleInsecureConnectionPriorityClientTestActivity.this,
local 29 startService(intent);
35 stopService(new Intent(this, BleConnectionPriorityClientService.class));
|
/cts/tests/tests/content/src/android/content/cts/ |
HighPriorityBroadcastReceiver.java | 20 import android.content.Intent; 25 public synchronized void onReceive(Context context, Intent intent) { 26 super.onReceive(context, intent);
|