HomeSort by relevance Sort by last modified time
    Searched refs:intent (Results 51 - 75 of 4230) sorted by null

1 23 4 5 6 7 8 91011>>

  /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...]
  /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...]
  /cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
ImeCommandReceiver.java 21 import android.content.Intent;
29 * {@link ImeCommandConstants#ACTION_IME_COMMAND} intent receiver.
38 * Callback method for {@link ImeCommandConstants#COMMAND_COMMIT_TEXT} intent.
46 * Callback method for {@link ImeCommandConstants#COMMAND_SWITCH_INPUT_METHOD} intent.
53 * Callback method for {@link ImeCommandConstants#COMMAND_REQUEST_HIDE_SELF} intent.
66 public void onReceive(final Context context, final Intent intent) {
67 final String command = intent.getStringExtra(ImeCommandConstants.EXTRA_COMMAND);
74 final CharSequence text = getCharSequence1(intent);
75 final int newCursorPosition = getInt1(intent);
    [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...]
  /packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
IntentAsserts.java 18 import static android.content.Intent.EXTRA_INTENT;
23 import android.content.Intent;
39 public static void assertHasAction(Intent intent, String expected) {
40 assertEquals(expected, intent.getAction());
43 public static Intent assertHasExtraIntent(Intent intent) {
44 Intent extra = (Intent) intent.getExtra(EXTRA_INTENT)
    [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);
37 public static Intent getNewContactIntent(CharSequence phoneNumber) {
41 public static Intent getNewContactIntent(
43 Intent intent = getNewContactIntent() local
49 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local
61 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...]
  /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...]
  /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...]
  /frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
CarrierDefaultBroadcastReceiver.java 20 import android.content.Intent;
29 public void onReceive(Context context, Intent intent) {
30 Log.d(TAG, "onReceive intent: " + intent.getAction());
31 if (ProvisionObserver.isDeferredForProvision(context, intent)) {
35 if (Intent.ACTION_LOCALE_CHANGED.equals(intent.getAction())) {
39 List<Integer> actionList = CustomConfigLoader.loadCarrierActionList(context, intent);
42 CarrierActionUtils.applyCarrierAction(actionIdx, intent, context)
    [all...]
  /packages/experimental/ExampleImsFramework/src/com/android/example/imsframework/
ImsFrameworkReceiver.java 21 import android.content.Intent;
28 public void onReceive(Context context, Intent intent) {
29 String action = intent.getAction();
30 if (Intent.ACTION_BOOT_COMPLETED.equals(action)) {
32 intent = new Intent(intent);
33 intent.setClass(context, ImsFrameworkService.class);
34 if (context.startService(intent) == null)
    [all...]
  /cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
MissedCallNotificationReceiver.java 21 import android.content.Intent;
29 void onIntentReceived(Intent intent);
33 public void onReceive(Context context, Intent intent) {
34 sIntentListener.onIntentReceived(intent);
  /cts/hostsidetests/services/activityandwindowmanager/activitymanager/appDisplaySize/src/android/displaysize/app/
SmallestWidthActivity.java 21 import android.content.Intent;
27 protected void onNewIntent(Intent intent) {
28 super.onNewIntent(intent);
30 final Bundle extras = intent.getExtras();
32 Intent startIntent = new Intent();
  /cts/tests/tests/telecom/src/android/telecom/cts/
MockMissedCallNotificationReceiver.java 22 import android.content.Intent;
28 void onIntentReceived(Intent intent);
34 public void onReceive(Context context, Intent intent) {
36 sIntentListener.onIntentReceived(intent);
  /cts/tests/tests/telephony/src/android/telephony/cts/
SmsReceiver.java 21 import android.content.Intent;
26 public void onReceive(Context context, Intent intent) {
27 if (intent != null && intent.getAction().equals(Telephony.Sms.Intents.SMS_DELIVER_ACTION)) {
28 context.sendBroadcast(new Intent(SmsManagerTest.SMS_DELIVER_DEFAULT_APP_ACTION));
  /developers/build/prebuilts/gradle/AppShortcuts/app/src/main/java/com/example/android/appshortcuts/
MyReceiver.java 20 import android.content.Intent;
27 public void onReceive(Context context, Intent intent) {
28 Log.i(TAG, "onReceive: " + intent);
29 if (Intent.ACTION_LOCALE_CHANGED.equals(intent.getAction())) {
  /developers/samples/android/system/AppShortcuts/app/src/main/java/com/example/android/appshortcuts/
MyReceiver.java 20 import android.content.Intent;
27 public void onReceive(Context context, Intent intent) {
28 Log.i(TAG, "onReceive: " + intent);
29 if (Intent.ACTION_LOCALE_CHANGED.equals(intent.getAction())) {
  /development/apps/SettingInjectorSample/src/com/example/android/injector/
UpdatingInjectorService.java 19 import android.content.Intent;
39 Intent intent = new Intent(ACTION_INJECTED_SETTING_CHANGED); local
40 sendBroadcast(intent);
41 Log.d(TAG, "Broadcasting: " + intent);
  /development/samples/ApiDemos/src/com/example/android/apis/media/
MediaPlayerDemo.java 21 import android.content.Intent;
60 Intent intent =
61 new Intent(MediaPlayerDemo.this.getApplication(),
63 intent.putExtra(MEDIA, LOCAL_AUDIO);
64 startActivity(intent);
70 Intent intent =
71 new Intent(MediaPlayerDemo.this.getApplication(),
73 intent.putExtra(MEDIA, RESOURCES_AUDIO)
    [all...]
  /development/samples/browseable/AppShortcuts/src/com.example.android.appshortcuts/
MyReceiver.java 20 import android.content.Intent;
27 public void onReceive(Context context, Intent intent) {
28 Log.i(TAG, "onReceive: " + intent);
29 if (Intent.ACTION_LOCALE_CHANGED.equals(intent.getAction())) {
  /development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/service/
RespondService.java 20 import android.content.Intent;
26 * This service handles the system intent ACTION_RESPOND_VIA_MESSAGE when we are the default SMS
37 protected void onHandleIntent(Intent intent) {
38 if (intent != null) {
41 TelephonyManager.ACTION_RESPOND_VIA_MESSAGE.equals(intent.getAction())) {
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
KeyboardShortcutsReceiver.java 20 import android.content.Intent;
27 public void onReceive(Context context, Intent intent) {
28 if (Intent.ACTION_SHOW_KEYBOARD_SHORTCUTS.equals(intent.getAction())) {
30 } else if (Intent.ACTION_DISMISS_KEYBOARD_SHORTCUTS.equals(intent.getAction())) {

Completed in 3084 milliseconds

1 23 4 5 6 7 8 91011>>