/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
HeadsetTestUtils.java | 24 import android.content.Intent; 34 * Verify the content of a {@link BluetoothHeadset#ACTION_AUDIO_STATE_CHANGED} intent 39 * @param intent a {@link BluetoothHeadset#ACTION_AUDIO_STATE_CHANGED} intent 42 Intent intent) { 43 Assert.assertNotNull(intent); 44 Assert.assertEquals(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED, intent.getAction()); 45 Assert.assertEquals(device, intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE)); 46 Assert.assertEquals(toState, intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1)) [all...] |
/packages/apps/Contacts/src/com/android/contacts/compat/telecom/ |
TelecomManagerCompat.java | 19 import android.content.Intent; 31 * the specified intent. 33 * @param activity {@link Activity} used to start another activity for the given intent 35 * @param intent the intent for the call 38 @Nullable TelecomManager telecomManager, @Nullable Intent intent) { 39 if (activity == null || telecomManager == null || intent == null) { 43 telecomManager.placeCall(intent.getData(), intent.getExtras()) [all...] |
/packages/apps/Dialer/java/com/android/dialer/app/ |
MainComponent.java | 22 import android.content.Intent; 85 Intent intent = new Intent("com.android.launcher.action.INSTALL_SHORTCUT"); local 86 intent.putExtra( 87 Intent.EXTRA_SHORTCUT_ICON, 88 Intent.ShortcutIconResource.fromContext(context, R.drawable.nui_launcher_icon)); 89 intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, context.getString(R.string.nui_shortcut_name)); 90 intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, getIntent(context)) 99 Intent intent = new Intent(); local 107 Intent intent = new Intent(); local 115 Intent intent = new Intent(); local [all...] |
/packages/apps/Email/provider_src/com/android/email/ |
EmailIntentService.java | 18 import android.content.Intent; 36 protected void onHandleIntent(final Intent intent) { 37 super.onHandleIntent(intent); 39 if (UIProvider.ACTION_UPDATE_NOTIFICATION.equals(intent.getAction())) { 43 nc.handleUpdateNotificationIntent(this, intent); 47 LogUtils.v(LOG_TAG, "Handling intent %s", intent);
|
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/ |
SideChannel.java | 21 import android.content.Intent; 42 Intent intent = new Intent(ACTION_TRIGGER_CLEANUP); local 43 intent.setComponent(MIDDLEWARE_RECEIVER); 44 context.sendBroadcast(intent); 48 Intent intent = new Intent(ACTION_REQUEST_SPURIOUS_TEMP_FILES); local 49 intent.putExtra(EXTRA_SERVICE_INFO, serviceInfo) 55 Intent intent = new Intent(ACTION_DELAY_DOWNLOAD); local [all...] |
/cts/hostsidetests/dumpsys/apps/storagedapp/src/com/android/server/cts/storaged/ |
StoragedTest.java | 19 import android.content.Intent; 43 Intent intent = new Intent(); local 44 intent.setClass(mContext, SimpleIOActivity.class); 45 intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | 46 Intent.FLAG_ACTIVITY_NEW_TASK); 47 mContext.startActivity(intent); 53 Intent intent = new Intent() local [all...] |
/cts/tests/tests/assist/service/src/android/voiceinteraction/service/ |
DelayedAssistantActivity.java | 21 import android.content.Intent; 32 Intent intent = new Intent(); local 33 intent.setComponent(new ComponentName(this, MainInteractionService.class)); 34 intent.putExtra(Utils.EXTRA_REGISTER_RECEIVER, true); 35 intent.putExtra(Utils.TESTCASE_TYPE, getIntent().getStringExtra(Utils.TESTCASE_TYPE)); 36 intent.putExtra(Utils.DISPLAY_WIDTH_KEY, 38 intent.putExtra(Utils.DISPLAY_HEIGHT_KEY, 41 ComponentName serviceName = startService(intent); [all...] |
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/ |
MyReceiver.java | 22 import android.content.Intent; 32 public void onReceive(Context context, Intent intent) { 33 Log.i(TAG, "onReceive: " + intent); 34 if (Intent.ACTION_LOCALE_CHANGED.equals(intent.getAction())) { 38 } else if (ACTION_PIN_REQUEST_ACCEPTED.equals(intent.getAction())) { 45 final Intent intent = new Intent(ACTION_PIN_REQUEST_ACCEPTED) local [all...] |
/frameworks/base/core/java/android/app/timezone/ |
RulesUpdaterContract.java | 20 import android.content.Intent; 49 * The action of the intent that the Android system will broadcast. The intent will be targeted 54 "com.android.intent.action.timezone.TRIGGER_RULES_UPDATE_CHECK"; 61 * {@link #ACTION_TRIGGER_RULES_UPDATE_CHECK} intent has been processed. 64 "com.android.intent.extra.timezone.CHECK_TOKEN"; 67 * Creates an intent that would trigger a time zone rules update check. 69 public static Intent createUpdaterIntent(String updaterPackageName) { 70 Intent intent = new Intent(RulesUpdaterContract.ACTION_TRIGGER_RULES_UPDATE_CHECK) local 83 Intent intent = createUpdaterIntent(updaterAppPackageName); local [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
TestUtil.java | 21 import android.content.Intent; 39 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION); local 42 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo); 43 broadcastReceiver.onReceive(context, intent); 51 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION); local 52 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, nwInfo) 62 Intent intent = new Intent(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); local 71 Intent intent = new Intent(WifiManager.WIFI_SCAN_AVAILABLE); local 81 Intent intent = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION); local 92 Intent intent = new Intent(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); local 109 Intent intent = new Intent(ConnectivityManager.ACTION_TETHER_STATE_CHANGED); local 116 Intent intent = new Intent(PowerManager.ACTION_DEVICE_IDLE_MODE_CHANGED); local [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
ActionServiceImpl.java | 24 import android.content.Intent; 47 * Start action by sending intent to the service 51 final Intent intent = makeIntent(OP_START_ACTION); local 54 intent.putExtra(EXTRA_ACTION_BUNDLE, actionBundle); 56 startServiceWithIntent(intent); 67 final Intent intent = PendingActionReceiver.makeIntent(OP_START_ACTION); local 70 intent.putExtra(EXTRA_ACTION_BUNDLE, actionBundle); 72 PendingActionReceiver.scheduleAlarm(intent, requestCode, delayMs) 82 final Intent intent = makeIntent(OP_RECEIVE_BACKGROUND_RESPONSE); local 98 final Intent intent = makeIntent(OP_RECEIVE_BACKGROUND_FAILURE); local 136 final Intent intent = new Intent(Factory.get().getApplicationContext(), local 152 final Intent intent = new Intent(Factory.get().getApplicationContext(), local 191 final Intent intent = PendingActionReceiver.makeIntent(OP_START_ACTION); local [all...] |
/frameworks/base/core/java/android/app/admin/ |
DeviceAdminReceiver.java | 31 import android.content.Intent; 44 * class provides a convenience for interpreting the raw intent actions 48 * {@link BroadcastReceiver#onReceive(Context, Intent) BroadcastReceiver.onReceive()} 82 * handle this in {@link DeviceAdminReceiver#onEnabled(Context, Intent)}. To be 97 * {@link #EXTRA_DISABLE_WARNING} in the result Intent. If not set, 118 * handle this in {@link DeviceAdminReceiver#onDisabled(Context, Intent)}. Note 121 * its intent filter. 134 * handle this in {@link DeviceAdminReceiver#onPasswordChanged(Context, Intent, UserHandle)}. 151 * handle this in {@link DeviceAdminReceiver#onPasswordFailed(Context, Intent, UserHandle)}. 165 * handle this in {@link DeviceAdminReceiver#onPasswordSucceeded(Context, Intent, UserHandle)} [all...] |
/packages/apps/Settings/src/com/android/settings/core/ |
SubSettingLauncher.java | 22 import android.content.Intent; 105 final Intent intent = toIntent(); local 111 launchForResultAsUser(intent, mLaunchRequest.userHandle, mLaunchRequest.mResultListener, 114 launchAsUser(intent, mLaunchRequest.userHandle); 116 launchForResult(mLaunchRequest.mResultListener, intent, mLaunchRequest.mRequestCode); 118 launch(intent); 122 public Intent toIntent() { 123 final Intent intent = new Intent(Intent.ACTION_MAIN) local [all...] |
/cts/tests/app/src/android/app/cts/ |
RemoteInputTest.java | 20 import android.content.Intent; 80 Intent intent = new Intent(); local 83 RemoteInput.addDataResultToIntent(input, intent, putResults); 85 verifyIntentHasDataResults(intent, uri); 91 Intent intent = new Intent(); local 96 RemoteInput.addResultsToIntent(arr, intent, putResults) 106 Intent intent = new Intent(); local 121 Intent intent = new Intent(); local 132 Intent intent = new Intent(); local 141 Intent intent = new Intent(); local 150 Intent intent = new Intent(); local 161 Intent intent = new Intent(); local [all...] |
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyActivityEvent.java | 21 import android.content.Intent; 45 * @return Intent for the new activity 47 private Intent getEvent() { 48 Intent intent = new Intent(Intent.ACTION_MAIN); local 49 intent.addCategory(Intent.CATEGORY_LAUNCHER); 50 intent.setComponent(mApp) 57 Intent intent = getEvent(); local [all...] |
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/controller/ |
ComponentController.java | 3 import android.content.Intent; 16 protected Intent intent; field in class:ComponentController 21 public ComponentController(T component, Intent intent) { 23 this.intent = intent; 41 public Intent getIntent() { 42 Intent intent = this.intent == null ? new Intent(RuntimeEnvironment.application, component.getClass()) : this.in (…) local [all...] |
/packages/apps/TV/src/com/android/tv/ |
LauncherActivity.java | 22 import android.content.Intent; 43 private static final String EXTRA_INTENT = "com.android.tv.LauncherActivity.INTENT"; 48 public static void startActivitySafe(Activity baseActivity, Intent intentToLaunch) { 55 private static Intent createIntent( 56 Context context, Intent intentToLaunch, boolean requestResult) { 57 Intent intent = new Intent(context, LauncherActivity.class); local 58 intent.putExtra(EXTRA_INTENT, intentToLaunch); 60 intent.putExtra(EXTRA_REQUEST_RESULT, true) 70 Intent intent = getIntent().getParcelableExtra(EXTRA_INTENT); local [all...] |
/packages/apps/Dialer/java/com/android/dialer/util/ |
IntentUtil.java | 19 import android.content.Intent; 29 public static Intent getSendSmsIntent(CharSequence phoneNumber) { 30 return new Intent(Intent.ACTION_SENDTO, Uri.parse(SMS_URI_PREFIX + phoneNumber)); 33 public static Intent getNewContactIntent() { 34 return new Intent(Intent.ACTION_INSERT, ContactsContract.Contacts.CONTENT_URI) 35 .addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); 38 public static Intent getNewContactIntent(CharSequence phoneNumber) { 42 public static Intent getNewContactIntent 44 Intent intent = getNewContactIntent(); local 50 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local 62 Intent intent = getAddToExistingContactIntent(); local [all...] |
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
SettingActivity.java | 4 import android.content.Intent; 26 Intent intent = this.getIntent(); local 27 mServerIP.setText(intent.getStringExtra(PMCMainActivity.SETTING_SERVER_IP_KEY)); 28 mServerPort.setText(intent.getStringExtra(PMCMainActivity.SETTING_SERVER_PORT_KEY)); 29 mInterval.setText(intent.getStringExtra(PMCMainActivity.SETTING_INTERVAL_KEY)); 30 mIperfBandwidth.setText(intent.getStringExtra(PMCMainActivity.SETTING_IPERF_BANDWIDTH_KEY)); 31 mIperfLogfile.setText(intent.getStringExtra(PMCMainActivity.SETTING_IPERF_LOGFILE_KEY)); 36 Intent intent = new Intent() local [all...] |
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/ |
BroadcastInterceptingContext.java | 22 import android.content.Intent; 39 * {@link Context#sendBroadcast(Intent)}. 46 public abstract class FutureIntent extends FutureTask<Intent> { 71 public boolean dispatchBroadcast(Intent intent) { 72 if (mFilter.match(getContentResolver(), intent, false, TAG) > 0) { 75 mReceiver.onReceive(context, intent); 78 set(intent); 87 public Intent get() throws InterruptedException, ExecutionException { 104 final Intent intent = get(timeout, unit) local [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
CallIntentProcessor.java | 6 import android.content.Intent; 31 Intent intent); 32 void processIncomingCallIntent(CallsManager callsManager, Intent intent); 33 void processUnknownCallIntent(CallsManager callsManager, Intent intent); 39 Intent intent) { 40 CallIntentProcessor.processOutgoingCallIntent(context, callsManager, intent); [all...] |
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
BatteryStatsProcessStateTests.java | 20 import android.content.Intent; 36 Intent intent = new Intent(); local 37 intent.setClass(mContext, SimpleForegroundService.class); 39 mContext.startForegroundService(intent); 45 Intent intent = new Intent(); local 46 intent.setClass(mContext, SimpleActivity.class) [all...] |
/cts/tests/framework/base/activitymanager/app/src/android/server/am/ |
RecursiveActivity.java | 19 import android.content.Intent; 34 final Intent intent = new Intent(this, RecursiveActivity.class); local 35 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK); 36 startActivity(intent); 39 final Intent intent = new Intent(this, TestActivity.class) local [all...] |
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
TestLogClient.java | 21 import android.content.Intent; 44 Intent intent = new Intent(); local 45 intent.setComponent( 47 intent.putExtra(EXTRA_LOG_TAG, mLogTag); 48 intent.putExtra(EXTRA_KEY, key); 49 intent.putExtra(EXTRA_VALUE, value); 50 mContext.startService(intent);
|
/development/samples/training/notify-user/src/com/example/android/pingme/ |
ResultActivity.java | 18 import android.content.Intent; 39 Intent intent = new Intent(getApplicationContext(), PingService.class); local 40 intent.setAction(CommonConstants.ACTION_SNOOZE); 41 startService(intent); 45 Intent intent = new Intent(getApplicationContext(), PingService.class); local 46 intent.setAction(CommonConstants.ACTION_DISMISS) [all...] |