/packages/apps/Dialer/java/com/android/voicemail/impl/sync/ |
SyncOneTask.java | 20 import android.content.Intent; 48 Intent intent = BaseTask.createIntent(context, SyncOneTask.class, phone); local 49 intent.putExtra(EXTRA_PHONE_ACCOUNT_HANDLE, phone); 50 intent.putExtra(EXTRA_VOICEMAIL, voicemail); 51 context.sendBroadcast(intent); 73 public Intent createRestartIntent() { 75 Intent intent = super.createRestartIntent(); local 76 intent.putExtra(EXTRA_PHONE_ACCOUNT_HANDLE, phone) [all...] |
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/ |
GetTranscriptReceiver.java | 22 import android.content.Intent; 74 Intent intent = local 85 intent.putExtra(EXTRA_IS_INITIAL_ESTIMATED_WAIT, true); 91 scheduleAlarm(context, estimatedTranscriptionTimeMillis, intent); 95 Intent intent = makeBaseAlarmIntent(context); local 96 return getPendingIntent(context, intent, PendingIntent.FLAG_NO_CREATE) != null; 101 public void onReceive(Context context, Intent intent) { 154 Intent intent = makeBaseAlarmIntent(context); local 165 Intent intent = new Intent(context.getApplicationContext(), GetTranscriptReceiver.class); local [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
PackageChangedReceiver.java | 5 import android.content.Intent; 9 public void onReceive(final Context context, Intent intent) { 10 final String packageName = intent.getData().getSchemeSpecificPart(); 13 // they sent us a bad intent
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/stress/ |
SwitchPreview.java | 23 import android.content.Intent; 99 Intent intent = new Intent(); local 100 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); 101 intent.setClass(getInstrumentation().getTargetContext(), 103 getActivity().startActivity(intent); 105 intent = new Intent(); [all...] |
/packages/apps/Messaging/src/com/android/messaging/receiver/ |
AbortSmsReceiver.java | 21 import android.content.Intent; 32 public void onReceive(final Context context, final Intent intent) { 36 if (!SmsReceiver.shouldIgnoreMessage(intent)) {
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
ControlPanelReceiver.java | 21 import android.content.Intent; 33 public void onReceive(final Context context, final Intent intent) { 37 if ((context == null) || (intent == null)) { 38 Log.w(TAG, "Context or intent is null. Do nothing."); 42 final String action = intent.getAction(); 43 final String packageName = intent.getStringExtra(AudioEffect.EXTRA_PACKAGE_NAME); 44 final int audioSession = intent.getIntExtra(AudioEffect.EXTRA_AUDIO_SESSION, 83 final String param = intent.getStringExtra("AudioEffect.EXTRA_PARAM"); 86 final Boolean value = intent.getBooleanExtra("AudioEffect.EXTRA_VALUE", false) [all...] |
/packages/apps/QuickSearchBox/tests/naughty/src/com/android/quicksearchbox/tests/naughty/ |
CrashingSuggestionLauncher.java | 20 import android.content.Intent; 30 Intent intent = getIntent(); local 31 Log.i(TAG, "Launched a crashing suggestion: " + intent);
|
HangingSuggestionLauncher.java | 19 import android.content.Intent; 29 Intent intent = getIntent(); local 30 Log.i(TAG, "Launched a hanging suggestion: " + intent);
|
/packages/apps/QuickSearchBox/tests/slow/src/com/android/quicksearchbox/tests/slow/ |
SlowSuggestionLauncher.java | 20 import android.content.Intent; 30 Intent intent = getIntent(); local 31 Log.i(TAG, "Launched a slow suggestion: " + intent);
|
/packages/apps/QuickSearchBox/tests/spammy/src/com/android/quicksearchbox/tests/spammy/ |
SpammySuggestionLauncher.java | 20 import android.content.Intent; 30 Intent intent = getIntent(); local 31 Log.i(TAG, "Launched a spammy suggestion: " + intent);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
SetupWizardUtilsTest.java | 22 import android.content.Intent; 36 Intent fromIntent = new Intent(); 40 Intent toIntent = new Intent(); 52 Intent intent = new Intent(); local 53 intent.putExtra(WizardManagerHelper.EXTRA_THEME, WizardManagerHelper.THEME_GLIF_V2); 55 assertResId(SetupWizardUtils.getTheme(intent)).isEqualTo(R.style.GlifV2Theme) 62 Intent intent = new Intent(); local 71 Intent intent = new Intent(); local [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
DvrPlaybackActivity.java | 21 import android.content.Intent; 60 protected void onNewIntent(Intent intent) { 61 setIntent(createProgramIntent(intent)); 62 mOverlayFragment.onNewIntent(createProgramIntent(intent)); 74 private Intent createProgramIntent(Intent intent) { 75 if (Intent.ACTION_VIEW.equals(intent.getAction())) [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/privacy/ |
PrivacyActivity.java | 21 import android.content.Intent; 35 final Intent intent = new Intent(this, ResetActivity.class); local 36 startActivity(intent);
|
/packages/services/Telecomm/src/com/android/server/telecom/components/ |
TelecomBroadcastReceiver.java | 23 import android.content.Intent; 34 public void onReceive(Context context, Intent intent) { 36 getTelecomSystem().getTelecomBroadcastIntentProcessor().processIntent(intent);
|
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/ |
MyForegroundService.java | 26 import android.content.Intent; 44 public IBinder onBind(Intent intent) { 49 public int onStartCommand(Intent intent, int flags, int startId) { 50 Log.v(TAG, "MyForegroundService.onStartCommand(): " + intent); 55 switch (intent.getFlags()) { 61 Common.notifyNetworkStateObserver(this, intent); 68 Log.wtf(TAG, "Invalid flag on intent " + intent); [all...] |
/cts/tests/app/app/src/android/app/stubs/ |
IntentServiceStub.java | 20 import android.content.Intent; 68 protected void onHandleIntent(Intent intent) { 72 String action = intent.getAction(); 74 accumulator += intent.getIntExtra(ISS_VALUE, 0); 83 public IBinder onBind(Intent intent) { 107 public void onStart(Intent intent, int startId) { 111 super.onStart(intent, startId) [all...] |
/cts/tests/tests/appcomponentfactory/src/android/app/componentfactory/cts/ |
MyFactory.java | 23 import android.content.Intent; 37 public Activity instantiateActivity(ClassLoader cl, String className, Intent intent) 42 return super.instantiateActivity(cl, className, intent); 46 public BroadcastReceiver instantiateReceiver(ClassLoader cl, String className, Intent intent) 51 return super.instantiateReceiver(cl, className, intent); 64 public Service instantiateService(ClassLoader cl, String className, Intent intent) 69 return super.instantiateService(cl, className, intent); [all...] |
/cts/tests/tests/opengl/src/android/opengl/cts/ |
EglConfigCtsActivity.java | 20 import android.content.Intent; 64 Intent intent = getIntent(); local 65 if (intent != null) { 66 return intent.getIntExtra(CONFIG_ID_EXTRA, 0); 73 Intent intent = getIntent(); local 74 if (intent != null) { 75 return intent.getIntExtra(CONTEXT_CLIENT_VERSION_EXTRA, 0);
|
/developers/build/prebuilts/gradle/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/ |
NotificationIntentReceiver.java | 21 import android.content.Intent; 40 public void onReceive(Context context, Intent intent) { 41 if (intent.getAction().equals(ACTION_EXAMPLE)) { 43 String message = intent.getStringExtra(NotificationUtil.EXTRA_MESSAGE); 44 Bundle remoteInputResults = RemoteInput.getResultsFromIntent(intent); 54 } else if (intent.getAction().equals(ACTION_ENABLE_MESSAGES)) { 56 } else if (intent.getAction().equals(ACTION_DISABLE_MESSAGES)) {
|
/developers/build/prebuilts/gradle/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/ |
ContentItem.java | 20 import android.content.Intent; 75 * Returns an {@link android.content.Intent} which can be used to share this item's content with other 79 * @return Intent to be given to a ShareActionProvider. 81 public Intent getShareIntent(Context context) { 82 Intent intent = new Intent(Intent.ACTION_SEND); local 86 intent.setType("image/jpg"); 88 intent.putExtra(Intent.EXTRA_STREAM, getContentUri()) [all...] |
/developers/build/prebuilts/gradle/WearComplicationProvidersTestSuite/Wearable/src/main/java/com/example/android/wearable/wear/wearcomplicationproviderstestsuite/ |
ComplicationToggleReceiver.java | 22 import android.content.Intent; 35 public void onReceive(Context context, Intent intent) { 36 Bundle extras = intent.getExtras(); 53 * Returns a pending intent, suitable for use as a tap intent, that causes a complication to be 58 Intent intent = new Intent(context, ComplicationToggleReceiver.class); local 59 intent.putExtra(EXTRA_PROVIDER_COMPONENT, provider) [all...] |
/developers/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/ |
ListenerService.java | 19 import android.content.Intent; 46 Intent intent = DetailActivity.getLaunchIntent(this, attractionName); local 47 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 48 startActivity(intent); 54 Intent intent = new Intent(Intent.ACTION_VIEW, uri) local [all...] |
/developers/samples/android/content/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/ |
ContentItem.java | 20 import android.content.Intent; 75 * Returns an {@link android.content.Intent} which can be used to share this item's content with other 79 * @return Intent to be given to a ShareActionProvider. 81 public Intent getShareIntent(Context context) { 82 Intent intent = new Intent(Intent.ACTION_SEND); local 86 intent.setType("image/jpg"); 88 intent.putExtra(Intent.EXTRA_STREAM, getContentUri()) [all...] |
/developers/samples/android/wearable/wear/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/ |
NotificationIntentReceiver.java | 21 import android.content.Intent; 40 public void onReceive(Context context, Intent intent) { 41 if (intent.getAction().equals(ACTION_EXAMPLE)) { 43 String message = intent.getStringExtra(NotificationUtil.EXTRA_MESSAGE); 44 Bundle remoteInputResults = RemoteInput.getResultsFromIntent(intent); 54 } else if (intent.getAction().equals(ACTION_ENABLE_MESSAGES)) { 56 } else if (intent.getAction().equals(ACTION_DISABLE_MESSAGES)) {
|
/developers/samples/android/wearable/wear/WearComplicationProvidersTestSuite/Wearable/src/main/java/com/example/android/wearable/wear/wearcomplicationproviderstestsuite/ |
ComplicationToggleReceiver.java | 22 import android.content.Intent; 35 public void onReceive(Context context, Intent intent) { 36 Bundle extras = intent.getExtras(); 53 * Returns a pending intent, suitable for use as a tap intent, that causes a complication to be 58 Intent intent = new Intent(context, ComplicationToggleReceiver.class); local 59 intent.putExtra(EXTRA_PROVIDER_COMPONENT, provider) [all...] |