HomeSort by relevance Sort by last modified time
    Searched refs:intent (Results 126 - 150 of 4825) sorted by null

1 2 3 4 56 7 8 91011>>

  /cts/tests/tests/content/src/android/content/cts/
ResultReceiver.java 21 import android.content.Intent;
34 public void onReceive(Context context, Intent intent) {
35 mReceivedBroadCast = MOCK_ACTION.equals(intent.getAction());
  /cts/tests/tests/tv/src/android/tv/settings/cts/
SettingsLeanbackTest.java 20 import android.content.Intent;
33 "android.intent.category.LEANBACK_SETTINGS";
56 * category intent.
64 Intent intent = new Intent(Intent.ACTION_MAIN); local
65 intent.addCategory(Intent.CATEGORY_LEANBACK_LAUNCHER);
66 assertIntentCanBeHandled(intent);
79 Intent intent = new Intent(Intent.ACTION_MAIN); local
    [all...]
  /development/samples/Home/src/com/example/android/home/
ApplicationInfo.java 20 import android.content.Intent;
24 * Represents a launchable application. An application is made of a name (or title), an intent
34 * The intent used to start the application.
36 Intent intent; field in class:ApplicationInfo
49 * Creates the application intent based on a component name and various launch flags.
51 * @param className the class name of the component representing the intent
55 intent = new Intent(Intent.ACTION_MAIN)
    [all...]
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/notifier/
NotifierService.java 19 import android.content.Intent;
34 protected void onHandleIntent(Intent intent) {
37 Log.i(TAG, "Contact opened: " + intent.getData());
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
ConfigTestReceiver.java 5 import android.content.Intent;
10 public void onReceive(Context context, Intent intent) {
15 public void onReceive(Context context, Intent intent) {
  /external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
ScriptsLiveFolder.java 21 import android.content.Intent;
22 import android.content.Intent.ShortcutIconResource;
38 final Intent intent = getIntent(); local
39 final String action = intent.getAction();
48 private Intent createLiveFolder(Context context, Uri uri, String name, int icon) {
49 final Intent intent = new Intent(); local
50 intent.setData(uri)
    [all...]
  /frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
RecoverySnapshotListenersStorage.java 47 * @param intent PendingIntent which will be triggered when new snapshot is available.
50 int recoveryAgentUid, @Nullable PendingIntent intent) {
52 mAgentIntents.put(recoveryAgentUid, intent);
55 Log.i(TAG, "Snapshot already created for agent. Immediately triggering intent.");
56 tryToSendIntent(recoveryAgentUid, intent);
70 * when it does register, that intent is immediately triggered.
75 PendingIntent intent = mAgentIntents.get(recoveryAgentUid); local
76 if (intent == null) {
83 tryToSendIntent(recoveryAgentUid, intent);
87 * Attempts to send {@code intent} for the recovery agent. If this fails, remembers to notif
    [all...]
  /frameworks/support/work/workmanager/src/main/java/androidx/work/impl/constraints/trackers/
StorageNotLowTracker.java 19 import android.content.Intent;
44 Intent intent = mAppContext.registerReceiver(null, getIntentFilter()); local
45 if (intent == null || intent.getAction() == null) {
51 switch (intent.getAction()) {
52 case Intent.ACTION_DEVICE_STORAGE_OK:
55 case Intent.ACTION_DEVICE_STORAGE_LOW:
59 // This should never happen because the intent filter is configured
72 intentFilter.addAction(Intent.ACTION_DEVICE_STORAGE_OK)
    [all...]
  /packages/apps/Email/provider_src/com/android/email/service/
EmailBroadcastReceiver.java 21 import android.content.Intent;
28 public void onReceive(Context context, Intent intent) {
29 EmailBroadcastProcessorService.processBroadcastIntent(context, intent);
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
PackagesMonitor.java 22 import android.content.Intent;
38 public void onReceive(final Context context, final Intent intent) {
39 intent.setClass(context, AsyncService.class);
40 context.startService(intent);
49 protected void onHandleIntent(Intent intent) {
50 onReceiveAsync(this, intent);
55 private static void onReceiveAsync(Context context, Intent intent) {
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/receiver/
SmsDeliverReceiver.java 21 import android.content.Intent;
28 public void onReceive(final Context context, final Intent intent) {
29 SmsReceiver.deliverSmsIntent(context, intent);
  /packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
BatterySaverReceiverTest.java 21 import android.content.Intent;
52 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); local
53 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_AC);
55 mBatterySaverReceiver.onReceive(mContext, intent);
62 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED) local
72 Intent intent = new Intent(PowerManager.ACTION_POWER_SAVE_MODE_CHANGING); local
    [all...]
  /packages/services/Telephony/tests/src/com/android/phone/tests/
SendInstantTextTestService.java 20 import android.content.Intent;
37 showMessageWithToast((Intent) msg.obj);
46 protected void onHandleIntent(Intent intent) {
47 String action = intent.getAction();
48 Uri uri = intent.getData();
49 String message = intent.getStringExtra(Intent.EXTRA_TEXT);
54 mHandler.sendMessageDelayed(Message.obtain(mHandler, 0, intent), 5 * 1000);
57 private void showMessageWithToast(Intent intent)
    [all...]
  /cts/tests/tests/libcorefileio/src/android/cts/
LockHoldingService.java 20 import android.content.Intent;
102 public IBinder onBind(Intent intent) {
107 public int onStartCommand(Intent intent, int flags, int startID) {
109 if (intent.getBooleanExtra(LOCK_BEHAVIOR_RELEASE_AND_NOTIFY_KEY, false)) {
110 acquireLockAndThenWaitThenRelease(intent);
112 acquireLock(intent);
123 private void acquireLock(Intent intent) throws IOException
185 Intent intent = new Intent() local
    [all...]
  /cts/tests/app/app/src/android/app/stubs/
ClearTop.java 20 import android.content.Intent;
33 final Intent intent = new Intent(getIntent()).setAction(LocalScreen.CLEAR_TASK).setClass( local
35 startActivity(intent);
39 public void onNewIntent(Intent intent) {
41 if (LocalScreen.CLEAR_TASK.equals(intent.getAction())) {
44 setResult(RESULT_CANCELED, new Intent().setAction("New intent received " + inten
    [all...]
  /cts/tests/tests/bluetooth/src/android/bluetooth/cts/
BluetoothScanReceiver.java 22 import android.content.Intent;
34 public void onReceive(Context context, Intent intent) {
35 Log.i(TAG, "Received scan results:" + intent);
36 Log.i(TAG, "ScanResults = " + intent.getParcelableArrayListExtra(
39 + intent.getIntExtra(BluetoothLeScanner.EXTRA_CALLBACK_TYPE, -1));
41 + intent.getIntExtra(BluetoothLeScanner.EXTRA_ERROR_CODE, -1));
  /cts/tests/tests/media/src/android/media/cts/
FaceDetectorTest.java 22 import android.content.Intent;
35 Intent intent = new Intent(); local
36 intent.setClass(getInstrumentation().getTargetContext(), FaceDetectorStub.class);
37 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
38 intent.putExtra(FaceDetectorStub.IMAGE_ID, R.drawable.faces);
39 mActivity = (FaceDetectorStub) getInstrumentation().startActivitySync(intent);
  /cts/tests/tests/os/src/android/os/cts/
ClearTop.java 20 import android.content.Intent;
33 final Intent intent = new Intent(getIntent()).setAction(LocalScreen.CLEAR_TASK).setClass( local
35 startActivity(intent);
39 public void onNewIntent(Intent intent) {
41 if (LocalScreen.CLEAR_TASK.equals(intent.getAction())) {
44 setResult(RESULT_CANCELED, new Intent().setAction("New intent received " + inten
    [all...]
  /cts/tests/tests/security/src/android/security/cts/
STKFrameworkTest.java 19 import android.content.Intent;
50 Intent intent = new Intent(); local
51 intent.setAction("com.android.internal.stk.command");
52 intent.putExtra("STK CMD", "test");
55 intent.setComponent(cn);
57 mContext.sendBroadcast(intent);
  /cts/tests/tests/telecom/src/android/telecom/cts/
MockPhoneAccountChangedReceiver.java 21 import android.content.Intent;
38 public void onReceive(Context context, Intent intent) {
40 if (TelecomManager.ACTION_PHONE_ACCOUNT_REGISTERED.equals(intent.getAction())) {
41 sIntentListener.onPhoneAccountRegistered(intent.getParcelableExtra(
44 intent.getAction())) {
45 sIntentListener.onPhoneAccountUnregistered(intent.getParcelableExtra(
  /cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
MainInteractionService.java 21 import android.content.Intent;
28 private Intent mIntent;
38 public int onStartCommand(Intent intent, int flags, int startId) {
40 mIntent = intent;
47 Log.wtf(TAG, "Can't start session because either intent is null or onReady() "
53 Intent intent = new Intent(); local
54 intent.setComponent(new ComponentName("android.voiceinteraction.testapp"
    [all...]
  /cts/tools/cts-holo-generation/src/com/android/cts/holo_capture/
CaptureActivity.java 20 import android.content.Intent;
38 Intent intent = new Intent(); local
39 intent.setClassName("com.android.cts.holo", "android.holo.cts.ThemeTestActivity");
40 intent.putExtra("task", 2);
41 intent.putExtra("layoutAdapterMode", 1);
43 startActivityForResult(intent, requestCode);
47 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
  /development/samples/ApiDemos/src/com/example/android/apis/nfc/
TechFilter.java 22 import android.content.Intent;
38 Intent intent = getIntent(); local
39 String action = intent.getAction();
41 mText.setText("Discovered tag " + ++mCount + " with intent: " + intent);
48 public void onNewIntent(Intent intent) {
49 mText.setText("Discovered tag " + ++mCount + " with intent: " + intent);
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
ActiveModeManager.java 20 import android.content.Intent;
59 final Intent intent = new Intent(WifiManager.WIFI_SCAN_AVAILABLE); local
60 intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
62 intent.putExtra(WifiManager.EXTRA_SCAN_AVAILABLE, WifiManager.WIFI_STATE_ENABLED);
64 intent.putExtra(WifiManager.EXTRA_SCAN_AVAILABLE, WifiManager.WIFI_STATE_DISABLED);
66 context.sendStickyBroadcastAsUser(intent, UserHandle.ALL);
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
AppSmsManagerTest.java 20 import android.content.Intent;
64 Intent intent = new Intent(); local
65 intent.setAction(Intents.SMS_DELIVER_ACTION);
66 intent.putExtra("pdus", new byte[][]{IccUtils.hexStringToBytes(PDU), null, null});
67 intent.putExtra("format", SmsMessage.FORMAT_3GPP);
71 mAppSmsManagerUT.handleSmsReceivedIntent(intent);

Completed in 617 milliseconds

1 2 3 4 56 7 8 91011>>