Home
last modified time | relevance | path

Searched refs:Intent (Results 1 – 25 of 1649) sorted by relevance

12345678910>>...66

/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DIntentForwarderActivityTest.java37 import android.content.Intent;
133 any(Intent.class), nullable(String.class), anyInt(), anyInt())).thenReturn(true); in forwardToManagedProfile_canForward_sendIntent()
141 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_canForward_sendIntent()
142 intent.setAction(Intent.ACTION_SEND); in forwardToManagedProfile_canForward_sendIntent()
146 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in forwardToManagedProfile_canForward_sendIntent()
148 assertEquals(Intent.ACTION_SEND, intentCaptor.getValue().getAction()); in forwardToManagedProfile_canForward_sendIntent()
150 assertEquals(Intent.ACTION_SEND, intentCaptor.getValue().getAction()); in forwardToManagedProfile_canForward_sendIntent()
152 assertEquals(Intent.ACTION_SEND, activity.mStartActivityIntent.getAction()); in forwardToManagedProfile_canForward_sendIntent()
166 any(Intent.class), nullable(String.class), anyInt(), anyInt())).thenReturn(false); in forwardToManagedProfile_cannotForward_sendIntent()
175 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_cannotForward_sendIntent()
[all …]
/frameworks/base/core/java/com/android/internal/content/
DPackageMonitor.java22 import android.content.Intent;
46 sPackageFilt.addAction(Intent.ACTION_PACKAGE_ADDED);
47 sPackageFilt.addAction(Intent.ACTION_PACKAGE_REMOVED);
48 sPackageFilt.addAction(Intent.ACTION_PACKAGE_CHANGED);
49 sPackageFilt.addAction(Intent.ACTION_QUERY_PACKAGE_RESTART);
50 sPackageFilt.addAction(Intent.ACTION_PACKAGE_RESTARTED);
51 sPackageFilt.addAction(Intent.ACTION_PACKAGE_DATA_CLEARED);
53 sNonDataFilt.addAction(Intent.ACTION_UID_REMOVED);
54 sNonDataFilt.addAction(Intent.ACTION_USER_STOPPED);
55 sNonDataFilt.addAction(Intent.ACTION_PACKAGES_SUSPENDED);
[all …]
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/util/
DCarWizardManagerHelperTest.java21 import android.content.Intent;
45 Intent intent = new Intent(); in testGetNextIntentWithNullData()
47 Intent nextIntent = CarWizardManagerHelper.getNextIntent(intent, 1); in testGetNextIntentWithNullData()
58 Intent intent = new Intent(); in testGetNextIntentWithData()
59 Intent data = new Intent(); in testGetNextIntentWithData()
62 Intent nextIntent = CarWizardManagerHelper.getNextIntent(intent, 1, data); in testGetNextIntentWithData()
74 Intent srcIntent = new Intent(); in testCopyWizardManagerExtras()
81 Intent disIntent = new Intent(); in testCopyWizardManagerExtras()
99 Intent intent = new Intent(); in testIsSetupWizardIntentTrue()
110 Intent intent = new Intent(); in testIsSetupWizardIntentFalse()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DIccCardConstants.java19 import android.content.Intent;
28 public static final String INTENT_KEY_ICC_STATE = Intent.EXTRA_SIM_STATE;
30 public static final String INTENT_VALUE_ICC_UNKNOWN = Intent.SIM_STATE_UNKNOWN;
32 public static final String INTENT_VALUE_ICC_NOT_READY = Intent.SIM_STATE_NOT_READY;
34 public static final String INTENT_VALUE_ICC_ABSENT = Intent.SIM_STATE_ABSENT;
36 public static final String INTENT_VALUE_ICC_PRESENT = Intent.SIM_STATE_PRESENT;
38 static public final String INTENT_VALUE_ICC_CARD_IO_ERROR = Intent.SIM_STATE_CARD_IO_ERROR;
40 static public final String INTENT_VALUE_ICC_CARD_RESTRICTED = Intent.SIM_STATE_CARD_RESTRICTED;
42 public static final String INTENT_VALUE_ICC_LOCKED = Intent.SIM_STATE_LOCKED;
44 public static final String INTENT_VALUE_ICC_READY = Intent.SIM_STATE_READY;
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSomnambulator.java20 import android.content.Intent;
38 final Intent launchIntent = getIntent(); in onStart()
40 if (Intent.ACTION_CREATE_SHORTCUT.equals(action)) { in onStart()
41 Intent shortcutIntent = new Intent(this, Somnambulator.class); in onStart()
42 shortcutIntent.setFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS in onStart()
43 | Intent.FLAG_ACTIVITY_NEW_TASK); in onStart()
44 Intent resultIntent = new Intent(); in onStart()
45 resultIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, in onStart()
46 Intent.ShortcutIconResource.fromContext(this, R.mipmap.ic_launcher_dreams)); in onStart()
47 resultIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent); in onStart()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierSignalAgentTest.java30 import android.content.Intent;
81 Intent intent = new Intent(ACTION_CARRIER_SIGNAL_PCO_VALUE); in testNotifyManifestReceivers()
90 ArgumentCaptor<Intent> mCaptorIntent = ArgumentCaptor.forClass(Intent.class); in testNotifyManifestReceivers()
94 mContext.sendBroadcast(new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED)); in testNotifyManifestReceivers()
104 .when(mPackageManager).queryBroadcastReceivers((Intent) any(), anyInt()); in testNotifyManifestReceivers()
107 mCaptorIntent = ArgumentCaptor.forClass(Intent.class); in testNotifyManifestReceivers()
111 Intent capturedIntent = mCaptorIntent.getAllValues().get(1); in testNotifyManifestReceivers()
125 Intent intent = new Intent(ACTION_CARRIER_SIGNAL_PCO_VALUE); in testNotifyRuntimeReceivers()
132 ArgumentCaptor<Intent> mCaptorIntent = ArgumentCaptor.forClass(Intent.class); in testNotifyRuntimeReceivers()
136 mContext.sendBroadcast(new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED)); in testNotifyRuntimeReceivers()
[all …]
/frameworks/base/tests/ActivityViewTest/src/com/google/android/test/activityview/
DActivityViewActivity.java21 import android.content.Intent;
36 final Intent intent = new Intent(this, ActivityViewTestActivity.class); in onCreate()
37 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK); in onCreate()
42 final Intent intent = Intent.makeMainActivity(null); in onCreate()
43 final Intent chooser = Intent.createChooser(intent, in onCreate()
45 chooser.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Parcelable[] { in onCreate()
46 new Intent(Intent.ACTION_MAIN) in onCreate()
50 chooser.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK in onCreate()
51 | Intent.FLAG_ACTIVITY_MULTIPLE_TASK); in onCreate()
/frameworks/base/services/core/java/com/android/server/pm/
DInstantAppResolver.java19 import static android.content.Intent.FLAG_ACTIVITY_MATCH_EXTERNAL;
35 import android.content.Intent;
102 public static Intent sanitizeIntent(Intent origIntent) { in sanitizeIntent()
103 final Intent sanitizedIntent; in sanitizeIntent()
104 sanitizedIntent = new Intent(origIntent.getAction()); in sanitizeIntent()
127 final Intent origIntent = requestObj.origIntent; in doInstantAppResolutionPhaseOne()
128 final Intent sanitizedIntent = sanitizeIntent(origIntent); in doInstantAppResolutionPhaseOne()
182 final Intent origIntent = requestObj.origIntent; in doInstantAppResolutionPhaseTwo()
183 final Intent sanitizedIntent = sanitizeIntent(origIntent); in doInstantAppResolutionPhaseTwo()
189 final Intent failureIntent; in doInstantAppResolutionPhaseTwo()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DIntentForwarderActivity.java29 import android.content.Intent;
81 Intent intentReceived = getIntent(); in onCreate()
111 final Intent newIntent = canForward(intentReceived, targetUserId); in onCreate()
113 if (Intent.ACTION_CHOOSER.equals(newIntent.getAction())) { in onCreate()
114 Intent innerIntent = newIntent.getParcelableExtra(Intent.EXTRA_INTENT); in onCreate()
153 private boolean shouldShowDisclosure(@Nullable ResolveInfo ri, Intent intent) { in shouldShowDisclosure()
164 private boolean isTextMessageIntent(Intent intent) { in isTextMessageIntent()
165 return (Intent.ACTION_SENDTO.equals(intent.getAction()) || isViewActionIntent(intent)) in isTextMessageIntent()
169 private boolean isDialerIntent(Intent intent) { in isDialerIntent()
170 return Intent.ACTION_DIAL.equals(intent.getAction()) in isDialerIntent()
[all …]
DUnlaunchableAppActivity.java19 import static android.content.Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS;
20 import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
26 import android.content.Intent;
57 Intent intent = getIntent(); in onCreate()
59 mUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL); in onCreate()
60 mTarget = intent.getParcelableExtra(Intent.EXTRA_INTENT); in onCreate()
104 private static final Intent createBaseIntent() { in createBaseIntent()
105 Intent intent = new Intent(); in createBaseIntent()
111 public static Intent createInQuietModeDialogIntent(int userId) { in createInQuietModeDialogIntent()
112 Intent intent = createBaseIntent(); in createInQuietModeDialogIntent()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DSubActivityScreen.java21 import android.content.Intent;
49 Intent.FILL_IN_ACTION); in onCreate()
50 Intent res = new Intent(); in onCreate()
58 Intent intent = new Intent(); in onCreate()
85 setResult(RESULT_CANCELED, (new Intent()).setAction("Interrupted!")); in onResume()
95 Intent res = new Intent(); in onResume()
109 Intent data) { in onActivityResult()
122 setResult(RESULT_CANCELED, (new Intent()).setAction( in onActivityResult()
129 setResult(RESULT_CANCELED, (new Intent()).setAction( in onActivityResult()
132 setResult(RESULT_CANCELED, (new Intent()).setAction( in onActivityResult()
[all …]
DServiceTest.java21 import android.content.Intent;
190 void startExpectResult(Intent service) { in startExpectResult()
194 void startExpectResult(Intent service, Bundle bundle) { in startExpectResult()
200 getContext().startService(new Intent(service).putExtras(bundle)); in startExpectResult()
204 getContext().startService(new Intent(service).putExtras(bundle)); in startExpectResult()
222 void startExpectNoPermission(Intent service) { in startExpectNoPermission()
231 void bindExpectResult(Intent service) { in bindExpectResult()
338 void bindAutoExpectResult(Intent service) { in bindAutoExpectResult()
362 void bindExpectNoPermission(Intent service) { in bindExpectNoPermission()
377 startExpectResult(new Intent(getContext(), LocalService.class)); in testLocalStartClass()
[all …]
/frameworks/base/services/core/java/com/android/server/uri/
DUriPermission.java20 import android.content.Intent;
116 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in initPersistedModes()
117 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in initPersistedModes()
127 final boolean persistable = (modeFlags & Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION) != 0; in grantModes()
128 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in grantModes()
129 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in grantModes()
138 if ((modeFlags & Intent.FLAG_GRANT_READ_URI_PERMISSION) != 0) { in grantModes()
141 if ((modeFlags & Intent.FLAG_GRANT_WRITE_URI_PERMISSION) != 0) { in grantModes()
153 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in takePersistableModes()
154 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in takePersistableModes()
[all …]
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/
DCarWizardManagerHelper.java20 import android.content.Intent;
47 public static Intent getNextIntent(Intent originalIntent, int resultCode) { in getNextIntent()
62 public static Intent getNextIntent(Intent originalIntent, int resultCode, Intent data) { in getNextIntent()
63 Intent intent = new Intent(ACTION_NEXT); in getNextIntent()
81 public static void copyWizardManagerExtras(Intent srcIntent, Intent dstIntent) { in copyWizardManagerExtras()
98 public static boolean isSetupWizardIntent(Intent intent) { in isSetupWizardIntent()
109 public static boolean isDeferredIntent(Intent intent) { in isDeferredIntent()
120 public static boolean isDealerIntent(Intent intent) { in isDealerIntent()
/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java31 import android.content.Intent;
554 public void onEnabled(@NonNull Context context, @NonNull Intent intent) { in onEnabled()
569 @NonNull Intent intent) { in onDisableRequested()
581 public void onDisabled(@NonNull Context context, @NonNull Intent intent) { in onDisabled()
596 public void onPasswordChanged(@NonNull Context context, @NonNull Intent intent) { in onPasswordChanged()
610 public void onPasswordChanged(@NonNull Context context, @NonNull Intent intent, in onPasswordChanged()
627 public void onPasswordFailed(@NonNull Context context, @NonNull Intent intent) { in onPasswordFailed()
641 public void onPasswordFailed(@NonNull Context context, @NonNull Intent intent, in onPasswordFailed()
658 public void onPasswordSucceeded(@NonNull Context context, @NonNull Intent intent) { in onPasswordSucceeded()
672 public void onPasswordSucceeded(@NonNull Context context, @NonNull Intent intent, in onPasswordSucceeded()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DTestUtil.java21 import android.content.Intent;
39 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION); in sendNetworkStateChanged()
51 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION); in sendNetworkStateChanged()
62 Intent intent = new Intent(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in sendScanResultsAvailable()
71 Intent intent = new Intent(WifiManager.WIFI_SCAN_AVAILABLE); in sendWifiScanAvailable()
81 Intent intent = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION); in sendWifiStateChanged()
92 Intent intent = new Intent(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); in sendWifiApStateChanged()
109 Intent intent = new Intent(ConnectivityManager.ACTION_TETHER_STATE_CHANGED); in sendTetherStateChanged()
116 Intent intent = new Intent(PowerManager.ACTION_DEVICE_IDLE_MODE_CHANGED); in sendIdleModeChanged()
/frameworks/base/services/core/java/com/android/server/utils/
DAppInstallerUtil.java20 import android.content.Intent;
27 private static Intent resolveIntent(Context context, Intent i) { in resolveIntent()
29 return result != null ? new Intent(i.getAction()) in resolveIntent()
53 public static Intent createIntent(Context context, String installerPackageName, in createIntent()
55 Intent intent = new Intent(Intent.ACTION_SHOW_APP_INFO).setPackage(installerPackageName); in createIntent()
56 final Intent result = resolveIntent(context, intent); in createIntent()
58 result.putExtra(Intent.EXTRA_PACKAGE_NAME, packageName); in createIntent()
59 result.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in createIntent()
68 public static Intent createIntent(Context context, String packageName) { in createIntent()
/frameworks/base/core/java/android/app/
DTaskStackBuilder.java22 import android.content.Intent;
64 private final ArrayList<Intent> mIntents = new ArrayList<Intent>();
89 public TaskStackBuilder addNextIntent(Intent nextIntent) { in addNextIntent()
106 public TaskStackBuilder addNextIntentWithParentStack(Intent nextIntent) { in addNextIntentWithParentStack()
129 final Intent parent = sourceActivity.getParentActivityIntent(); in addParentStack()
174 final Intent parent = parentActivity == null && insertAt == 0 in addParentStack()
175 ? Intent.makeMainActivity(target) in addParentStack()
176 : new Intent().setComponent(target); in addParentStack()
201 public Intent editIntentAt(int index) { in editIntentAt()
300 public Intent[] getIntents() { in getIntents()
[all …]
/frameworks/base/telephony/common/com/android/internal/telephony/
DPackageChangeReceiver.java23 import android.content.Intent;
39 sPackageIntentFilter.addAction(Intent.ACTION_PACKAGE_ADDED);
40 sPackageIntentFilter.addAction(Intent.ACTION_PACKAGE_REMOVED);
41 sPackageIntentFilter.addAction(Intent.ACTION_PACKAGE_CHANGED);
42 sPackageIntentFilter.addAction(Intent.ACTION_QUERY_PACKAGE_RESTART);
43 sPackageIntentFilter.addAction(Intent.ACTION_PACKAGE_RESTARTED);
130 public void onReceive(@Nullable Context context, @Nullable Intent intent) { in onReceive()
133 if (Intent.ACTION_PACKAGE_ADDED.equals(action)) { in onReceive()
136 if (intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) { in onReceive()
144 } else if (Intent.ACTION_PACKAGE_REMOVED.equals(action)) { in onReceive()
[all …]
/frameworks/base/test-mock/src/android/test/mock/
DMockContext.java26 import android.content.Intent;
317 public void startActivity(Intent intent) { in startActivity()
322 public void startActivity(Intent intent, Bundle options) { in startActivity()
327 public void startActivities(Intent[] intents) { in startActivities()
332 public void startActivities(Intent[] intents, Bundle options) { in startActivities()
338 Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags) in startIntentSender()
345 Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, in startIntentSender()
351 public void sendBroadcast(Intent intent) { in sendBroadcast()
356 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast()
362 public void sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions) { in sendBroadcastMultiplePermissions()
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DWizardManagerHelperTest.java26 import android.content.Intent;
49 final Intent intent = new Intent("test.intent.ACTION"); in testGetNextIntent()
55 final Intent data = new Intent(); in testGetNextIntent()
58 final Intent nextIntent = WizardManagerHelper.getNextIntent(intent, Activity.RESULT_OK, data); in testGetNextIntent()
84 final Intent intent = new Intent(); in testIsSetupWizardTrue()
93 final Intent intent = new Intent(); in testIsDeferredSetupTrue()
102 final Intent intent = new Intent(); in testIsPreDeferredSetupTrue()
111 final Intent intent = new Intent(); in testIsSetupWizardFalse()
126 Intent intent = new Intent(); in isLightTheme_shouldReturnTrue_whenThemeIsLight()
149 Intent intent = new Intent(); in isLightTheme_shouldReturnFalse_whenThemeIsNotLight()
[all …]
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DActivityTestMain.java29 import android.content.Intent;
88 Intent intent = new Intent(ActivityTestMain.this, SpamActivity.class);
99 Intent intent = new Intent(ActivityTestMain.this, AlarmSpamReceiver.class);
108 Intent intent = new Intent(ActivityTestMain.this, SlowReceiver.class);
122 Intent intent = new Intent(ActivityTestMain.this, SlowReceiver.class);
143 Intent intent = new Intent(ActivityTestMain.this, SlowReceiver.class);
152 intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
163 public void onReceive(Context context, Intent intent) {
174 public void onReceive(Context context, Intent intent) { in onReceive()
230 Intent intent = new Intent(ActivityTestMain.this, SingleUserService.class); in onCreateOptionsMenu()
[all …]
/frameworks/base/services/core/java/com/android/server/job/controllers/idle/
DDeviceIdlenessTracker.java24 import android.content.Intent;
79 filter.addAction(Intent.ACTION_SCREEN_ON); in startTracking()
80 filter.addAction(Intent.ACTION_SCREEN_OFF); in startTracking()
83 filter.addAction(Intent.ACTION_DREAMING_STARTED); in startTracking()
84 filter.addAction(Intent.ACTION_DREAMING_STOPPED); in startTracking()
90 filter.addAction(Intent.ACTION_DOCK_IDLE); in startTracking()
91 filter.addAction(Intent.ACTION_DOCK_ACTIVE); in startTracking()
104 public void onReceive(Context context, Intent intent) { in onReceive()
106 if (action.equals(Intent.ACTION_SCREEN_ON) in onReceive()
107 || action.equals(Intent.ACTION_DREAMING_STOPPED) in onReceive()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DRecordingService.java28 import android.content.Intent;
106 public static Intent getStartIntent(Context context, int resultCode, Intent data, in getStartIntent()
108 return new Intent(context, RecordingService.class) in getStartIntent()
117 public int onStartCommand(Intent intent, int flags, int startId) { in onStartCommand()
132 Intent data = intent.getParcelableExtra(EXTRA_DATA); in onStartCommand()
153 sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)); in onStartCommand()
174 Intent shareIntent = new Intent(Intent.ACTION_SEND) in onStartCommand()
176 .putExtra(Intent.EXTRA_STREAM, shareUri); in onStartCommand()
180 sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)); in onStartCommand()
185 startActivity(Intent.createChooser(shareIntent, shareLabel) in onStartCommand()
[all …]
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBroadcastInterceptingContext.java22 import android.content.Intent;
46 public abstract class FutureIntent extends FutureTask<Intent> {
71 public boolean dispatchBroadcast(Intent intent) { in dispatchBroadcast()
87 public Intent get() throws InterruptedException, ExecutionException { in get()
104 final Intent intent = get(timeout, unit); in assertNotReceived()
128 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver()
136 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver()
155 public void sendBroadcast(Intent intent) { in sendBroadcast()
168 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast()
173 public void sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions) { in sendBroadcastMultiplePermissions()
[all …]

12345678910>>...66