/development/samples/ShortcutDemo/publisher/src/com/example/android/pm/shortcutdemo/ |
ShortcutPublishingService.java | 20 import android.content.Intent; 43 protected void onHandleIntent(Intent intent) { 44 if (intent.getAction().endsWith(".ADD")) {
|
/development/samples/browseable/DirectShare/src/com.example.android.directshare/ |
SendMessageActivity.java | 20 import android.content.Intent; 59 // Resolve the share Intent. 77 protected void onActivityResult(int requestCode, int resultCode, Intent data) { 96 * Resolves the passed {@link Intent}. This method can only resolve intents for sharing a plain 99 * @param intent The {@link Intent}. 100 * @return True if the {@code intent} is resolved properly. 102 private boolean resolveIntent(Intent intent) { 103 if (Intent.ACTION_SEND.equals(intent.getAction()) & 127 Intent intent = new Intent(this, SelectContactActivity.class); local [all...] |
/development/samples/browseable/DocumentCentricRelinquishIdentity/src/com.example.android.documentcentricrelinquishidentity/ |
RelinquishIdentityActivity.java | 20 import android.content.Intent; 26 * above it in the task stack. These identifiers include the task base Intent, and the task name, 27 * color and icon used in the recent task list. The base @link{Intent} is used to match the task when 28 * relaunching based on an incoming Intent. 44 final Intent intent = newDocumentIntent(); local 45 startActivity(intent); 49 * Returns an new intent to start {@link NewDocumentActivity} 52 private Intent newDocumentIntent() { 53 final Intent newDocumentIntent = new Intent(this, NewDocumentActivity.class) [all...] |
/development/samples/browseable/MessagingService/src/com.example.android.messagingservice/ |
MessageReadReceiver.java | 21 import android.content.Intent; 31 public void onReceive(Context context, Intent intent) { 33 int conversationId = intent.getIntExtra(CONVERSATION_ID, -1);
|
/development/samples/browseable/MultiWindowPlayground/src/com/android.multiwindowplayground/ |
MainActivity.java | 28 import android.content.Intent; 59 Intent intent = new Intent(this, UnresizableActivity.class); local 60 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 61 startActivity(intent); 67 startActivity(new Intent(this, MinimumSizeActivity.class)); 77 * previous activity that started the Intent. That's why the Intent.FLAG_ACTIVITY_NEW_TAS 80 Intent intent = new Intent(this, AdjacentActivity.class); local 96 Intent intent = new Intent(this, LaunchBoundsActivity.class); local [all...] |
/frameworks/base/core/java/android/content/ |
IIntentReceiver.aidl | 19 import android.content.Intent; 23 * System private API for dispatching intent broadcasts. This is given to the 24 * activity manager as part of registering for an intent broadcasts, and is 30 void performReceive(in Intent intent, int resultCode, String data,
|
/frameworks/base/core/java/android/content/pm/ |
IPackageInstallObserver2.aidl | 19 import android.content.Intent; 28 void onUserActionRequired(in Intent intent);
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
LocalDeniedReceiver.java | 21 import android.content.Intent; 30 public void onReceive(Context context, Intent intent) { 32 IBinder caller = intent.getIBinderExtra("caller");
|
LocalGrantedReceiver.java | 21 import android.content.Intent; 30 public void onReceive(Context context, Intent intent) { 32 IBinder caller = intent.getIBinderExtra("caller");
|
RemoteDeniedReceiver.java | 21 import android.content.Intent; 30 public void onReceive(Context context, Intent intent) { 32 IBinder caller = intent.getIBinderExtra("caller");
|
RemoteGrantedReceiver.java | 21 import android.content.Intent; 30 public void onReceive(Context context, Intent intent) { 32 IBinder caller = intent.getIBinderExtra("caller");
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
MtpDocumentsService.java | 24 import android.content.Intent; 46 public IBinder onBind(Intent intent) { 58 public int onStartCommand(Intent intent, int flags, int startId) { 59 // If intent is null, the service was restarted. 60 if (intent == null || ACTION_UPDATE_NOTIFICATION.equals(intent.getAction())) { 61 final int[] ids = intent.hasExtra(EXTRA_DEVICE_IDS) ? 62 intent.getExtras().getIntArray(EXTRA_DEVICE_IDS) : null [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
BluetoothEventManager.java | 28 import android.content.Intent; 63 void onReceive(Context context, Intent intent, BluetoothDevice device); 113 addHandler(Intent.ACTION_DOCK_EVENT, new DockEventHandler()); 161 public void onReceive(Context context, Intent intent) { 162 String action = intent.getAction(); 163 BluetoothDevice device = intent 168 handler.onReceive(context, intent, device); 175 public void onReceive(Context context, Intent intent) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
IntentTile.java | 22 import android.content.Intent; 45 public static final String PREFIX = "intent("; 54 private Intent mLastIntent; 69 throw new IllegalArgumentException("Bad intent tile spec: " + spec); 73 throw new IllegalArgumentException("Empty intent tile spec action"); 99 public Intent getLongClickIntent() { 117 final Intent intent = Intent.parseUri(uri, Intent.URI_INTENT_SCHEME) local 132 Intent intent = (Intent) arg; local [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
BlockingQueueIntentReceiver.java | 19 import android.content.Intent; 27 private final BlockingQueue<Intent> mQueue = new ArrayBlockingQueue<Intent>(1); 30 public void onReceive(Context context, Intent intent) { 31 mQueue.add(intent); 34 public Intent waitForIntent() throws InterruptedException {
|
/frameworks/base/tests/ActivityManagerPerfTests/test-app/src/com/android/frameworks/perftests/amteststestapp/ |
StartProcessService.java | 20 import android.content.Intent; 34 public IBinder onBind(Intent intent) { 36 Utils.sendLooperIdle(intent);
|
TestBroadcastReceiver.java | 21 import android.content.Intent; 29 public void onReceive(Context context, Intent intent) { 30 Utils.sendTime(intent, Constants.TYPE_BROADCAST_RECEIVE);
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
TrackTimeReceiver.java | 22 import android.content.Intent; 28 public void onReceive(Context context, Intent intent) { 29 Bundle data = intent.getExtras();
|
UserTarget.java | 21 import android.content.Intent; 29 public void onReceive(Context context, Intent intent) { 30 Log.i("ActivityTest", "Received: " + intent);
|
/frameworks/ex/common/java/com/android/common/ |
NetworkConnectivityListener.java | 21 import android.content.Intent; 65 public void onReceive(Context context, Intent intent) { 66 String action = intent.getAction(); 70 Log.w(TAG, "onReceived() called with " + mState.toString() + " and " + intent); 75 intent.getBooleanExtra(ConnectivityManager.EXTRA_NO_CONNECTIVITY, false); 84 intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO); 86 intent.getParcelableExtra(ConnectivityManager.EXTRA_OTHER_NETWORK_INFO); 88 mReason = intent.getStringExtra(ConnectivityManager.EXTRA_REASON); 90 intent.getBooleanExtra(ConnectivityManager.EXTRA_IS_FAILOVER, false) [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
TimeServiceHelper.java | 22 import android.content.Intent; 155 Intent intent = new Intent(TelephonyIntents.ACTION_NETWORK_SET_TIME); local 156 intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); 157 intent.putExtra("time", time); 158 mContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL); 188 Intent intent = new Intent(TelephonyIntents.ACTION_NETWORK_SET_TIMEZONE) local [all...] |
/frameworks/support/browser/src/main/java/androidx/browser/customtabs/ |
TrustedWebUtils.java | 76 customTabsIntent.intent.getExtras(), CustomTabsIntent.EXTRA_SESSION) == null) { 80 customTabsIntent.intent.putExtra(EXTRA_LAUNCH_AS_TRUSTED_WEB_ACTIVITY, true);
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/ |
BrowseFragmentTest.java | 31 import android.content.Intent; 117 Intent intent = new Intent(); local 118 intent.putExtra(BrowseFragmentTestActivity.EXTRA_ADD_TO_BACKSTACK , true); 119 intent.putExtra(BrowseFragmentTestActivity.EXTRA_LOAD_DATA_DELAY , 0L); 120 mActivity = activityTestRule.launchActivity(intent); 140 Intent intent = new Intent(); local 156 Intent intent = new Intent(); local 172 Intent intent = new Intent(); local 211 Intent intent = new Intent(); local 247 Intent intent = new Intent(); local 286 Intent intent = new Intent(); local 307 Intent intent = new Intent(); local [all...] |
BrowseSupportFragmentTest.java | 27 import android.content.Intent; 114 Intent intent = new Intent(); local 115 intent.putExtra(BrowseFragmentTestActivity.EXTRA_ADD_TO_BACKSTACK , true); 116 intent.putExtra(BrowseFragmentTestActivity.EXTRA_LOAD_DATA_DELAY , 0L); 117 mActivity = activityTestRule.launchActivity(intent); 137 Intent intent = new Intent(); local 153 Intent intent = new Intent(); local 169 Intent intent = new Intent(); local 208 Intent intent = new Intent(); local 244 Intent intent = new Intent(); local 283 Intent intent = new Intent(); local 304 Intent intent = new Intent(); local [all...] |
SingleFragmentTestBase.java | 21 import android.content.Intent; 50 * Options that will be passed throught Intent to SingleFragmentTestActivity 75 public void collect(Intent intent) { 77 intent.putExtra(SingleFragmentTestActivity.EXTRA_ACTIVITY_LAYOUT, 81 intent.putExtra(SingleFragmentTestActivity.EXTRA_UI_VISIBILITY, mUiVisibility); 84 intent.putExtra(SingleFragmentTestActivity.EXTRA_OVERRIDDEN_SAVED_INSTANCE_STATE, 101 Intent intent = new Intent(); local [all...] |