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

1 2 3 4 5 6 7 891011>>

  /frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
SampleMediaButtonReceiver.java 20 import android.content.Intent;
40 public void onReceive(Context context, Intent intent) {
41 if (mActivity != null && Intent.ACTION_MEDIA_BUTTON.equals(intent.getAction())) {
43 (KeyEvent)intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT));
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
AnalyticsUtils.java 24 import android.content.Intent;
75 * @param intent Intent that started provisioning
78 public static List<String> getAllProvisioningExtras(Intent intent) {
79 if (intent == null || ACTION_RESUME_PROVISIONING.equals(intent.getAction())) {
82 } else if (ACTION_NDEF_DISCOVERED.equals(intent.getAction())) {
83 return getExtrasFromProperties(intent);
85 return getExtrasFromBundle(intent);
    [all...]
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/
PreBootListener.java 20 import android.content.Intent;
31 public void onReceive(Context context, Intent intent) {
32 if (Intent.ACTION_PRE_BOOT_COMPLETED.equals(intent.getAction())) {
41 ProvisionLogger.logw("Unexpected intent action: " + intent.getAction());
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
ExtrasProvisioningDataParser.java 63 import android.content.Intent;
85 * A parser which parses provisioning data from intent which stores in {@link Bundle} extras.
118 public ProvisioningParams parse(Intent provisioningIntent)
126 ProvisionLogger.logi("Processing mininalist extras intent.");
139 * Parses minimal supported set of parameters from bundle extras of a provisioning intent.
162 Intent intent, Context context)
166 ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE.equals(intent.getAction());
169 String provisioningAction = mUtils.mapIntentToDpmAction(intent);
174 ComponentName deviceAdminComponentName = (ComponentName) intent.getParcelableExtra
    [all...]
  /packages/apps/Settings/src/com/android/settings/
AirplaneModeVoiceActivity.java 20 import android.content.Intent;
34 protected boolean onVoiceSettingInteraction(Intent intent) {
35 if (intent.hasExtra(Settings.EXTRA_AIRPLANE_MODE_ENABLED)) {
38 mgr.setAirplaneMode(intent.getBooleanExtra(
  /packages/experimental/ExampleImsFramework/src/com/android/example/imsframework/
ImsFrameworkService.java 20 import android.content.Intent;
29 * before {@link Intent#ACTION_BOOT_COMPLETED} is broadcast, so early
37 public int onStartCommand(Intent intent, int flags, int startId) {
38 String action = intent.getAction();
39 Log.d(TAG, "Service starting for intent " + action);
40 if (action.equals(Intent.ACTION_BOOT_COMPLETED)) {
53 public IBinder onBind(Intent intent) {
  /packages/apps/Messaging/src/com/android/messaging/datamodel/action/
BackgroundWorkerService.java 21 import android.content.Intent;
77 * Queue action intent to the BackgroundWorkerService after acquiring wake lock
81 final Intent intent = new Intent(); local
82 intent.putExtra(EXTRA_ACTION, action);
83 intent.putExtra(EXTRA_ATTEMPT, retryCount);
84 startServiceWithIntent(OP_PROCESS_REQUEST, intent);
88 * Queue intent to the BackgroundWorkerService after acquiring wake lock
90 private static void startServiceWithIntent(final int opcode, final Intent intent)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
BleEncryptedClientService.java 35 import android.content.Intent;
56 "com.android.cts.verifier.bluetooth.encripted.intent.BLE_BLUETOOTH_DISABLED";
58 "com.android.cts.verifier.bluetooth.encripted.intent.BLE_WRITE_ENCRYPTED_CHARACTERISTIC";
60 "com.android.cts.verifier.bluetooth.encripted.intent.BLE_WRITE_NOT_ENCRYPTED_CHARACTERISTIC";
62 "com.android.cts.verifier.bluetooth.encripted.intent.BLE_READ_ENCRYPTED_CHARACTERISTIC";
64 "com.android.cts.verifier.bluetooth.encripted.intent.BLE_READ_NOT_ENCRYPTED_CHARACTERISTIC";
66 "com.android.cts.verifier.bluetooth.encripted.intent.BLE_WRITE_ENCRYPTED_DESCRIPTOR";
68 "com.android.cts.verifier.bluetooth.encripted.intent.BLE_WRITE_NOT_ENCRYPTED_DESCRIPTOR";
70 "com.android.cts.verifier.bluetooth.encripted.intent.BLE_READ_ENCRYPTED_DESCRIPTOR";
72 "com.android.cts.verifier.bluetooth.encripted.intent.BLE_READ_NOT_ENCRYPTED_DESCRIPTOR";
164 Intent intent = new Intent(INTENT_BLE_BLUETOOTH_DISABLED); local
169 Intent intent = new Intent(ACTION_DISCONNECTED); local
    [all...]
  /frameworks/base/core/tests/coretests/src/android/app/activity/
BroadcastTest.java 23 import android.content.Intent;
108 public Intent makeBroadcastIntent(String action) {
109 Intent intent = new Intent(action, null); local
110 intent.putExtra("caller", mCallTarget);
111 return intent;
114 public void finishWithResult(int resultCode, Intent data) {
119 public final void gotReceive(String name, Intent intent) {
305 Intent intent = new Intent(LaunchpadActivity.BROADCAST_STICKY1, null); local
320 Intent intent = new Intent(LaunchpadActivity.BROADCAST_STICKY1, null); local
335 Intent intent = new Intent(LaunchpadActivity.BROADCAST_STICKY1, null); local
352 Intent intent = new Intent(LaunchpadActivity.BROADCAST_STICKY1, null); local
362 Intent intent = new Intent(LaunchpadActivity.BROADCAST_STICKY1, null); local
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/SplitApp/feature/src/com/android/cts/splitapp/
FeatureService.java 20 import android.content.Intent;
28 protected void onHandleIntent(Intent intent) {
  /cts/hostsidetests/devicepolicy/app/AppRestrictionsTargetApp/src/com/android/cts/apprestrictions/targetapp/
ApplicationRestrictionsActivity.java 20 import android.content.Intent;
46 protected void onNewIntent(Intent intent) {
47 super.onNewIntent(intent);
48 handleIntent(intent);
51 private void handleIntent(Intent intent) {
53 sendBroadcast(new Intent(ACTION_RESTRICTIONS_VALUE)
54 .addFlags(Intent.FLAG_RECEIVER_FOREGROUND)
  /cts/hostsidetests/devicepolicy/app/Assistant/src/com/android/cts/devicepolicy/assistapp/
MyInteractionSessionService.java 20 import android.content.Intent;
47 Intent intent = new Intent(ACTION_HANDLE_SCREENSHOT); local
48 intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
49 intent.putExtra(KEY_HAS_SCREENSHOT, screenshot != null);
50 getContext().sendBroadcast(intent);
  /cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
ContentTest.java 17 package com.android.cts.intent.sender;
22 import android.content.Intent;
78 * This method will send an intent to a receiver in another profile.
79 * This intent will have, in the ClipData, a uri whose associated file stores a message.
80 * The receiver will read the message from the uri, and put it inside the result intent.
85 Intent intent = new Intent(ACTION_READ_FROM_URI); local
86 intent.setClipData(ClipData.newRawUri("", uri));
87 intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
105 Intent intent = new Intent(ACTION_WRITE_TO_URI); local
120 Intent intent = new Intent(ACTION_READ_FROM_URI); local
166 final Intent intent = new Intent(ACTION_READ_FROM_URI); local
187 Intent intent = new Intent(ACTION_NOTIFY_URI_CHANGE); local
211 Intent intent = new Intent(ACTION_OBSERVE_URI_CHANGE); local
    [all...]
  /cts/hostsidetests/services/activityandwindowmanager/activitymanager/app/src/android/server/cts/
AlwaysFocusablePipActivity.java 19 import static android.content.Intent.FLAG_ACTIVITY_CLEAR_TASK;
20 import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
24 import android.content.Intent;
31 final Intent intent = new Intent(caller, AlwaysFocusablePipActivity.class); local
33 intent.setFlags(FLAG_ACTIVITY_CLEAR_TASK);
35 intent.addFlags(FLAG_ACTIVITY_NEW_TASK);
41 caller.startActivity(intent, options.toBundle());
  /cts/tests/app/app/src/android/app/stubs/
ActivityMonitorTestActivity.java 20 import android.content.Intent;
36 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
43 Intent intent; local
45 intent = new Intent(this, InstrumentationTestActivity.class);
47 intent = new Intent(InstrumentationTestActivity.START_INTENT);
49 startActivityForResult(intent, 42);
57 void onActivityResult(int requestCode, int resultCode, Intent data)
    [all...]
  /cts/tests/app/src/android/app/cts/
AliasActivityTest.java 23 import android.content.Intent;
39 Intent intent = new Intent(); local
40 intent.setClass(context, AliasActivityStub.class);
41 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
45 context.startActivity(intent);
  /cts/tests/tests/alarmclock/service/src/android/alarmclock/service/
VoiceInteractionMain.java 21 import android.content.Intent;
32 Intent intent = new Intent(); local
35 intent.putExtra(Utils.TESTCASE_TYPE, testCaseType);
36 intent.setComponent(new ComponentName(this, MainInteractionService.class));
37 ComponentName serviceName = startService(intent);
  /cts/tests/tests/net/src/android/net/cts/
ConnectivityReceiver.java 21 import android.content.Intent;
58 public void onReceive(Context context, Intent intent) {
59 Log.i("ConnectivityReceiver", "Received: " + intent.getAction());
60 if (ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) {
62 } else if (FINAL_ACTION.equals(intent.getAction())) {
  /cts/tests/tests/opengl/src/android/opengl/cts/
ProgramTest.java 18 import android.content.Intent;
31 Intent intent = new Intent(); local
32 intent.putExtra(OpenGLES20NativeActivityOne.EXTRA_VIEW_TYPE, viewType);
33 intent.putExtra(OpenGLES20NativeActivityOne.EXTRA_VIEW_INDEX, viewIndex);
34 setActivityIntent(intent);
  /cts/tests/tests/permission/src/android/permission/cts/
TelephonyManagerPermissionTest.java 24 import android.content.Intent;
208 Intent intent = new Intent("android.intent.action.SIM_STATE_CHANGED"); local
209 getContext().sendBroadcast(intent);
213 Intent intent = new Intent("android.intent.action.SERVICE_STATE") local
218 Intent intent = new Intent("android.telephony.action.DEFAULT_SUBSCRIPTION_CHANGED"); local
223 Intent intent = new Intent( local
229 Intent intent = new Intent( local
235 Intent intent = new Intent( local
241 Intent intent = new Intent("android.intent.action.SIG_STR"); local
246 Intent intent = new Intent("android.provider.Telephony.SECRET_CODE"); local
    [all...]
  /cts/tests/tests/telephony/src/android/telephony/cts/
MmsReceiver.java 21 import android.content.Intent;
31 public void onReceive(Context context, Intent intent) {
  /cts/tests/tests/voicesettings/service/src/android/voicesettings/service/
VoiceInteractionMain.java 22 import android.content.Intent;
33 Intent intent = new Intent(); local
36 intent.putExtra(BroadcastUtils.TESTCASE_TYPE, testCaseType);
37 intent.setComponent(new ComponentName(this, MainInteractionService.class));
38 ComponentName serviceName = startService(intent);
  /developers/build/prebuilts/gradle/XYZTouristAttractions/Wearable/src/main/java/com/example/android/xyztouristattractions/service/
UtilityService.java 22 import android.content.Intent;
54 Intent intent = new Intent(context, UtilityService.class); local
55 intent.setAction(UtilityService.ACTION_CLEAR_NOTIFICATION);
56 context.startService(intent);
63 public static Intent getClearRemoteNotificationsIntent(Context context) {
64 Intent intent = new Intent(context, UtilityService.class) local
78 Intent intent = new Intent(context, UtilityService.class); local
    [all...]
  /developers/samples/android/wearable/wear/XYZTouristAttractions/Wearable/src/main/java/com/example/android/xyztouristattractions/service/
UtilityService.java 22 import android.content.Intent;
54 Intent intent = new Intent(context, UtilityService.class); local
55 intent.setAction(UtilityService.ACTION_CLEAR_NOTIFICATION);
56 context.startService(intent);
63 public static Intent getClearRemoteNotificationsIntent(Context context) {
64 Intent intent = new Intent(context, UtilityService.class) local
78 Intent intent = new Intent(context, UtilityService.class); local
    [all...]
  /development/samples/AppNavigation/src/com/example/android/appnavigation/app/
ContentViewActivity.java 22 import android.content.Intent;
34 Intent intent = getIntent(); local
35 if (Intent.ACTION_VIEW.equals(intent.getAction())) {
38 } else if (intent.hasExtra(EXTRA_TEXT)) {
40 tv.setText(intent.getStringExtra(EXTRA_TEXT));

Completed in 647 milliseconds

1 2 3 4 5 6 7 891011>>