/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/fuelgauge/ |
BatterySaverReceiverTest.java | 21 import android.content.Intent; 54 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); local 55 intent.putExtra(BatteryManager.EXTRA_PLUGGED, BatteryManager.BATTERY_PLUGGED_AC); 57 mBatterySaverReceiver.onReceive(mContext, intent); 64 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED) local 74 Intent intent = new Intent(PowerManager.ACTION_POWER_SAVE_MODE_CHANGING); local [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
DvrPlaybackActivity.java | 21 import android.content.Intent; 62 protected void onNewIntent(Intent intent) { 63 setIntent(createProgramIntent(intent)); 64 mOverlayFragment.onNewIntent(createProgramIntent(intent)); 75 private Intent createProgramIntent(Intent intent) { 76 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);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
RemoteDevices.java | 27 import android.content.Intent; 63 public void onReceive(Context context, Intent intent) { 64 String action = intent.getAction(); 67 onHfIndicatorValueChanged(intent); 70 onVendorSpecificHeadsetEvent(intent); 73 onHeadsetConnectionStateChanged(intent); 76 Log.w(TAG, "Unhandled intent: " + intent); 267 Intent intent = new Intent(BluetoothDevice.ACTION_ALIAS_CHANGED) local 336 Intent intent = new Intent(BluetoothDevice.ACTION_UUID); local 419 Intent intent = new Intent(BluetoothDevice.ACTION_BATTERY_LEVEL_CHANGED); local 427 Intent intent; local 515 Intent intent = new Intent(BluetoothDevice.ACTION_FOUND); local 537 Intent intent = null; local [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
DpmMockContext.java | 24 import android.content.Intent; 223 public void sendBroadcast(Intent intent) { 224 spiedContext.sendBroadcast(intent); 228 public void sendBroadcast(Intent intent, String receiverPermission) { 229 spiedContext.sendBroadcast(intent, receiverPermission); 233 public void sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions) { 234 spiedContext.sendBroadcastMultiplePermissions(intent, receiverPermissions) [all...] |
/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/app/src/android/app/cts/ |
NewDocumentTest.java | 25 import android.content.Intent; 35 final Intent intent = new Intent(); local 36 intent.setClass(getContext(), NewDocumentTestActivity.class); 37 intent.setData(TEST_URI); 40 getContext().startActivity(intent); 45 getContext().startActivity(intent); 64 public void onReceive(Context context, Intent 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...] |
/developers/samples/android/wearable/wear/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...] |
/development/apps/CustomLocale/src/com/android/customlocale2/ |
CustomLocaleReceiver.java | 22 import android.content.Intent;
33 * $ adb shell am broadcast -a com.android.intent.action.SET_LOCALE \
34 * --es com.android.intent.extra.LOCALE en_US
42 /** Intent action that triggers this receiver. */
43 public static final String ACTION_SET_LOCALE = "com.android.intent.action.SET_LOCALE";
45 public static final String EXTRA_LOCALE = "com.android.intent.extra.LOCALE";
48 public void onReceive(Context context, Intent intent) {
50 if (intent == null || ! ACTION_SET_LOCALE.equals(intent.getAction())) { [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
InstallApk.java | 27 import android.content.Intent; 75 public void onActivityResult(int requestCode, int resultCode, Intent intent) { 97 Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE); 98 intent.setData(Uri.fromFile(prepareApk("HelloActivity.apk"))); 99 startActivity(intent); 105 Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE) [all...] |
ShareContent.java | 21 import android.content.Intent; 42 Intent intent = new Intent(Intent.ACTION_SEND); 43 intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); 52 intent.setType("image/jpeg"); 53 intent.putExtra(Intent.EXTRA_STREAM, uri) [all...] |