Searched refs:Intent (Results 76 - 100 of 820) sorted by relevance

1234567891011>>

/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DBroadcastInterceptingContext.java22 import android.content.Intent;
39 * {@link Context#sendBroadcast(Intent)}.
46 public class BroadcastInterceptor extends AbstractFuture<Intent> {
55 public boolean dispatchBroadcast(Intent intent) {
71 public Intent get() throws InterruptedException, ExecutionException {
84 public Future<Intent> nextBroadcastIntent(String action) {
88 public Future<Intent> nextBroadcastIntent(IntentFilter filter) {
97 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {
105 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter,
124 public void sendBroadcast(Intent inten
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DShortcutManager.java20 import android.content.Intent;
49 private SparseArray<Intent> mShortcutIntents;
55 mShortcutIntents = new SparseArray<Intent>();
83 Intent intent = null;
85 intent = Intent.getIntent(intentURI);
87 Log.w(TAG, "Intent URI for shortcut invalid.", e);
109 public Intent getIntent(KeyCharacterMap kcm, int keyCode, int metaState) {
110 Intent intent = null;
/frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/
H A DWakeLoopService.java23 import android.content.Intent;
54 public IBinder onBind(Intent intent) {
60 public int onStartCommand(Intent intent, int flags, int startId) {
78 Intent wakupIntent = new Intent(WakeUpCall.WAKEUP_CALL)
94 Intent intent = new Intent(WakeUpCall.WAKEUP_CALL)
/frameworks/base/packages/Shell/src/com/android/shell/
H A DBugreportReceiver.java29 import android.content.Intent;
45 * {@link Intent#ACTION_SEND}.
67 public void onReceive(Context context, Intent intent) {
76 Intent sendIntent = buildSendIntent(context, bugreportUri, screenshotUri);
77 Intent notifIntent;
85 notifIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
114 private static Intent buildWarningIntent(Context context, Intent sendIntent) {
115 final Intent intent = new Intent(contex
[all...]
/frameworks/base/services/core/java/com/android/server/job/controllers/
H A DIdleController.java27 import android.content.Intent;
116 Intent intent = new Intent(ACTION_TRIGGER_IDLE)
118 .setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
134 filter.addAction(Intent.ACTION_SCREEN_ON);
135 filter.addAction(Intent.ACTION_SCREEN_OFF);
138 filter.addAction(Intent.ACTION_DREAMING_STARTED);
139 filter.addAction(Intent.ACTION_DREAMING_STOPPED);
148 public void onReceive(Context context, Intent intent) {
151 if (action.equals(Intent
[all...]
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
H A DRsBenchTest.java21 import android.content.Intent;
52 Intent intent = new Intent(Intent.ACTION_MAIN);
53 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DServiceTest.java21 import android.content.Intent;
191 void startExpectResult(Intent service) {
195 void startExpectResult(Intent service, Bundle bundle) {
201 getContext().startService(new Intent(service).putExtras(bundle));
205 getContext().startService(new Intent(service).putExtras(bundle));
223 void startExpectNoPermission(Intent service) {
232 void bindExpectResult(Intent service) {
339 void bindAutoExpectResult(Intent service) {
363 void bindExpectNoPermission(Intent service) {
378 startExpectResult(new Intent(getContex
[all...]
H A DActivityTestsBase.java21 import android.content.Intent;
32 protected Intent mIntent;
40 private Intent mData;
46 mIntent = new Intent(mContext, LaunchpadActivity.class);
87 public void activityFinished(int resultCode, Intent data, RuntimeException where) {
91 public Intent editIntent() {
109 finishWithResult(Activity.RESULT_CANCELED, (new Intent()).setAction(error));
112 public void finishWithResult(int resultCode, Intent data) {
118 public void finishWithResult(int resultCode, Intent data, RuntimeException where) {
136 mIntent.addFlags(Intent
[all...]
H A DLocalDeniedReceiver.java21 import android.content.Intent;
30 public void onReceive(Context context, Intent intent) {
H A DLocalGrantedReceiver.java21 import android.content.Intent;
30 public void onReceive(Context context, Intent intent) {
H A DRemoteDeniedReceiver.java21 import android.content.Intent;
30 public void onReceive(Context context, Intent intent) {
H A DRemoteGrantedReceiver.java21 import android.content.Intent;
30 public void onReceive(Context context, Intent intent) {
/frameworks/base/core/tests/coretests/src/android/provider/
H A DSettingsProviderTest.java23 import android.content.Intent;
175 Uri uri = Settings.Bookmarks.add(r, new Intent("TEST"),
183 v.put(Settings.Bookmarks.INTENT, "#Intent;action=TOAST;end");
289 assertCanBeHandled(new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS));
290 assertCanBeHandled(new Intent(Settings.ACTION_ADD_ACCOUNT));
291 assertCanBeHandled(new Intent(Settings.ACTION_AIRPLANE_MODE_SETTINGS));
292 assertCanBeHandled(new Intent(Settings.ACTION_APN_SETTINGS));
293 assertCanBeHandled(new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)
295 assertCanBeHandled(new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS));
296 assertCanBeHandled(new Intent(Setting
[all...]
/frameworks/base/core/java/com/android/internal/os/storage/
H A DExternalStorageFormatter.java8 import android.content.Intent;
80 public int onStartCommand(Intent intent, int flags, int startId) {
88 mReason = intent.getStringExtra(Intent.EXTRA_REASON);
119 public IBinder onBind(Intent intent) {
140 Intent intent = new Intent(Intent.ACTION_MASTER_CLEAR);
141 intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
142 intent.putExtra(Intent.EXTRA_REASON, mReason);
187 Intent inten
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DDockObserver.java21 import android.content.Intent;
61 private int mActualDockState = Intent.EXTRA_DOCK_STATE_UNDOCKED;
63 private int mReportedDockState = Intent.EXTRA_DOCK_STATE_UNDOCKED;
64 private int mPreviousDockState = Intent.EXTRA_DOCK_STATE_UNDOCKED;
95 if (mReportedDockState != Intent.EXTRA_DOCK_STATE_UNDOCKED) {
165 Intent intent = new Intent(Intent.ACTION_DOCK_EVENT);
166 intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
167 intent.putExtra(Intent
[all...]
/frameworks/base/services/core/java/com/android/server/search/
H A DSearchManagerService.java30 import android.content.Intent;
76 IntentFilter filter = new IntentFilter(Intent.ACTION_BOOT_COMPLETED);
80 new IntentFilter(Intent.ACTION_USER_REMOVED));
119 public void onReceive(Context context, Intent intent) {
133 public void onReceive(Context context, Intent intent) {
134 onUserRemoved(intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_OWNER));
165 Intent intent = new Intent(SearchManager.INTENT_ACTION_SEARCHABLES_CHANGED);
166 intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING
167 | Intent
[all...]
/frameworks/base/core/java/android/app/admin/
H A DDeviceAdminReceiver.java26 import android.content.Intent;
35 * {@link BroadcastReceiver#onReceive(Context, Intent) BroadcastReceiver.onReceive()}
69 * handle this in {@link DeviceAdminReceiver#onEnabled(Context, Intent)}. To be
83 * {@link #EXTRA_DISABLE_WARNING} in the result Intent. If not set,
103 * handle this in {@link DeviceAdminReceiver#onDisabled(Context, Intent)}. Note
269 * ComponentName, Intent)}
274 public void onEnabled(Context context, Intent intent) {
288 public CharSequence onDisableRequested(Context context, Intent intent) {
300 public void onDisabled(Context context, Intent intent) {
312 public void onPasswordChanged(Context context, Intent inten
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DPrintSpoolerProvider.java21 import android.content.Intent;
36 Intent intent = new Intent(mContext, PrintSpoolerService.class);
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
H A DReceiverService.java21 import android.content.Intent;
40 public IBinder onBind(Intent intent) {
45 public int onStartCommand(Intent intent, int flags, int startId) {
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
H A DMockableCheckVoiceData.java20 import android.content.Intent;
37 final Intent returnVal = new Intent();
/frameworks/ex/common/java/com/android/common/userhappiness/
H A DUserHappinessSignals.java19 import android.content.Intent;
52 Intent i = new Intent(LoggingEvents.ACTION_LOG_EVENT);
/frameworks/support/v4/java/android/support/v4/app/
H A DShareCompat.java21 import android.content.Intent;
41 * ShareCompat provides functionality to extend the {@link Intent#ACTION_SEND}/
42 * {@link Intent#ACTION_SEND_MULTIPLE} protocol and support retrieving more info
53 * within an {@link Intent#ACTION_SEND} or {@link Intent#ACTION_SEND_MULTIPLE} intent
61 * Intent extra that stores the name of the calling package for an ACTION_SEND intent.
72 * Intent extra that stores the {@link ComponentName} of the calling activity for
254 * IntentBuilder is a helper for constructing {@link Intent#ACTION_SEND} and
255 * {@link Intent#ACTION_SEND_MULTIPLE} sharing intents and starting activities
261 private Intent mInten
[all...]
/frameworks/base/core/java/android/speech/
H A DRecognizerIntent.java26 import android.content.Intent;
32 * Constants for supporting speech recognition through starting an {@link Intent}
52 * {@link Activity#startActivityForResult(Intent, int)}), or forwarded via a PendingIntent
55 * <p>Starting this intent with just {@link Activity#startActivity(Intent)} is not supported.
56 * You must either use {@link Activity#startActivityForResult(Intent, int)}, or provide a
312 * {@link Context#sendOrderedBroadcast(Intent, String, BroadcastReceiver, android.os.Handler, int, String, Bundle)}
330 public static final Intent getVoiceDetailsIntent(Context context) {
331 Intent voiceSearchIntent = new Intent(ACTION_WEB_SEARCH);
339 Intent detailsInten
[all...]
/frameworks/base/core/java/com/android/internal/backup/
H A DIBackupTransport.aidl21 import android.content.Intent;
34 * Ask the transport for an Intent that can be used to launch any internal
42 * @return An Intent that can be passed to Context.startActivity() in order to
46 Intent configurationIntent();
60 * Ask the transport for an Intent that can be used to launch a more detailed
79 Intent dataManagementIntent();
/frameworks/base/location/java/android/location/
H A DSettingInjectorService.java20 import android.content.Intent;
87 * Intent action that must be declared in the manifest for the subclass. Used to start the
104 * Intent action a client should broadcast when the value of one of its injected settings has
136 public final IBinder onBind(Intent intent) {
141 public final void onStart(Intent intent, int startId) {
146 public final int onStartCommand(Intent intent, int flags, int startId) {
152 private void onHandleIntent(Intent intent) {
171 private void sendStatus(Intent intent, boolean enabled) {

Completed in 663 milliseconds

1234567891011>>