/developers/build/prebuilts/gradle/WearNotifications/Wearable/src/main/java/com/example/android/wearable/wear/wearnotifications/handlers/ |
BigPictureSocialIntentService.java | 21 import android.content.Intent; 55 protected void onHandleIntent(Intent intent) { 56 Log.d(TAG, "onHandleIntent(): " + intent); 58 if (intent != null) { 59 final String action = intent.getAction(); 61 handleActionComment(getMessage(intent)); 122 private CharSequence getMessage(Intent intent) { 123 Bundle remoteInput = RemoteInput.getResultsFromIntent(intent); [all...] |
/developers/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/ |
UtilityService.java | 23 import android.content.Intent; 87 Intent intent = new Intent(context, UtilityService.class); local 88 intent.setAction(UtilityService.ACTION_FAKE_UPDATE); 89 intent.putExtra(EXTRA_TEST_MICROAPP, microApp); 90 context.startService(intent); 94 Intent intent = new Intent(context, UtilityService.class) local 100 Intent intent = new Intent(context, UtilityService.class); local 106 Intent intent = new Intent(context, UtilityService.class); local 112 Intent intent = new Intent(context, UtilityService.class); local [all...] |
/developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
RecipeActivity.java | 21 import android.content.Intent; 50 Intent intent = getIntent(); local 51 mRecipeName = intent.getStringExtra(Constants.RECIPE_NAME_TO_LOAD); 53 Log.d(TAG, "Intent: " + intent.toString() + " " + mRecipeName); 133 Intent intent = new Intent(this, RecipeService.class); local 134 intent.setAction(Constants.ACTION_START_COOKING) [all...] |
/developers/samples/android/wearable/wear/WearNotifications/Wearable/src/main/java/com/example/android/wearable/wear/wearnotifications/handlers/ |
BigPictureSocialIntentService.java | 21 import android.content.Intent; 55 protected void onHandleIntent(Intent intent) { 56 Log.d(TAG, "onHandleIntent(): " + intent); 58 if (intent != null) { 59 final String action = intent.getAction(); 61 handleActionComment(getMessage(intent)); 122 private CharSequence getMessage(Intent intent) { 123 Bundle remoteInput = RemoteInput.getResultsFromIntent(intent); [all...] |
/developers/samples/android/wearable/wear/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/ |
UtilityService.java | 23 import android.content.Intent; 87 Intent intent = new Intent(context, UtilityService.class); local 88 intent.setAction(UtilityService.ACTION_FAKE_UPDATE); 89 intent.putExtra(EXTRA_TEST_MICROAPP, microApp); 90 context.startService(intent); 94 Intent intent = new Intent(context, UtilityService.class) local 100 Intent intent = new Intent(context, UtilityService.class); local 106 Intent intent = new Intent(context, UtilityService.class); local 112 Intent intent = new Intent(context, UtilityService.class); local [all...] |
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/ |
SearchableDictionary.java | 23 import android.content.Intent; 61 protected void onNewIntent(Intent intent) { 63 // to deliver the intent if this activity is currently the foreground activity when 65 // a new instance of this activity, so the system delivers the search intent here) 66 handleIntent(intent); 69 private void handleIntent(Intent intent) { 70 if (Intent.ACTION_VIEW.equals(intent.getAction())) [all...] |
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/ |
RecipeActivity.java | 21 import android.content.Intent; 50 Intent intent = getIntent(); local 51 mRecipeName = intent.getStringExtra(Constants.RECIPE_NAME_TO_LOAD); 53 Log.d(TAG, "Intent: " + intent.toString() + " " + mRecipeName); 133 Intent intent = new Intent(this, RecipeService.class); local 134 intent.setAction(Constants.ACTION_START_COOKING) [all...] |
/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/handlers/ |
BigPictureSocialIntentService.java | 21 import android.content.Intent; 54 protected void onHandleIntent(Intent intent) { 55 Log.d(TAG, "onHandleIntent(): " + intent); 57 if (intent != null) { 58 final String action = intent.getAction(); 60 handleActionComment(getMessage(intent)); 121 private CharSequence getMessage(Intent intent) { 122 Bundle remoteInput = RemoteInput.getResultsFromIntent(intent); [all...] |
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/service/ |
UtilityService.java | 23 import android.content.Intent; 87 Intent intent = new Intent(context, UtilityService.class); local 88 intent.setAction(UtilityService.ACTION_FAKE_UPDATE); 89 intent.putExtra(EXTRA_TEST_MICROAPP, microApp); 90 context.startService(intent); 94 Intent intent = new Intent(context, UtilityService.class) local 100 Intent intent = new Intent(context, UtilityService.class); local 106 Intent intent = new Intent(context, UtilityService.class); local 112 Intent intent = new Intent(context, UtilityService.class); local [all...] |
/development/samples/training/notify-user/src/com/example/android/pingme/ |
PingService.java | 21 import android.content.Intent; 44 protected void onHandleIntent(Intent intent) { 46 mMessage = intent.getStringExtra(CommonConstants.EXTRA_MESSAGE); 48 mMillis = intent.getIntExtra(CommonConstants.EXTRA_TIMER, 53 String action = intent.getAction(); 57 issueNotification(intent, mMessage); 62 issueNotification(intent, getString(R.string.done_snoozing)); 69 private void issueNotification(Intent intent, String msg) [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/view/ |
TestMenuItem.java | 6 import android.content.Intent; 17 private Intent intent; field in class:TestMenuItem 92 public MenuItem setIntent(Intent intent) { 93 this.intent = intent; 98 public Intent getIntent() { 99 return this.intent; 197 } else if (enabled && intent != null) [all...] |
/frameworks/base/core/java/android/view/textclassifier/ |
TextClassification.java | 24 import android.content.Intent; 46 @Nullable private final Intent mIntent; 57 @Nullable Intent intent, 65 mIntent = intent; 128 * Returns an intent that may be fired to act on the classified text. 131 public Intent getIntent() { 163 + "text=%s, entities=%s, label=%s, intent=%s}", 168 * Creates an OnClickListener that starts an activity with the specified intent. 170 * @throws IllegalArgumentException if context or intent is nul [all...] |
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
LaunchpadActivity.java | 23 import android.content.Intent; 69 public void activityFinished(int resultCode, Intent data, 144 private Intent mData = (new Intent()).setAction("No result received"); 232 Intent intent = getIntent(); local 233 intent.setFlags(0); 234 intent.setComponent((ComponentName) 235 intent.getParcelableExtra("component")); 236 //System.out.println("*** Launchpad is starting: comp=" + intent.component) 239 Intent intent = getIntent(); local 245 Intent intent = getIntent(); local 417 Intent intent = new Intent(TestedScreen.WAIT_BEFORE_FINISH); local 422 Intent intent = new Intent(TestedScreen.WAIT_BEFORE_FINISH); local 439 Intent intent = new Intent(action, null); local [all...] |
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
ObjectBrowser.java | 21 import android.content.Intent; 135 Intent intent; local 137 intent = new Intent(this, ObjectBrowser.class); 139 intent = new Intent(this, ObjectViewer.class); 141 intent.putExtra("device", mDeviceName); 142 intent.putExtra("storage", mStorageID); 143 intent.putExtra("object", info.getObjectHandle()) [all...] |
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
CustomConfigLoader.java | 19 import android.content.Intent; 52 * @param intent passing signal for config match 55 * Example: input intent TelephonyIntent.ACTION_CARRIER_SIGNAL_REQUEST_NETWORK_FAILED 56 * This intent allows fined-grained matching based on both intent type & extra values: 58 * apnType read from passing intent is "default" and errorCode is 0x26 for example and 67 public static List<Integer> loadCarrierActionList(Context context, Intent intent) { 79 // used for intents which allow fine-grained interpretation based on intent extras 82 switch (intent.getAction()) [all...] |
/frameworks/base/packages/Osu/src/com/android/hotspot2/flow/ |
FlowService.java | 7 import android.content.Intent; 57 public void onReceive(Context context, Intent intent) { 58 handleIntent(intent.getAction(), intent); 141 public IBinder onBind(Intent intent) { 146 public void onReceive(Context context, Intent intent) { 147 handleIntent(intent.getAction(), intent) [all...] |
/frameworks/base/services/usb/java/com/android/server/usb/ |
MtpNotificationManager.java | 24 import android.content.Intent; 89 final Intent intent = new Intent(ACTION_OPEN_IN_APPS); local 90 intent.putExtra(UsbManager.EXTRA_DEVICE, device); 91 intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY | Intent.FLAG_RECEIVER_FOREGROUND); 96 intent, 116 public void onReceive(Context context, Intent intent) [all...] |
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/ |
InputMethodSettingsImpl.java | 20 import android.content.Intent; 56 final Intent intent = new Intent(Settings.ACTION_INPUT_METHOD_SUBTYPE_SETTINGS); local 57 intent.putExtra(Settings.EXTRA_INPUT_METHOD_ID, mImi.getId()); 58 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK 59 | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED 60 | Intent.FLAG_ACTIVITY_CLEAR_TOP); 62 mSubtypeEnablerPreference.setIntent(intent); 165 final Intent intent = pref.getIntent(); local [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
WapPushOverSmsTest.java | 33 import android.content.Intent; 89 ArgumentCaptor<Intent> intentArgumentCaptor = ArgumentCaptor.forClass(Intent.class); 96 Intent intent = intentArgumentCaptor.getValue(); local 97 assertEquals(Telephony.Sms.Intents.WAP_PUSH_DELIVER_ACTION, intent.getAction()); 98 assertEquals(0xFF, intent.getIntExtra("transactionId", 0)); 99 assertEquals(0x06, intent.getIntExtra("pduType", 0)); 101 byte[] header = intent.getByteArrayExtra("header"); 107 byte[] data = intent.getByteArrayExtra("data") [all...] |
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/preferences/ |
ContactPreferencesTest.java | 27 import android.content.Intent; 109 Intent intent = new Intent(Intent.ACTION_VIEW); local 110 intent.setData(mPhoneUri); 111 assertThat(Shadows.shadowOf(mContext).getNextStartedActivity().filterEquals(intent)) 126 when(mPackageManager.queryIntentActivities(any(Intent.class), anyInt())) 131 Intent intent = new Intent(Intent.ACTION_CALL) local [all...] |
/packages/apps/PackageInstaller/src/com/android/packageinstaller/television/ |
UninstallAppProgressFragment.java | 20 import android.content.Intent; 56 Intent intent = new Intent(); 57 intent.setClassName("com.android.settings", 59 intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_NEW_TASK); 60 startActivity(intent); 68 Intent intent = new Intent(Settings.ACTION_USER_SETTINGS) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
MasterClearConfirm.java | 21 import android.content.Intent; 126 Intent intent = new Intent(Intent.ACTION_FACTORY_RESET); local 127 intent.setPackage("android"); 128 intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); 129 intent.putExtra(Intent.EXTRA_REASON, "MasterClearConfirm") [all...] |
SettingsLicenseActivity.java | 24 import android.content.Intent; 120 final Intent intent = new Intent(Intent.ACTION_VIEW); local 121 intent.setDataAndType(uri, "text/html"); 122 intent.putExtra(Intent.EXTRA_TITLE, getString(R.string.settings_license_activity_title)); 124 intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION) [all...] |
/packages/apps/Settings/src/com/android/settings/users/ |
EditUserPhotoController.java | 24 import android.content.Intent; 111 public boolean onActivityResult(int requestCode, int resultCode, Intent data) { 203 new Intent(MediaStore.ACTION_IMAGE_CAPTURE), 208 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local 209 intent.setType("image/*"); 211 intent, 0).size() > 0; 215 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE) local 221 Intent intent = new Intent(Intent.ACTION_GET_CONTENT, null); local 251 Intent intent = new Intent("com.android.camera.action.CROP"); local [all...] |
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
CallNotificationReceiver.java | 22 import android.content.Intent; 39 * Exit intent action is sent when the user clicks the "exit" action of the 59 public void onReceive(Context context, Intent intent) { 60 String action = intent.getAction(); 79 * Creates and sends the intent to add an incoming call through Telecom. 138 new Intent(TestCallActivity.ACTION_HANGUP_CALLS)); 143 final Intent intent = new Intent(TestCallActivity.ACTION_SEND_UPGRADE_REQUEST) local 149 final Intent intent = new Intent(TestCallActivity.ACTION_REMOTE_RTT_UPGRADE); local [all...] |