/development/samples/ApiDemos/src/com/example/android/apis/content/ |
PickContact.java | 26 import android.content.Intent; 59 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local 60 intent.setType(mMimeType); 62 startActivityForResult(intent, 1); 88 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/ |
WordActivity.java | 23 import android.content.Intent; 89 Intent intent = new Intent(this, SearchableDictionary.class); local 90 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); 91 startActivity(intent);
|
/development/samples/browseable/ActivitySceneTransitionBasic/src/com.example.android.activityscenetransitionbasic/ |
MainActivity.java | 22 import android.content.Intent; 65 // Construct an Intent as normal 66 Intent intent = new Intent(this, DetailActivity.class); local 67 intent.putExtra(DetailActivity.EXTRA_PARAM_ID, item.getId()); 86 ActivityCompat.startActivity(this, intent, activityOptions.toBundle());
|
/frameworks/base/core/java/android/app/ |
RemoteAction.java | 55 @NonNull CharSequence contentDescription, @NonNull PendingIntent intent) { 56 if (icon == null || title == null || contentDescription == null || intent == null) { 63 mActionIntent = intent; 103 * Return the action intent.
|
/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/ |
CarrierDefaultReceiverTest.java | 21 import android.content.Intent; 91 Intent intent = new Intent(TelephonyIntents.ACTION_CARRIER_SIGNAL_REDIRECTED); local 92 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId); 93 Rlog.d(TAG, "OnReceive redirection intent"); 94 mReceiver.onReceive(mContext, intent);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
CurrentUserTracker.java | 22 import android.content.Intent; 82 public void onReceive(Context context, Intent intent) { 83 if (Intent.ACTION_USER_SWITCHED.equals(intent.getAction())) { 84 notifyUserSwitched(intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0)); 98 IntentFilter filter = new IntentFilter(Intent.ACTION_USER_SWITCHED);
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
ActivityTransition.java | 20 import android.content.Intent; 121 Intent intent = new Intent(this, ActivityTransitionDetails.class); local 122 intent.putExtra(KEY_ID, v.getTransitionName()); 125 startActivity(intent, activityOptions.toBundle());
|
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
SimChangeListenerTest.java | 28 import android.content.Intent; 91 final Intent intent = new Intent(ACTION_SIM_STATE_CHANGED); local 92 intent.putExtra(INTENT_KEY_ICC_STATE, state); 93 mServiceContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL);
|
/frameworks/support/compat/java/android/support/v4/app/ |
JobIntentService.java | 27 import android.content.Intent; 51 * <p>Use {@link #enqueueWork(Context, Class, int, Intent)} to enqueue new work to be 53 * {@link #onHandleWork(Intent)}.</p> 131 abstract void enqueueWork(Intent work); 177 void enqueueWork(Intent work) { 178 Intent intent = new Intent(work); local 179 intent.setComponent(mComponentName); 181 if (mContext.startService(intent) != null) [all...] |
/frameworks/support/lifecycle/extensions/src/androidTest/java/android/arch/lifecycle/activity/ |
FragmentLifecycleActivity.java | 26 import android.content.Intent; 91 public static Intent intentFor(Context context, boolean nested) { 92 Intent intent = new Intent(context, FragmentLifecycleActivity.class); local 93 intent.putExtra(EXTRA_NESTED, nested); 94 return intent;
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/ |
TestActivity.java | 19 import android.content.Intent; 78 Intent intent = new Intent(); local 79 intent.putExtra(TestActivity.EXTRA_PROVIDER, mProviderName); 80 return launchActivity(intent);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppBtEnablingActivity.java | 40 import android.content.Intent; 137 public void onReceive(Context context, Intent intent) { 138 String action = intent.getAction(); 139 if (V) Log.v(TAG, "Received intent: " + action) ; 141 switch (intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR)) {
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
QuickResponseActivity.java | 21 import android.content.Intent; 52 Intent intent = getIntent(); local 53 if (intent == null) { 58 mEventId = intent.getLongExtra(EXTRA_EVENT_ID, -1); 106 Intent emailIntent = AlertReceiver.createEmailIntent(QuickResponseActivity.this,
|
/packages/apps/Car/Messenger/src/com/android/car/messenger/ |
PlayMessageActivity.java | 26 import android.content.Intent; 131 Intent intent = new Intent(getBaseContext(), MessengerService.class) local 137 startService(intent); 213 Intent intent = new Intent(this, MessengerService.class); local 214 bindService(intent, mConnection, Context.BIND_AUTO_CREATE); 220 protected void onNewIntent(Intent intent) 254 Intent intent = new Intent(getBaseContext(), MessengerService.class) local 261 Intent intent = new Intent(getBaseContext(), MessengerService.class) local [all...] |
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/ |
CellBroadcastAlertDialogTest.java | 21 import android.content.Intent; 63 protected Intent createActivityIntent() { 68 Intent intent = new Intent(getInstrumentation().getTargetContext(), local 70 intent.putParcelableArrayListExtra(CellBroadcastMessage.SMS_CB_MESSAGE_EXTRA, 72 return intent;
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
PhoneNumberTestService.java | 20 import android.content.Intent; 58 protected void onHandleIntent(Intent intent) { 59 final String number = intent.getStringExtra(EXTRA_PHONE_NUMBER); 60 final String country = intent.getStringExtra(EXTRA_COUNTRY_CODE);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmSelectionActivity.java | 20 import android.content.Intent; 72 final Intent intent = getIntent(); local 73 final Parcelable[] alarmsFromIntent = intent.getParcelableArrayExtra(EXTRA_ALARMS); 74 mAction = intent.getIntExtra(EXTRA_ACTION, ACTION_INVALID); 76 // reading alarms from intent
|
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/ |
FilesJankPerfTest.java | 28 import android.content.Intent; 58 final Intent intent = new Intent(context, FilesActivity.class); local 59 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 60 mActivity = getInstrumentation().startActivitySync(intent);
|
/packages/apps/Messaging/src/com/android/messaging/receiver/ |
SmsReceiver.java | 25 import android.content.Intent; 81 // When we're running as the secondary user, we don't get the new SMS_DELIVER intent, 83 // listen for the SMS_RECEIVED intent. For the secondary user, use this SmsReceiver 162 LogUtil.v(TAG, "Enabling respond via message intent"); 169 LogUtil.v(TAG, "Disabling respond via message intent"); 180 public static void deliverSmsIntent(final Context context, final Intent intent) { 181 final android.telephony.SmsMessage[] messages = getMessagesFromIntent(intent); 189 final int errorCode = intent.getIntExtra(EXTRA_ERROR_CODE, 0); 192 intent, EXTRA_SUB_ID) [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/ |
ChangeDefaultSmsAppHelper.java | 22 import android.content.Intent; 117 final Intent intent = UIIntents.get().getChangeDefaultSmsAppIntent(mActivity); local 119 mFragment.startActivityForResult(intent, REQUEST_SET_DEFAULT_SMS_APP); 121 mActivity.startActivityForResult(intent, REQUEST_SET_DEFAULT_SMS_APP);
|
SafeAsyncTask.java | 19 import android.content.Intent; 160 final Intent intent = new Intent(); local 161 sWakeLock.acquire(Factory.get().getApplicationContext(), intent, WAKELOCK_OP); local 168 sWakeLock.release(intent, WAKELOCK_OP);
|
/packages/apps/Music/src/com/android/music/ |
MediaButtonIntentReceiver.java | 21 import android.content.Intent; 45 Intent i = new Intent(); 48 i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); 58 public void onReceive(Context context, Intent intent) { 59 String intentAction = intent.getAction(); 61 Intent i = new Intent(context, MediaPlaybackService.class) [all...] |
VideoBrowserActivity.java | 22 import android.content.Intent; 72 Intent intent = new Intent(Intent.ACTION_VIEW); local 76 intent.setDataAndType( 79 startActivity(intent);
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
InstallSuccess.java | 21 import android.content.Intent; 44 if (getIntent().getBooleanExtra(Intent.EXTRA_RETURN_RESULT, false)) { 46 Intent result = new Intent(); 47 result.putExtra(Intent.EXTRA_INSTALL_RESULT, PackageManager.INSTALL_SUCCEEDED); 51 Intent intent = getIntent(); local 53 intent.getParcelableExtra(PackageUtil.INTENT_ATTR_APPLICATION_INFO); 54 Uri packageURI = intent.getData(); 81 Intent launchIntent = getPackageManager().getLaunchIntentForPackage [all...] |
/packages/apps/Settings/src/com/android/settings/ |
AirplaneModeEnabler.java | 20 import android.content.Intent; 101 // Post the intent 102 Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED); local 103 intent.putExtra("state", enabling); 104 mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
|