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

1 23 4 5 6 7 8 91011>>

  /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...]
  /development/samples/ApiDemos/src/com/example/android/apis/content/
DocumentsSample.java 22 import android.content.Intent;
83 Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
84 intent.addCategory(Intent.CATEGORY_OPENABLE);
85 intent.setType("*/*");
87 intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true)
    [all...]
InstallApk.java 25 import android.content.Intent;
44 * package installation API that uses {@link Intent#ACTION_INSTALL_PACKAGE}.
70 public void onActivityResult(int requestCode, int resultCode, Intent intent) {
92 Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE);
93 intent.setData(getApkUri("HelloActivity.apk"));
94 intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
    [all...]
  /cts/tests/app/app/src/android/app/stubs/
CommandReceiver.java 22 import android.content.Intent;
55 * @param intent The Intent being received.
58 public void onReceive(Context context, Intent intent) {
59 int command = intent.getIntExtra(EXTRA_COMMAND, -1);
60 Log.d(TAG + "_" + context.getPackageName(), "Got command " + command + ", intent="
61 + intent);
64 doBindService(context, intent);
67 doUnbindService(context, intent);
140 Intent intent = new Intent(); local
    [all...]
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...]
LocalActivityManagerTestHelper.java 23 import android.content.Intent;
91 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); local
92 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
93 mLocalActivityManager.startActivity(id, intent);
119 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class) local
161 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); local
180 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); local
194 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); local
208 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); local
230 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); local
265 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); local
319 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); 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/assist/service/src/android/assist/service/
DelayedAssistantActivity.java 22 import android.content.Intent;
35 Intent intent = new Intent(); local
36 intent.setComponent(new ComponentName(this, MainInteractionService.class));
37 intent.putExtra(Utils.EXTRA_REGISTER_RECEIVER, true);
38 intent.putExtra(Utils.TESTCASE_TYPE, getIntent().getStringExtra(Utils.TESTCASE_TYPE));
39 intent.putExtra(Utils.DISPLAY_WIDTH_KEY,
41 intent.putExtra(Utils.DISPLAY_HEIGHT_KEY,
43 intent.putExtra(Utils.EXTRA_REMOTE_CALLBACK, remoteCallback)
    [all...]
  /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);
ResultReceiver.java 21 import android.content.Intent;
32 public void onReceive(Context context, Intent intent) {
33 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...]
  /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/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/src/android/voiceinteraction/cts/
TestStartActivity.java 21 import android.content.Intent;
37 Intent intent = new Intent(); local
38 intent.setAction("android.intent.action.START_TEST");
39 intent.setComponent(new ComponentName("android.voiceinteraction.service",
41 Log.i(TAG, " in onResume: " + intent);
42 startActivity(intent);
  /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...]
  /cts/tests/app/src/android/app/cts/
RemoteInputTest.java 20 import android.content.Intent;
114 Intent intent = new Intent(); local
117 RemoteInput.addDataResultToIntent(input, intent, putResults);
119 verifyIntentHasDataResults(intent, uri);
125 Intent intent = new Intent(); local
130 RemoteInput.addResultsToIntent(arr, intent, putResults)
140 Intent intent = new Intent(); local
155 Intent intent = new Intent(); local
166 Intent intent = new Intent(); local
175 Intent intent = new Intent(); local
184 Intent intent = new Intent(); local
195 Intent intent = new Intent(); local
    [all...]

Completed in 918 milliseconds

1 23 4 5 6 7 8 91011>>