/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
RecoverySnapshotListenersStorageTest.java | 9 import android.content.Intent; 41 PendingIntent intent = PendingIntent.getBroadcast( local 43 new Intent(), /*flags=*/ 0); 44 mStorage.setSnapshotListener(recoveryAgentUid, intent); 55 PendingIntent intent = PendingIntent.getBroadcast( local 56 context, /*requestCode=*/ 0, new Intent(TEST_INTENT_ACTION), /*flags=*/0); 60 public void onReceive(Context context, Intent intent) { 66 mStorage.setSnapshotListener(recoveryAgentUid, intent); 76 PendingIntent intent = PendingIntent.getBroadcast local [all...] |
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/ |
ServiceBindPerfTest.java | 21 import android.content.Intent; 58 private void bindService(Intent intent, ServiceConnection serviceConnection, int flags) { 59 final boolean success = mContext.bindService(intent, serviceConnection, flags); 70 final Intent intent = createServiceIntent(); 74 bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE); 92 final Intent intent = createServiceIntent(); 96 bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE) [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
CellBroadcastHandler.java | 25 import android.content.Intent; 93 Intent intent; local 96 intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION); 97 // Explicitly send the intent to the default cell broadcast receiver. 98 intent.setPackage(mContext.getResources().getString( 104 intent = new Intent(Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION); 105 // Send implicit intent since there are various 3rd party carrier apps listen t [all...] |
/frameworks/support/samples/SupportAppNavigation/src/main/java/com/example/android/support/appnavigation/app/ |
AppNavHomeActivity.java | 20 import android.content.Intent; 47 startActivity(info.intent); 51 Intent intent = new Intent(Intent.ACTION_MAIN, null); local 52 intent.setPackage(getPackageName()); 53 intent.addCategory(Intent.CATEGORY_SAMPLE_CODE); 56 List<ResolveInfo> infos = pm.queryIntentActivities(intent, 0) 78 Intent intent; field in class:AppNavHomeActivity.SampleInfo [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
ApplicationInfo.java | 20 import android.content.Intent; 39 * The intent used to start the application. 41 Intent intent; field in class:ApplicationInfo 82 intent = new Intent(Intent.ACTION_MAIN); 83 intent.addCategory(Intent.CATEGORY_LAUNCHER); 84 intent.setComponent(info.getComponentName()) [all...] |
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/ |
CameraTest.java | 24 import android.content.Intent; 43 Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); local 44 intent.setClass(getInstrumentation().getTargetContext(), VideoCamera.class); 45 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 46 intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.parse("file://" 49 getInstrumentation().startActivitySync(intent).finish(); 64 Intent intent = new Intent() local [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/ |
InputMethodHelper.java | 20 import android.content.Intent; 73 Intent intent = new Intent(Intent.ACTION_INPUT_METHOD_CHANGED); local 74 intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); 75 intent.putExtra("input_method_id", imid); 76 context.sendBroadcastAsUser(intent, UserHandle.CURRENT); 98 * Get settings Intent of an InputMethod 101 final Intent intent; local [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
TelecomBroadcastIntentProcessor.java | 20 import android.content.Intent; 77 public void processIntent(Intent intent) { 78 String action = intent.getAction(); 84 UserHandle userHandle = intent.getParcelableExtra(EXTRA_USERHANDLE); 98 Intent callIntent = new Intent(Intent.ACTION_SENDTO, intent.getData()); 99 callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK) 165 Intent intent = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS); local [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
PolicyTransparencyTestListActivity.java | 19 import android.content.Intent; 54 * <li>An intent to start {@link PolicyTransparencyTestActivity} 59 private static final Pair<Intent, Integer>[] POLICIES; 95 final Intent intent = external variable declarations 96 new Intent(PolicyTransparencyTestActivity.ACTION_SHOW_POLICY_TRANSPARENCY_TEST) 100 POLICIES[i] = Pair.create(intent, policyLabels[i]); 147 final Intent intent = UserRestrictions.getUserRestrictionTestIntent(this, restriction); local 153 intent.putExtra(PolicyTransparencyTestActivity.EXTRA_TEST_ID, testId) 161 final Intent intent = policy.first; local 215 final Intent intent = new Intent(SetSupportMessageActivity.ACTION_SET_SUPPORT_MSG); local 220 final Intent intent = new Intent(SetSupportMessageActivity.ACTION_SET_SUPPORT_MSG); local 235 final Intent intent = new Intent(CommandReceiverActivity.ACTION_EXECUTE_COMMAND); local [all...] |
/cts/apps/NotificationBot/src/com/android/cts/robot/ |
NotificationBot.java | 27 import android.content.Intent; 61 public void onReceive(Context context, Intent intent) { 62 Log.i(TAG, "received intent: " + intent); 63 if (ACTION_POST.equals(intent.getAction())) { 65 if (!intent.hasExtra(EXTRA_NOTIFICATION) || !intent.hasExtra(EXTRA_ID)) { 69 int id = intent.getIntExtra(EXTRA_ID, -1); 71 Notification n = (Notification) intent.getParcelableExtra(EXTRA_NOTIFICATION) [all...] |
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
BroadcastTestStartActivity.java | 20 import android.content.Intent; 41 Intent intent = new Intent(); local 43 intent.putExtra(BroadcastUtils.TESTCASE_TYPE, testCaseType); 44 intent.setAction("android.intent.action.VIMAIN_" + testCaseType); 45 intent.setComponent(new ComponentName(pkg, cls)); 46 startActivity(intent);
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
EphemeralService.java | 20 import android.content.Intent; 39 public IBinder onBind(Intent intent) { 44 .setIntent(intent) 52 public int onStartCommand(Intent intent, int flags, int startId) { 57 .setIntent(intent) 61 return super.onStartCommand(intent, flags, startId);
|
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/ |
ManagedProfileProvisioningTest.java | 22 import android.content.Intent; 32 Intent intent = new Intent(ACTION_PROVISION_MANAGED_PROFILE) local 41 assertTrue(provisioningManager.startProvisioningAndWait(intent)); 52 private boolean isExtraUserPresent(Intent intent) { 53 return intent != null && intent.getExtras().containsKey(Intent.EXTRA_USER) [all...] |
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
SanityTest.java | 20 import android.content.Intent; 61 Intent intent = new Intent(); local 62 intent.setComponent(SIMPLE_APP_ACTIVITY); 64 intent.putExtra("finish", true); 65 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 66 mContext.startActivity(intent); 67 Intent receivedBroadcast = receiver.awaitForBroadcast() [all...] |
/cts/hostsidetests/devicepolicy/app/NotificationSender/src/com/android/cts/managedprofiletests/notificationsender/ |
SendNotification.java | 24 import android.content.Intent; 44 Intent intent = getIntent(); local 45 if (intent != null && "POST_NOTIFICATION".equals(intent.getAction())) { 48 } else if (intent != null && "CANCEL_NOTIFICATION".equals(intent.getAction())) {
|
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
BatteryStatsAlarmTest.java | 24 import android.content.Intent; 50 final Intent intent = new Intent("com.android.server.cts.device.batterystats.ALARM"); local 51 final IntentFilter inf = new IntentFilter(intent.getAction()); 57 public void onReceive(Context context, Intent intent) { 58 Log.i(TAG, "Received: " + intent); 66 PendingIntent.getBroadcast(context, i, intent, 0));
|
/cts/tests/JobScheduler/JobTestApp/src/android/jobscheduler/cts/jobtestapp/ |
TestJobSchedulerReceiver.java | 24 import android.content.Intent; 42 public void onReceive(Context context, Intent intent) { 45 switch (intent.getAction()) { 51 final int jobId = intent.getIntExtra(EXTRA_JOB_ID_KEY, hashCode()); 52 final boolean allowInIdle = intent.getBooleanExtra(EXTRA_ALLOW_IN_IDLE, false); 65 Log.e(TAG, "Unknown action " + intent.getAction());
|
/cts/tests/JobSchedulerSharedUid/JobSharedUidTestApp/src/android/jobscheduler/cts/jobtestapp/ |
TestJobSchedulerReceiver.java | 24 import android.content.Intent; 42 public void onReceive(Context context, Intent intent) { 45 switch (intent.getAction()) { 51 final int jobId = intent.getIntExtra(EXTRA_JOB_ID_KEY, hashCode()); 52 final boolean allowInIdle = intent.getBooleanExtra(EXTRA_ALLOW_IN_IDLE, false); 65 Log.e(TAG, "Unknown action " + intent.getAction());
|
/cts/tests/app/src/android/app/cts/ |
BaseProcessInstrumentation.java | 24 import android.content.Intent; 52 Intent intent = new Intent(Intent.ACTION_MAIN); local 53 intent.setClassName(ActivityManagerTest.SIMPLE_PACKAGE_NAME, mReceiverClass); 54 intent.setFlags(Intent.FLAG_RECEIVER_FOREGROUND); 55 //Log.i("xxx", "Instrumentation sending broadcast: " + intent); 56 getContext().sendOrderedBroadcast(intent, null, new BroadcastReceiver() [all...] |
SearchManagerTest.java | 24 import android.content.Intent; 30 Intent intent = new Intent(); local 31 intent.setAction(action); 32 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 33 intent.setClass(getInstrumentation().getTargetContext(), SearchManagerStubActivity.class); 34 getInstrumentation().getTargetContext().startActivity(intent);
|
/cts/tests/jank/src/android/jank/cts/ui/ |
CtsDeviceJankUi.java | 18 import android.content.Intent; 41 Intent intent = new Intent(Intent.ACTION_MAIN); local 42 intent.setComponent(new ComponentName(PACKAGE, CLASS)); 43 intent.putExtra("num_elements", NUM_ELEMENTS); 44 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 45 getInstrumentation().getTargetContext().startActivity(intent); [all...] |
/cts/tests/tests/alarmclock/src/android/alarmclock/cts/ |
TestStartActivity.java | 21 import android.content.Intent; 42 Intent intent = new Intent(); local 44 intent.putExtra(Utils.TESTCASE_TYPE, testCaseType); 45 intent.setAction("android.intent.action.VIMAIN_" + testCaseType); 46 intent.setComponent(new ComponentName("android.alarmclock.service", 48 startActivity(intent);
|
/cts/tests/tests/batterysaving/apps/app_target_api_current/src/android/os/cts/batterysaving/app/ |
TestService.java | 25 import android.content.Intent; 34 public static final AtomicReference<Intent> LastStartIntent = new AtomicReference(); 41 public int onStartCommand(Intent intent, int flags, int startId) { 43 Log.d(TAG, "TestService.TestService: intent=" + intent); 45 if (intent.getBooleanExtra(KEY_REQUEST_FOREGROUND, false)) { 59 LastStartIntent.set(intent); 67 public IBinder onBind(Intent intent) { [all...] |
/developers/build/prebuilts/gradle/BasicContactables/Application/src/main/java/com/example/android/basiccontactables/ |
MainActivity.java | 21 import android.content.Intent; 48 protected void onNewIntent(Intent intent) { 49 handleIntent(intent); 53 * Assuming this activity was started with a new intent, process the incoming information and 55 * @param intent 57 private void handleIntent(Intent intent) { 58 // Special processing of the incoming intent only occurs if the if the action specified 59 // by the intent is ACTION_SEARCH [all...] |
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
SchedulerHelper.java | 21 import android.content.Intent; 52 Intent intent = new Intent(context, MockIncomingMessageReceiver.class); local 53 intent.setAction(Constants.ACTION_RECEIVE_MESSAGE); 54 intent.putExtra(Constants.EXTRA_CHAT, chat.getId()); 55 intent.putExtra(Constants.EXTRA_MESSAGE, message.getId()); 57 return PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
|