/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
BatteryBroadcastReceiver.java | 21 import android.content.Intent; 78 public void onReceive(Context context, Intent intent) { 79 updateBatteryStatus(intent, false /* forceUpdate */); 88 intentFilter.addAction(Intent.ACTION_BATTERY_CHANGED); 91 final Intent intent = mContext.registerReceiver(this, intentFilter); local 92 updateBatteryStatus(intent, true /* forceUpdate */); 99 private void updateBatteryStatus(Intent intent, boolean forceUpdate) [all...] |
/packages/apps/Settings/src/com/android/settings/slices/ |
SliceDeepLinkSpringBoard.java | 18 import android.content.Intent; 36 public static final String INTENT = "intent"; 51 Intent intent = parse(uri, getPackageName()); local 52 if (ACTION_VIEW_SLICE.equals(intent.getAction())) { 55 final Uri slice = Uri.parse(intent.getStringExtra(EXTRA_SLICE)); 56 final Intent launchIntent; 77 startActivity(intent); 84 Log.w(TAG, "Couldn't launch Slice intent", e) 91 Intent intent = Intent.parseUri(uri.getQueryParameter(INTENT), local [all...] |
/packages/services/Telephony/src/com/android/phone/ |
CallGatewayManager.java | 19 import android.content.Intent; 46 * Intent extra to specify the package name of the gateway 57 * Intent extra to specify the URI of the provider to place the 61 * intent URL or in the EXTRA_PHONE_NUMBER extra. 87 * Intent parameter. If no such data exists, returns a Null-Object RawGatewayInfo. 88 * @param intent The intent from which to read gateway data. 91 public static RawGatewayInfo getRawGatewayInfo(Intent intent, String number) { 92 if (hasPhoneProviderExtras(intent)) { [all...] |
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/ |
GridWidgetTest.java | 32 import android.content.Intent; 382 private void initActivity(Intent intent) throws Throwable { 384 mActivity = mActivityTestRule.launchActivity(intent); 520 Intent intent = new Intent(); local 521 intent.putExtra(GridActivity.EXTRA_LAYOUT_RESOURCE_ID, R.layout.horizontal_grid); 522 intent.putExtra(GridActivity.EXTRA_NUM_ITEMS, 100); 523 initActivity(intent); 589 Intent intent = new Intent(); local 643 Intent intent = new Intent(); local 708 Intent intent = new Intent(); local 724 Intent intent = new Intent(); local 751 Intent intent = new Intent(); local 791 Intent intent = new Intent(); local 835 Intent intent = new Intent(); local 877 Intent intent = new Intent(); local 903 Intent intent = new Intent(); local 929 Intent intent = new Intent(); local 1026 Intent intent = new Intent(); local 1070 Intent intent = new Intent(); local 1097 Intent intent = new Intent(); local 1134 Intent intent = new Intent(); local 1187 Intent intent = new Intent(); local 1251 Intent intent = new Intent(); local 1314 Intent intent = new Intent(); local 1355 Intent intent = new Intent(); local 1398 Intent intent = new Intent(); local 1546 Intent intent = new Intent(); local 1602 Intent intent = new Intent(); local 1654 Intent intent = new Intent(); local 1744 Intent intent = new Intent(); local 1781 Intent intent = new Intent(); local 1818 Intent intent = new Intent(); local 1848 Intent intent = new Intent(); local 1869 Intent intent = new Intent(); local 1911 Intent intent = new Intent(); local 1965 Intent intent = new Intent(); local 1992 Intent intent = new Intent(); local 2024 Intent intent = new Intent(); local 2059 Intent intent = new Intent(); local 2102 Intent intent = new Intent(); local 2163 Intent intent = new Intent(); local 2212 Intent intent = new Intent(); local 2289 Intent intent = new Intent(); local 2343 Intent intent = new Intent(); local 2386 Intent intent = new Intent(); local 2428 Intent intent = new Intent(); local 2474 Intent intent = new Intent(); local 2533 Intent intent = new Intent(); local 2573 Intent intent = new Intent(); local 2614 Intent intent = new Intent(); local 2647 Intent intent = new Intent(); local 2679 Intent intent = new Intent(); local 2705 Intent intent = new Intent(); local 2738 Intent intent = new Intent(); local 2777 Intent intent = new Intent(); local 2820 Intent intent = new Intent(); local 2854 Intent intent = new Intent(); local 2880 Intent intent = new Intent(); local 2900 Intent intent = new Intent(); local 2928 Intent intent = new Intent(); local 2958 Intent intent = new Intent(); local 2986 Intent intent = new Intent(); local 3015 Intent intent = new Intent(); local 3063 Intent intent = new Intent(); local 3132 Intent intent = new Intent(); local 3204 Intent intent = new Intent(); local 3308 Intent intent = new Intent(); local 3348 Intent intent = new Intent(); local 3388 Intent intent = new Intent(); local 3428 Intent intent = new Intent(); local 3460 Intent intent = new Intent(); local 3496 Intent intent = new Intent(); local 3529 Intent intent = new Intent(); local 3562 Intent intent = new Intent(); local 3598 Intent intent = new Intent(); local 3622 Intent intent = new Intent(); local 3641 Intent intent = new Intent(); local 3719 Intent intent = new Intent(); local 3837 Intent intent = new Intent(); local 3906 Intent intent = new Intent(); local 3969 Intent intent = new Intent(); local 4005 Intent intent = new Intent(); local 4034 Intent intent = new Intent(); local 4069 Intent intent = new Intent(); local 4102 Intent intent = new Intent(); local 4127 Intent intent = new Intent(); local 4147 Intent intent = new Intent(); local 4195 Intent intent = new Intent(); local 4241 Intent intent = new Intent(); local 4274 Intent intent = new Intent(); local 4314 Intent intent = new Intent(); local 4362 Intent intent = new Intent(); local 4406 Intent intent = new Intent(); local 4453 Intent intent = new Intent(); local 5118 Intent intent = new Intent(); local 5172 Intent intent = new Intent(); local 5234 Intent intent = new Intent(); local 5287 Intent intent = new Intent(); local 5340 Intent intent = new Intent(); local 5394 Intent intent = new Intent(); local 5441 Intent intent = new Intent(); local 5469 Intent intent = new Intent(); local 5492 Intent intent = new Intent(); local 5515 Intent intent = new Intent(); local 5543 Intent intent = new Intent(); local 5574 Intent intent = new Intent(); local [all...] |
/frameworks/base/core/java/android/app/ |
KeyguardManager.java | 27 import android.content.Intent; 66 * Intent used to prompt user for device credentials. 73 * Intent used to prompt user for device credentials. 80 * Intent used to prompt user for factory reset credentials. 118 * Get an intent to prompt the user to confirm credentials (pin, pattern or password) 120 * {@link android.app.Activity#startActivityForResult(Intent, int)} and check for 123 * @return the intent for launching the activity or null if no password is required. 125 public Intent createConfirmDeviceCredentialIntent(CharSequence title, CharSequence description) { 127 Intent intent = new Intent(ACTION_CONFIRM_DEVICE_CREDENTIAL) 210 Intent intent = new Intent(ACTION_CONFIRM_FRP_CREDENTIAL); local [all...] |
/frameworks/support/media/src/main/java/androidx/media/session/ |
MediaButtonReceiver.java | 26 import android.content.Intent; 52 * <intent-filter> 53 * <action android:name="android.intent.action.MEDIA_BUTTON" /> 54 * </intent-filter> 60 * to find a {@link Service} that can handle {@link Intent#ACTION_MEDIA_BUTTON}, and a 68 * A service can receive a key event by including an intent filter that handles 69 * {@link Intent#ACTION_MEDIA_BUTTON}: 72 * <intent-filter> 73 * <action android:name="android.intent.action.MEDIA_BUTTON" /> 74 * </intent-filter> 271 Intent intent = new Intent(Intent.ACTION_MEDIA_BUTTON); local [all...] |
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/ |
LensPickerActivity.java | 19 import android.content.Intent; 48 private Intent mLastLaunchedIntent; 72 Intent intent = getIntent(); local 73 String[] categories = intent.getStringArrayExtra( 75 String[] packages = intent.getStringArrayExtra(LensPickerConstants.EXTRA_FACET_PACKAGES); 76 String facetId = intent.getStringExtra(LensPickerConstants.EXTRA_FACET_ID); 84 Intent launchIntent = LensPickerUtils.getLaunchIntent(packageName, rInfo, 89 Log.e(TAG, "Failed to get launch intent for package" + packageName); 112 private boolean isReclick(Intent intent, Intent oldIntent) 170 Intent intent = new Intent(); local 178 Intent intent = new Intent(); local 186 Intent intent = new Intent(); local [all...] |
/packages/apps/Car/Messenger/src/com/android/car/messenger/ |
MessengerService.java | 26 import android.content.Intent; 118 public int onStartCommand(Intent intent, int flags, int startId) { 120 Log.d(TAG, "Handling intent: " + intent); 124 // It may be restarted with null intent or one of the other intents e.g. REPLY, PLAY etc. 127 if (intent == null || ACTION_START.equals(intent.getAction())) { 132 if (!hasRequiredArgs(intent)) { 135 switch (intent.getAction()) [all...] |
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
CertInstallerReceiver.java | 21 import android.content.Intent; 68 public void onReceive(Context context, Intent intent) { 69 if (intent == null) { 73 String action = intent.getAction(); 81 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA); 99 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA); 111 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA); 119 String alias = intent.getStringExtra(EXTRA_KEY_ALIAS); 120 String key = intent.getStringExtra(EXTRA_KEY_DATA) 149 Intent intent = new Intent(); local [all...] |
/cts/tests/tests/alarmclock/service/src/android/alarmclock/service/ |
MainInteractionSession.java | 22 import android.content.Intent; 73 Intent intent; local 76 intent = new Intent(AlarmClock.ACTION_DISMISS_ALARM); 77 intent.putExtra(AlarmClock.EXTRA_ALARM_SEARCH_MODE, 82 intent = new Intent(AlarmClock.ACTION_DISMISS_TIMER); 87 intent = new Intent(AlarmClock.ACTION_SET_ALARM) [all...] |
/cts/tests/app/app/src/android/app/stubs/ |
MockService.java | 21 import android.content.Intent; 47 public IBinder onBind(Intent intent) { 60 public void onStart(Intent intent, int startId) { 61 super.onStart(intent, startId); 63 if (!intent.getBooleanExtra(EXTRA_NO_STOP, false)) { 126 Intent intent = new Intent(); local [all...] |
/cts/tests/leanbackjank/src/android/leanbackjank/cts/ |
CtsDeviceLeanback.java | 18 import android.content.Intent; 68 Intent intent = new Intent(Intent.ACTION_MAIN); local 69 intent.setComponent(new ComponentName(APP_PACKAGE, CLASS)); 72 intent.putExtra(IntentKeys.SCROLL_DELAY, PRE_SCROLL_DELAY_MILLIS); 73 intent.putExtra(IntentKeys.SCROLL_COUNT, SCROLL_COUNT); 74 intent.putExtra(IntentKeys.SCROLL_INTERVAL, SCROLL_INTERVAL_MILLIS); 75 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) [all...] |
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/controller/ |
IntentServiceController.java | 10 import android.content.Intent; 17 public static <T extends IntentService> IntentServiceController<T> of(final T service, final Intent intent) { 18 final IntentServiceController<T> controller = new IntentServiceController<>(service, intent); 23 private IntentServiceController(final T service, final Intent intent) { 24 super(service, intent); 45 invokeWhilePaused("onBind", from(Intent.class, getIntent())); 60 invokeWhilePaused("onRebind", from(Intent.class, getIntent())); 71 invokeWhilePaused("onUnbind", from(Intent.class, getIntent())) [all...] |
ServiceController.java | 9 import android.content.Intent; 16 public static <T extends Service> ServiceController<T> of(T service, Intent intent) { 17 ServiceController<T> controller = new ServiceController<>(service, intent); 22 private ServiceController(T service, Intent intent) { 23 super(service, intent); 44 invokeWhilePaused("onBind", from(Intent.class, getIntent())); 59 invokeWhilePaused("onRebind", from(Intent.class, getIntent())); 64 invokeWhilePaused("onStartCommand", from(Intent.class, getIntent()), from(int.class, flags), from(int.class, startId)) [all...] |
/frameworks/base/packages/Shell/src/com/android/shell/ |
BugreportReceiver.java | 29 import android.content.Intent; 37 * {@link Intent#ACTION_SEND_MULTIPLE}. 53 public void onReceive(Context context, Intent intent) { 54 Log.d(TAG, "onReceive(): " + dumpIntent(intent)); 56 cleanupOldFiles(this, intent, INTENT_BUGREPORT_FINISHED, MIN_KEEP_COUNT, MIN_KEEP_AGE); 58 // Delegate intent handling to service. 59 Intent serviceIntent = new Intent(context, BugreportProgressService.class); 60 serviceIntent.putExtra(EXTRA_ORIGINAL_INTENT, intent); [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
IntentBroadcaster.java | 22 import android.content.Intent; 34 * for example broadcasts are always sticky, only the last intent for the slotId is rebroadcast, 40 private Map<Integer, Intent> mRebroadcastIntents = new HashMap<>(); 45 public void onReceive(Context context, Intent intent) { 46 String action = intent.getAction(); 47 if (action.equals(Intent.ACTION_USER_UNLOCKED)) { 53 Intent i = (Intent) pair.getValue(); 56 logd("Rebroadcasting intent " + i.getAction() + " [all...] |
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/ |
SingleFragmentTestActivity.java | 24 import android.content.Intent; 47 Intent intent = getIntent(); local 48 if (intent != null) { 49 Bundle b = intent.getBundleExtra(EXTRA_OVERRIDDEN_SAVED_INSTANCE_STATE); 62 Intent intent = getIntent(); local 64 final int uiOptions = intent.getIntExtra(EXTRA_UI_VISIBILITY, 0); 69 setContentView(intent.getIntExtra(EXTRA_ACTIVITY_LAYOUT, R.layout.single_fragment)); 73 intent.getStringExtra(EXTRA_FRAGMENT_NAME)).newInstance() [all...] |
SingleSupportFragmentTestActivity.java | 18 import android.content.Intent; 44 Intent intent = getIntent(); local 45 if (intent != null) { 46 Bundle b = intent.getBundleExtra(EXTRA_OVERRIDDEN_SAVED_INSTANCE_STATE); 59 Intent intent = getIntent(); local 61 final int uiOptions = intent.getIntExtra(EXTRA_UI_VISIBILITY, 0); 66 setContentView(intent.getIntExtra(EXTRA_ACTIVITY_LAYOUT, R.layout.single_fragment)); 70 intent.getStringExtra(EXTRA_FRAGMENT_NAME)).newInstance() [all...] |
/packages/apps/Dialer/java/com/android/dialer/precall/externalreceiver/ |
LaunchPreCallActivity.java | 21 import android.content.Intent; 59 Intent intent = getIntent(); local 60 CallIntentBuilder builder = new CallIntentBuilder(intent.getData(), Type.EXTERNAL_INITIATION); 62 PhoneAccountHandle phoneAccountHandle = intent.getParcelableExtra(EXTRA_PHONE_ACCOUNT_HANDLE); 64 phoneAccountHandle = intent.getParcelableExtra(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE); 69 .setIsVideoCall(intent.getBooleanExtra(EXTRA_IS_VIDEO_CALL, false)) 70 .setCallSubject(intent.getStringExtra(EXTRA_CALL_SUBJECT)) 72 intent.getBooleanExtra(
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
VoiceSearch.java | 21 import android.content.Intent; 51 protected Intent createVoiceSearchIntent() { 52 return new Intent(RecognizerIntent.ACTION_WEB_SEARCH); 56 Intent intent = createVoiceSearchIntent(); local 58 resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); 66 public Intent createVoiceWebSearchIntent(Bundle appData) { 68 Intent intent = createVoiceSearchIntent(); 69 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
TetherProvisioningActivity.java | 20 import android.content.Intent; 53 Intent intent = new Intent(Intent.ACTION_MAIN); local 54 intent.setClassName(provisionApp[0], provisionApp[1]); 55 intent.putExtra(EXTRA_TETHER_TYPE, tetherType); 60 if (getPackageManager().queryIntentActivities(intent, 68 startActivityForResultAsUser(intent, PROVISION_REQUEST, UserHandle.CURRENT); 72 public void onActivityResult(int requestCode, int resultCode, Intent intent) [all...] |
/packages/apps/TV/src/com/android/tv/receiver/ |
AbstractGlobalKeyReceiver.java | 21 import android.content.Intent; 35 private static final String ACTION_GLOBAL_BUTTON = "android.intent.action.GLOBAL_BUTTON"; 43 public void onReceive(Context context, Intent intent) { 50 if (DEBUG) Log.d(TAG, "onReceive: " + intent); 52 handleIntent(appContext, intent); 69 handleIntent(appContext, intent); 76 private void handleIntent(Context appContext, Intent intent) { 77 if (ACTION_GLOBAL_BUTTON.equals(intent.getAction())) [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
DialogActivity.java | 24 import android.content.Intent; 111 public static Intent createIntent(Context context, String title, 118 public static Intent createIntent(Context context, String title, 121 Intent intent = new Intent(context, DialogActivity.class); local 122 intent.putExtra(EXTRA_DIALOG_TITLE, title); 123 intent.putExtra(EXTRA_DIALOG_BREADCRUMB, breadcrumb); 124 intent.putExtra(EXTRA_DIALOG_DESCRIPTION, description); 125 intent.putExtra(EXTRA_DIALOG_IMAGE_URI, imageUri) 142 Intent intent = new Intent(context, activityClass); local 157 Intent intent = new Intent(context, activityClass); local 246 Intent intent = action.getIntent(); local [all...] |
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
SipIncomingCallReceiver.java | 21 import android.content.Intent; 38 public void onReceive(Context context, final Intent intent) { 39 String action = intent.getAction(); 52 takeCall(context, intent); 58 private void takeCall(Context context, Intent intent) { 59 if (VERBOSE) log("takeCall, intent: " + intent); 62 accountHandle = intent.getParcelableExtra(SipUtil.EXTRA_PHONE_ACCOUNT) [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/ |
RobolectricPackageManager.java | 11 import android.content.Intent; 23 private Map<Intent, List<ResolveInfo>> resolveList = new HashMap<Intent, List<ResolveInfo>>(); 76 public List<ResolveInfo> queryIntentActivities( Intent intent, int flags ) { 77 return queryIntent(intent, flags); 81 public List<ResolveInfo> queryIntentServices( Intent intent, int flags ) { 82 return queryIntent(intent, flags); 86 public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags) [all...] |