Searched refs:intent (Results 276 - 300 of 649) sorted by relevance

<<11121314151617181920>>

/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
H A DRecentTasksLoader.java164 Intent intent = new Intent(baseIntent);
166 intent.setComponent(origActivity);
170 intent.setFlags((intent.getFlags()&~Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED)
174 resolveInfo = ipm.resolveIntent(intent, null, 0, userId);
389 Intent intent = new Intent(recentInfo.baseIntent);
391 intent.setComponent(recentInfo.origActivity);
395 if (isCurrentHomeActivity(intent.getComponent(), null)) {
400 if (intent.getComponent().getPackageName().equals(mContext.getPackageName())) {
473 Intent intent
[all...]
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
H A DDownloadManagerBaseTest.java89 public void onReceive(Context context, Intent intent) { argument
90 if (intent.getAction().equalsIgnoreCase(ConnectivityManager.CONNECTIVITY_ACTION)) {
91 Log.i(LOG_TAG, "ConnectivityManager state change: " + intent.getAction());
139 public void onReceive(Context context, Intent intent) { argument
140 if (DownloadManager.ACTION_DOWNLOAD_COMPLETE.equals(intent.getAction())) {
141 long id = intent.getExtras().getLong(DownloadManager.EXTRA_DOWNLOAD_ID);
320 * Helper to enables or disables airplane mode. If successful, it also broadcasts an intent
345 // Post the intent
346 Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
347 intent
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothA2dpSink.java49 * <p>This intent will have 3 extras:
70 * <p>This intent will have 3 extras:
89 * {@link #ACTION_PLAYING_STATE_CHANGED} intent.
96 * {@link #ACTION_PLAYING_STATE_CHANGED} intent.
104 * <p>This intent will have 3 extras:
117 * Extra for the {@link #ACTION_AUDIO_CONFIG_CHANGED} intent.
180 Intent intent = new Intent(IBluetoothA2dpSink.class.getName());
181 ComponentName comp = intent.resolveSystemService(mContext.getPackageManager(), 0);
182 intent.setComponent(comp);
183 if (comp == null || !mContext.bindServiceAsUser(intent, mConnectio
[all...]
H A DBluetoothAvrcpController.java49 * <p>This intent will have 3 extras:
122 Intent intent = new Intent(IBluetoothAvrcpController.class.getName());
123 ComponentName comp = intent.resolveSystemService(mContext.getPackageManager(), 0);
124 intent.setComponent(comp);
125 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
127 Log.e(TAG, "Could not bind to Bluetooth AVRCP Controller Service with " + intent);
H A DBluetoothPan.java52 * <p>This intent will have 4 extras:
75 * Extra for {@link #ACTION_CONNECTION_STATE_CHANGED} intent
145 Intent intent = new Intent(IBluetoothPan.class.getName());
146 ComponentName comp = intent.resolveSystemService(mContext.getPackageManager(), 0);
147 intent.setComponent(comp);
148 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
150 Log.e(TAG, "Could not bind to Bluetooth Pan Service with " + intent);
214 * connection state intent for the profile will be broadcasted with
216 * from this intent.
247 * intent wil
[all...]
H A DBluetoothPbap.java58 "android.bluetooth.pbap.intent.PBAP_STATE";
61 "android.bluetooth.pbap.intent.PBAP_PREVIOUS_STATE";
64 * This intent will always contain PBAP_STATE, PBAP_PREVIOUS_STATE and
68 "android.bluetooth.pbap.intent.action.PBAP_STATE_CHANGED";
160 Intent intent = new Intent(IBluetoothPbap.class.getName());
161 ComponentName comp = intent.resolveSystemService(mContext.getPackageManager(), 0);
162 intent.setComponent(comp);
163 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
165 Log.e(TAG, "Could not bind to Bluetooth Pbap Service with " + intent);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DUserInfoController.java78 public void onReceive(Context context, Intent intent) {
79 final String action = intent.getAction();
92 public void onReceive(Context context, Intent intent) {
93 final String action = intent.getAction();
99 intent.getIntExtra(Intent.EXTRA_USER_HANDLE, getSendingUserId());
H A DClock.java121 public void onReceive(Context context, Intent intent) {
122 String action = intent.getAction();
124 String tz = intent.getStringExtra("time-zone");
/frameworks/base/services/core/java/com/android/server/
H A DNetworkTimeUpdateService.java137 public void onReceive(Context context, Intent intent) {
234 public void onReceive(Context context, Intent intent) {
235 String action = intent.getAction();
248 public void onReceive(Context context, Intent intent) {
249 String action = intent.getAction();
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiTrafficPoller.java84 public void onReceive(Context context, Intent intent) {
85 if (intent.getAction().equals(
87 mNetworkInfo = (NetworkInfo) intent.getParcelableExtra(
89 } else if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) {
91 } else if (intent.getAction().equals(Intent.ACTION_SCREEN_ON)) {
/frameworks/base/services/core/java/com/android/server/am/
H A DTaskRecord.java58 private static final String TAG_INTENT = "intent";
94 Intent intent; // The original intent that started the task. field in class:TaskRecord
97 ComponentName origActivity; // The non-alias activity component of the intent.
103 boolean rootWasReset; // True if the intent at the root of the task had
143 /** If original intent did not allow relinquishing task identity, save that information */
227 intent = _intent;
269 /** Sets the original intent, and the calling uid and package. */
271 setIntent(r.intent, r.info);
276 /** Sets the original intent, _without
[all...]
H A DBroadcastRecord.java37 * An active intent broadcast.
40 final Intent intent; // the original intent that generated us field in class:BroadcastRecord
41 final ComponentName targetComp; // original component name set on the intent
89 pw.print(prefix); pw.println(intent.toInsecureString());
90 if (targetComp != null && targetComp != intent.getComponent()) {
93 Bundle bundle = intent.getExtras();
183 intent = _intent;
208 + " u" + userId + " " + intent.getAction() + "}";
/frameworks/base/core/java/android/net/
H A DNetworkScorerAppManager.java115 Intent intent = new Intent(NetworkScoreManager.ACTION_CUSTOM_ENABLE);
116 intent.setPackage(receiverInfo.packageName);
117 List<ResolveInfo> configActivities = pm.queryIntentActivities(intent, 0 /* flags */);
/frameworks/base/core/java/android/service/voice/
H A DVoiceInteractionSession.java149 public void taskStarted(Intent intent, int taskId) {
151 taskId, intent));
155 public void taskFinished(Intent intent, int taskId) {
157 taskId, intent));
328 if (DEBUG) Log.d(TAG, "onTaskStarted: intent=" + msg.obj
333 if (DEBUG) Log.d(TAG, "onTaskFinished: intent=" + msg.obj
556 * @param intent The Intent to start this voice interaction. The given Intent will
561 public void startVoiceActivity(Intent intent) { argument
566 intent.migrateExtraStreamToClipData();
567 intent
730 onTaskStarted(Intent intent, int taskId) argument
746 onTaskFinished(Intent intent, int taskId) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaScannerConnection.java115 Intent intent = new Intent(IMediaScannerService.class.getName());
116 intent.setComponent(
119 mContext.bindService(intent, this, Context.BIND_AUTO_CREATE);
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DCameraBrowser.java118 Intent intent = new Intent(this, StorageBrowser.class);
119 intent.putExtra("device", mDeviceList.get(position).getDeviceName());
120 startActivity(intent);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DMediaFrameworkTest.java124 Intent intent = new Intent(Intent.ACTION_VIEW);
125 intent.setDataAndType(path, mimetype);
126 startActivity(intent);
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
H A DMediaProjectionPermissionActivity.java145 Intent intent = new Intent();
146 intent.putExtra(MediaProjectionManager.EXTRA_MEDIA_PROJECTION, projection.asBinder());
147 return intent;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
H A DTask.java76 public TaskKey(int id, Intent intent, int userId, long firstActiveTime, long lastActiveTime) { argument
77 mComponentNameKey = new ComponentNameKey(intent.getComponent(), userId);
79 this.baseIntent = intent;
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
H A DAppWidgetServiceImpl.java133 public void onReceive(Context context, Intent intent) {
134 String action = intent.getAction();
143 onUserStarted(intent.getIntExtra(Intent.EXTRA_USER_HANDLE,
146 onUserStopped(intent.getIntExtra(Intent.EXTRA_USER_HANDLE,
149 onPackageBroadcastReceived(intent, intent.getIntExtra(
316 private void onPackageBroadcastReceived(Intent intent, int userId) { argument
317 final String action = intent.getAction();
324 pkgList = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST);
327 pkgList = intent
888 bindRemoteViewsService(String callingPackage, int appWidgetId, Intent intent, IBinder callbacks) argument
965 unbindRemoteViewsService(String callingPackage, int appWidgetId, Intent intent) argument
1469 destroyRemoteViewsService(final Intent intent, Widget widget) argument
2208 queryIntentReceivers(Intent intent, int userId) argument
2889 sendBroadcastAsUser(Intent intent, UserHandle userHandle) argument
2898 bindService(Intent intent, ServiceConnection connection, UserHandle userHandle) argument
[all...]
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
H A DBatteryWaster.java165 public void onReceive(Context context, Intent intent) {
166 String action = intent.getAction();
173 int level = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);
/frameworks/base/tests/ImfTest/tests/src/com/android/imftest/samples/
H A DImfBaseTestCase.java61 Intent intent = new Intent(Intent.ACTION_MAIN);
62 intent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
63 mTargetActivity = launchActivityWithIntent(packageName, mTargetActivityClass, intent);
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
H A DRegisteredMediaRouteProviderWatcher.java96 Intent intent = new Intent(MediaRouteProviderService.SERVICE_INTERFACE);
97 for (ResolveInfo resolveInfo : mPackageManager.queryIntentServices(intent, 0)) {
141 public void onReceive(Context context, Intent intent) {
/frameworks/base/core/java/android/app/
H A DIApplicationThread.java61 void scheduleLaunchActivity(Intent intent, IBinder token, int ident, argument
70 void scheduleNewIntent(List<ReferrerIntent> intent, IBinder token) throws RemoteException; argument
73 void scheduleReceiver(Intent intent, ActivityInfo info, CompatibilityInfo compatInfo, argument
87 Intent intent, boolean rebind, int processState) throws RemoteException;
89 Intent intent) throws RemoteException;
114 void scheduleRegisteredReceiver(IIntentReceiver receiver, Intent intent, argument
86 scheduleBindService(IBinder token, Intent intent, boolean rebind, int processState) argument
88 scheduleUnbindService(IBinder token, Intent intent) argument
/frameworks/base/core/java/android/content/pm/
H A DILauncherApps.aidl35 ResolveInfo resolveActivity(in Intent intent, in UserHandle user);

Completed in 896 milliseconds

<<11121314151617181920>>