Searched refs:Intent (Results 276 - 300 of 820) sorted by relevance

<<11121314151617181920>>

/frameworks/base/test-runner/src/android/test/
H A DActivityUnitTestCase.java23 import android.content.Intent;
46 * <li>{@link android.app.Activity#createPendingResult(int, Intent, int)}</li>
47 * <li>{@link android.app.Activity#startActivityIfNeeded(Intent, int)}</li>
48 * <li>{@link android.app.Activity#startActivityFromChild(Activity, Intent, int)}</li>
49 * <li>{@link android.app.Activity#startNextMatchingActivity(Intent)}</li>
52 * <li>{@link android.app.Activity#createPendingResult(int, Intent, int)}</li>
62 * <li>{@link android.app.Activity#startActivity(Intent)}</li>
63 * <li>{@link android.app.Activity#startActivityForResult(Intent, int)}</li>
118 * @param intent The Intent as if supplied to {@link android.content.Context#startActivity}.
126 protected T startActivity(Intent inten
[all...]
/frameworks/base/tests/ImfTest/tests/src/com/android/imftest/samples/
H A DImfBaseTestCase.java22 import android.content.Intent;
61 Intent intent = new Intent(Intent.ACTION_MAIN);
62 intent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
/frameworks/support/v4/jellybean-mr2/android/support/v4/media/
H A DTransportMediatorJellybeanMR2.java22 import android.content.Intent;
40 final Intent mIntent;
62 public void onReceive(Context context, Intent intent) {
64 KeyEvent event = (KeyEvent)intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT);
92 mIntent = new Intent(mReceiverAction);
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
H A DPowerUI.java22 import android.content.Intent;
135 // Register for Intent broadcasts for...
137 filter.addAction(Intent.ACTION_BATTERY_CHANGED);
138 filter.addAction(Intent.ACTION_SCREEN_OFF);
139 filter.addAction(Intent.ACTION_SCREEN_ON);
140 filter.addAction(Intent.ACTION_USER_SWITCHED);
152 public void onReceive(Context context, Intent intent) {
154 if (action.equals(Intent.ACTION_BATTERY_CHANGED)) {
207 } else if (Intent.ACTION_SCREEN_OFF.equals(action)) {
209 } else if (Intent
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DNetworkScoreService.java23 import android.content.Intent;
78 public void onReceive(Context context, Intent intent) {
80 if ((Intent.ACTION_PACKAGE_CHANGED.equals(action) ||
81 Intent.ACTION_PACKAGE_REPLACED.equals(action) ||
82 Intent.ACTION_PACKAGE_FULLY_REMOVED.equals(action)) &&
129 filter.addAction(Intent.ACTION_PACKAGE_CHANGED);
130 filter.addAction(Intent.ACTION_PACKAGE_REPLACED);
131 filter.addAction(Intent.ACTION_PACKAGE_FULLY_REMOVED);
240 Intent intent = new Intent(NetworkScoreManage
[all...]
/frameworks/base/test-runner/src/android/test/mock/
H A DMockPackageManager.java21 import android.content.Intent;
80 public Intent getLaunchIntentForPackage(String packageName) {
85 public Intent getLeanbackLaunchIntentForPackage(String packageName) {
238 public ResolveInfo resolveActivity(Intent intent, int flags) {
244 public ResolveInfo resolveActivityAsUser(Intent intent, int flags, int userId) {
249 public List<ResolveInfo> queryIntentActivities(Intent intent, int flags) {
255 public List<ResolveInfo> queryIntentActivitiesAsUser(Intent intent,
262 Intent[] specifics, Intent intent, int flags) {
267 public List<ResolveInfo> queryBroadcastReceivers(Intent inten
[all...]
/frameworks/base/location/java/com/android/internal/location/
H A DGpsNetInitiatedHandler.java26 import android.content.Intent;
59 // string constants for defining data fields in NI Intent
147 @Override public void onReceive(Context context, Intent intent) {
149 if (action.equals(Intent.ACTION_NEW_OUTGOING_CALL)) {
150 String phoneNumber = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
208 intentFilter.addAction(Intent.ACTION_NEW_OUTGOING_CALL);
387 Intent intent = !mPopupImmediately ? getDlgIntent(notif) : new Intent();
400 Intent intent = getDlgIntent(notif);
411 private Intent getDlgInten
[all...]
/frameworks/base/services/core/java/com/android/server/power/
H A DNotifier.java30 import android.content.Intent;
93 private final Intent mScreenOnIntent;
94 private final Intent mScreenOffIntent;
125 mScreenOnIntent = new Intent(Intent.ACTION_SCREEN_ON);
127 Intent.FLAG_RECEIVER_REGISTERED_ONLY | Intent.FLAG_RECEIVER_FOREGROUND);
128 mScreenOffIntent = new Intent(Intent.ACTION_SCREEN_OFF);
130 Intent
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkStatsServiceTest.java19 import static android.content.Intent.ACTION_UID_REMOVED;
20 import static android.content.Intent.EXTRA_UID;
53 import android.content.Intent;
194 mServiceContext.sendBroadcast(new Intent(CONNECTIVITY_ACTION_IMMEDIATE));
210 mServiceContext.sendBroadcast(new Intent(ACTION_NETWORK_STATS_POLL));
227 mServiceContext.sendBroadcast(new Intent(ACTION_NETWORK_STATS_POLL));
248 mServiceContext.sendBroadcast(new Intent(CONNECTIVITY_ACTION_IMMEDIATE));
274 mServiceContext.sendBroadcast(new Intent(ACTION_NETWORK_STATS_POLL));
289 mServiceContext.sendBroadcast(new Intent(Intent
[all...]
/frameworks/base/core/java/android/content/pm/
H A DRegisteredServicesCache.java22 import android.content.Intent;
131 intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED);
132 intentFilter.addAction(Intent.ACTION_PACKAGE_CHANGED);
133 intentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED);
139 sdFilter.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE);
140 sdFilter.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE);
144 private final void handlePackageEvent(Intent intent, int userId) {
150 final boolean isRemoval = Intent.ACTION_PACKAGE_REMOVED.equals(action)
151 || Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE.equals(action);
153 final boolean replacing = intent.getBooleanExtra(Intent
[all...]
/frameworks/base/core/java/android/speech/
H A DRecognitionService.java22 import android.content.Intent;
40 * The {@link Intent} that must be declared as handled by the service.
63 * {@link RecognitionService#onStartListening(Intent, Callback)} method
96 private void dispatchStartListening(Intent intent, final IRecognitionListener listener) {
155 public final Intent mIntent;
159 public StartListeningArgs(Intent intent, IRecognitionListener listener) {
194 protected abstract void onStartListening(Intent recognizerIntent, Callback listener);
209 public final IBinder onBind(final Intent intent) {
225 * {@link RecognitionService#onStartListening(Intent, Callback)} method. Recognizers may call
275 * one or multiple times for each call to {@link SpeechRecognizer#startListening(Intent)},
[all...]
/frameworks/base/core/java/android/widget/
H A DDateTimeView.java20 import android.content.Intent;
223 public void onReceive(Context context, Intent intent) {
225 if (Intent.ACTION_TIME_TICK.equals(action)) {
281 filter.addAction(Intent.ACTION_TIME_TICK);
282 filter.addAction(Intent.ACTION_TIME_CHANGED);
283 filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED);
284 filter.addAction(Intent.ACTION_TIMEZONE_CHANGED);
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DEffectsTest.java21 import android.content.Intent;
55 startActivity(new Intent(EffectsTest.this, EnvReverbTest.class));
62 startActivity(new Intent(EffectsTest.this, PresetReverbTest.class));
69 startActivity(new Intent(EffectsTest.this, EqualizerTest.class));
76 startActivity(new Intent(EffectsTest.this, VirtualizerTest.class));
83 startActivity(new Intent(EffectsTest.this, BassBoostTest.class));
90 startActivity(new Intent(EffectsTest.this, VisualizerTest.class));
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
H A DCaptivePortalLoginActivity.java22 import android.content.Intent;
62 // Intent broadcast to ConnectivityService indicating sign-in is complete.
66 // RESPONSE_TOKEN = data fragment from launching Intent
151 Intent.class);
152 Intent intent = new Intent(Proxy.PROXY_CHANGE_ACTION);
167 Intent intent = new Intent(ACTION_CAPTIVE_PORTAL_LOGGED_IN);
168 intent.putExtra(Intent.EXTRA_TEXT, String.valueOf(mNetId));
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DNetworkControllerWifiTest.java3 import android.content.Intent;
107 Intent i = new Intent(WifiManager.RSSI_CHANGED_ACTION);
113 Intent i = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION);
120 Intent i = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION);
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
H A DSearchablesTest.java24 import android.content.Intent;
272 public void sendBroadcast(Intent intent) {
328 public List<ResolveInfo> queryIntentActivities(Intent intent, int flags) {
330 assertTrue(intent.getAction().equals(Intent.ACTION_SEARCH)
331 || intent.getAction().equals(Intent.ACTION_WEB_SEARCH)
344 public ResolveInfo resolveActivity(Intent intent, int flags) {
346 assertTrue(intent.getAction().equals(Intent.ACTION_WEB_SEARCH)
/frameworks/base/core/java/android/app/
H A DSearchManager.java24 import android.content.Intent;
46 * and the {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH}
47 * {@link android.content.Intent Intent}.
82 * Intent extra data key: Use this key with
83 * {@link android.content.Intent#getStringExtra
84 * content.Intent.getStringExtra()}
85 * to obtain the query string from Intent.ACTION_SEARCH.
90 * Intent extra data key: Use this key with
91 * {@link android.content.Intent#getStringExtr
[all...]
/frameworks/opt/net/voip/src/java/android/net/sip/
H A DSipManager.java21 import android.content.Intent;
211 * {@link PendingIntent#send(Context, int, Intent)} to send back the
390 public SipAudioCall takeAudioCall(Intent incomingCallIntent,
428 public static boolean isIncomingCallIntent(Intent intent) {
441 public static String getCallId(Intent incomingCallIntent) {
453 public static String getOfferSessionDescription(Intent incomingCallIntent) {
465 public static Intent createIncomingCallBroadcast(String callId,
467 Intent intent = new Intent();
536 public SipSession getSessionFor(Intent incomingCallInten
[all...]
/frameworks/base/core/java/android/hardware/location/
H A DGeofenceHardwareService.java22 import android.content.Intent;
44 public IBinder onBind(Intent intent) {
49 public boolean onUnbind(Intent intent) {
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DStorageBrowser.java21 import android.content.Intent;
115 Intent intent = new Intent(this, ObjectBrowser.class);
/frameworks/base/services/core/java/com/android/server/am/
H A DIntentBindRecord.java20 import android.content.Intent;
28 * A particular Intent that has been bound to a Service.
34 final Intent.FilterComparison intent; //
35 /** All apps that have bound to this Intent. */
74 IntentBindRecord(ServiceRecord _service, Intent.FilterComparison _intent) {
/frameworks/base/services/core/java/com/android/server/clipboard/
H A DClipboardService.java30 import android.content.Intent;
113 userFilter.addAction(Intent.ACTION_USER_REMOVED);
116 public void onReceive(Context context, Intent intent) {
118 if (Intent.ACTION_USER_REMOVED.equals(action)) {
119 removeClipboard(intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0));
316 Intent.FLAG_GRANT_READ_URI_PERMISSION,
328 Intent intent = item.getIntent();
347 uri, Intent.FLAG_GRANT_READ_URI_PERMISSION, sourceUserId, userId);
358 Intent intent = item.getIntent();
399 Intent
[all...]
/frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/
H A DFixVibrateSetting.java23 import android.content.Intent;
114 Intent intent = new Intent(this, FixVibrateSetting.class);
/frameworks/base/tests/utils/SleepUtils/SleepHelper/src/com/android/testing/sleephelper/
H A DSetAlarm.java23 import android.content.Intent;
47 private Intent mServceIntent = new Intent(SERVICE_ACTION).setPackage(SERVICE_PKG);
/frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/
H A DWakeUpCall.java23 import android.content.Intent;
45 public void onReceive(Context context, Intent intent) {
90 private void stopService(Intent i) {

Completed in 711 milliseconds

<<11121314151617181920>>