/packages/apps/Launcher2/src/com/android/launcher2/ |
UninstallShortcutReceiver.java | 22 import android.content.Intent; 49 Intent data; 51 public PendingUninstallShortcutInfo(Intent rawData) { 56 public void onReceive(Context context, Intent data) { 87 final Intent data = pendingInfo.data; 95 private static void removeShortcut(Context context, Intent data, 97 Intent intent = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT); local 98 String name = data.getStringExtra(Intent.EXTRA_SHORTCUT_NAME) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
PromiseAppInfo.java | 19 import android.content.Intent; 31 intent = new Intent(Intent.ACTION_MAIN) 32 .addCategory(Intent.CATEGORY_LAUNCHER) 34 .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK 35 | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); 49 public Intent getMarketIntent() {
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
PinItemDragListener.java | 21 import android.content.Intent; 46 * in the source window and is passed on to the Launcher activity as an Intent extra. 130 public static boolean handleDragRequest(Launcher launcher, Intent intent) { 134 if (intent == null || !Intent.ACTION_MAIN.equals(intent.getAction())) { 137 Parcelable dragExtra = intent.getParcelableExtra(EXTRA_PIN_ITEM_DRAG_LISTENER);
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
ConfigMonitor.java | 21 import android.content.Intent; 45 public void onReceive(Context context, Intent intent) { 55 mContext.registerReceiver(this, new IntentFilter(Intent.ACTION_CONFIGURATION_CHANGED));
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
AddConfigWidgetTest.java | 19 import android.content.Intent; 174 Intent intent = blockingGetExtraIntent(); local 175 assertNotNull(intent); 176 assertEquals(AppWidgetManager.ACTION_APPWIDGET_CONFIGURE, intent.getAction()); 177 int widgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
CameraButtonIntentReceiver.java | 21 import android.content.Intent; 28 * {@code android.intent.action.CAMERA_BUTTON} intent. 36 public void onReceive(Context context, Intent intent) { 46 Intent i = new Intent(Intent.ACTION_MAIN); 48 i.addCategory(Intent.CATEGORY_LAUNCHER); 49 i.setFlags(Intent.FLAG_ACTIVITY_NEW_TAS [all...] |
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/ |
MessageParserTest.java | 33 import android.content.Intent; 82 // GIVEN a NFC provisioning intent with some supported data. 89 props.store(stream, "NFC provisioning intent" /* data description */); 95 Intent intent = new Intent(NfcAdapter.ACTION_NDEF_DISCOVERED) local 100 ProvisioningDataParser parser = mMessageParser.getParser(intent); 121 Intent intent = new Intent(provisioningAction local [all...] |
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/ |
ProvisioningActivityTest.java | 27 import static android.support.test.espresso.intent.Intents.intended; 28 import static android.support.test.espresso.intent.matcher.IntentMatchers.hasAction; 29 import static android.support.test.espresso.intent.matcher.IntentMatchers.hasComponent; 52 import android.content.Intent; 60 import android.support.test.espresso.intent.Intents; 61 import android.support.test.espresso.intent.rule.IntentsTestRule; 108 private static final Intent PROFILE_OWNER_INTENT = new Intent() 110 private static final Intent DEVICE_OWNER_INTENT = new Intent() 386 Intent intent = new Intent() local 406 Intent intent = new Intent() local [all...] |
/packages/apps/Messaging/src/com/android/messaging/widget/ |
BaseWidgetProvider.java | 23 import android.content.Intent; 53 public void onReceive(Context context, Intent intent) { 55 LogUtil.v(TAG, "onReceive intent: " + intent + " for " + this.getClass()); 57 final String action = intent.getAction(); 60 // we're looking for an intent sent by our app when it knows a message has 77 super.onReceive(context, intent);
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
TapAgainDialog.java | 22 import android.content.Intent; 49 public void onReceive(Context context, Intent intent) { 63 Intent intent = getIntent(); local 64 String category = intent.getStringExtra(EXTRA_CATEGORY); 65 ApduServiceInfo serviceInfo = intent.getParcelableExtra(EXTRA_APDU_SERVICE); 67 filter.addAction(Intent.ACTION_SCREEN_OFF);
|
/packages/apps/Settings/src/com/android/settings/ |
SettingsInitialize.java | 22 import android.content.Intent; 38 * Listens to {@link Intent.ACTION_PRE_BOOT_COMPLETED} and {@link Intent.ACTION_USER_INITIALIZED} 40 * adds cross-profile intent filters for the appropriate Settings activities), and disables the 51 public void onReceive(Context context, Intent broadcast) { 59 private void managedProfileSetup(Context context, final PackageManager pm, Intent broadcast, 65 + ". Setting up intent forwarding for managed profile."); 66 // Clear any previous intent forwarding we set up 69 // Set up intent forwarding for implicit intents 70 Intent intent = new Intent() local [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
IPackageManagerWrapper.java | 19 import android.content.Intent; 45 ResolveInfo findPersistentPreferredActivity(Intent intent, int userId) throws RemoteException;
|
/packages/apps/Settings/src/com/android/settings/core/instrumentation/ |
MetricsFeatureProvider.java | 20 import android.content.Intent; 107 public void logDashboardStartIntent(Context context, Intent intent, 109 if (intent == null) { 112 final ComponentName cn = intent.getComponent(); 114 final String action = intent.getAction();
|
/packages/apps/Settings/src/com/android/settings/location/ |
LocationPreferenceController.java | 20 import android.content.Intent; 53 public void onReceive(Context context, Intent intent) { 54 if (intent.getAction().equals(LocationManager.PROVIDERS_CHANGED_ACTION)) { 130 final Intent intent = DatabaseIndexingUtils.buildSubsettingIntent(mContext, local 135 ResultPayload.SettingsSource.SECURE, intent, isAvailable(),
|
/packages/apps/Settings/src/com/android/settings/notification/ |
ZenModeVoiceActivity.java | 21 import android.content.Intent; 48 protected boolean onVoiceSettingInteraction(Intent intent) { 49 if (intent.hasExtra(EXTRA_DO_NOT_DISTURB_MODE_ENABLED)) { 50 int minutes = intent.getIntExtra(EXTRA_DO_NOT_DISTURB_MODE_MINUTES, -1); 54 if (intent.getBooleanExtra(EXTRA_DO_NOT_DISTURB_MODE_ENABLED, false)) {
|
/packages/apps/Settings/src/com/android/settings/password/ |
ChooseLockPassword.java | 30 import android.content.Intent; 88 public Intent getIntent() { 89 Intent modIntent = new Intent(super.getIntent()); 102 private final Intent mIntent; 105 mIntent = new Intent(context, ChooseLockPassword.class); 123 mIntent.putExtra(Intent.EXTRA_USER_ID, userId); 143 public Intent build() { 335 Intent intent = getActivity().getIntent() local 415 Intent intent = getActivity().getIntent(); local 950 Intent intent = getRedactionInterstitialIntent(getActivity()); local [all...] |
/packages/apps/Settings/src/com/android/settings/utils/ |
VoiceSettingsActivity.java | 22 import android.content.Intent; 28 * will only allow modifying the setting if the intent was sent using 56 abstract protected boolean onVoiceSettingInteraction(Intent intent);
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
WifiDialogActivity.java | 21 import android.content.Intent; 45 final Intent intent = getIntent(); local 46 if (WizardManagerHelper.isSetupWizardIntent(intent)) { 47 setTheme(SetupWizardUtils.getTransparentTheme(intent)); 52 final Bundle accessPointState = intent.getBundleExtra(KEY_ACCESS_POINT_STATE); 89 Intent resultData = new Intent(); 120 Intent resultData = new Intent(); [all...] |
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/ |
AutomaticStorageBroadcastReceiver.java | 24 import android.content.Intent; 28 * A {@link BroadcastReceiver} listening for {@link Intent#ACTION_BOOT_COMPLETED} broadcasts to 38 public void onReceive(Context context, Intent intent) {
|
/packages/apps/Terminal/src/com/android/terminal/ |
TerminalService.java | 20 import android.content.Intent; 39 public IBinder onBind(Intent intent) { 50 startService(new Intent(this, TerminalService.class)); 66 stopService(new Intent(this, TerminalService.class));
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
BluetoothA2dpConnector.java | 25 import android.content.Intent; 44 public void onReceive(Context context, Intent intent) { 45 BluetoothDevice device = (BluetoothDevice) intent.getParcelableExtra( 52 int previousState = intent.getIntExtra( 55 int state = intent.getIntExtra(BluetoothA2dp.EXTRA_STATE,
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ProfileProvider.java | 22 import android.content.Intent; 158 final Intent intent = new Intent(Intents.ACTION_PROFILE_CHANGED); local 159 mDelegate.getContext().sendBroadcast(intent, READ_CONTACTS_PERMISSION); 161 intent.setPackage("com.android.settings"); 162 mDelegate.getContext().sendBroadcast(intent, READ_CONTACTS_PERMISSION);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
BaseVoicemailProviderTest.java | 23 import android.content.Intent; 98 public void sendOrderedBroadcast(Intent intent, String receiverPermission) { 156 public void sendOrderedBroadcast(Intent intent, String receiverPermission); 186 public void sendBroadcast(Intent intent, String receiverPermission) { 187 mDelegate.sendOrderedBroadcast(intent, receiverPermission);
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
SystemFacade.java | 20 import android.content.Intent; 55 * Send a broadcast intent. 57 public void sendBroadcast(Intent intent);
|
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/ |
BluetoothDeviceManager.java | 24 import android.content.Intent; 85 public void onReceive(Context context, Intent intent) { 88 String action = intent.getAction(); 91 int bluetoothHeadsetState = intent.getIntExtra(BluetoothHeadset.EXTRA_STATE, 94 intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
|