/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/ |
D | SendTestMessages.java | 20 import android.app.Activity; 432 private static void sendBroadcast(Activity activity, int serialNumber, int category, in sendBroadcast() 438 AppOpsManager.OP_RECEIVE_SMS, null, null, Activity.RESULT_OK, null, null); in sendBroadcast() 441 public static void testSendMessage7bit(Activity activity, int serialNumber, in testSendMessage7bit() 446 public static void testSendMessage7bitUmts(Activity activity, int serialNumber, in testSendMessage7bitUmts() 451 public static void testSendMessage7bitNoPadding(Activity activity, int serialNumber, in testSendMessage7bitNoPadding() 456 public static void testSendMessage7bitNoPaddingUmts(Activity activity, int serialNumber, in testSendMessage7bitNoPaddingUmts() 461 public static void testSendMessage7bitMultipageGsm(Activity activity, int serialNumber, in testSendMessage7bitMultipageGsm() 470 AppOpsManager.OP_RECEIVE_SMS, null, null, Activity.RESULT_OK, null, null); in testSendMessage7bitMultipageGsm() 473 public static void testSendMessage7bitMultipageUmts(Activity activity, int serialNumber, in testSendMessage7bitMultipageUmts() [all …]
|
D | SendCdmaCmasMessages.java | 20 import android.app.Activity; 54 private static void sendBroadcast(Activity activity, SmsCbMessage cbMessage) { in sendBroadcast() 60 AppOpsManager.OP_RECEIVE_EMERGECY_SMS, null, null, Activity.RESULT_OK, null, null); in sendBroadcast() 63 public static void testSendCmasPresAlert(Activity activity, int messageId) { in testSendCmasPresAlert() 73 public static void testSendCmasExtremeAlert(Activity activity, int messageId) { in testSendCmasExtremeAlert() 83 public static void testSendCmasSevereAlert(Activity activity, int messageId) { in testSendCmasSevereAlert() 93 public static void testSendCmasAmberAlert(Activity activity, int messageId) { in testSendCmasAmberAlert() 103 public static void testSendCmasMonthlyTest(Activity activity, int messageId) { in testSendCmasMonthlyTest()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/ |
D | Snackbars.java | 20 import android.app.Activity; 32 public static final void showDocumentsClipped(Activity activity, int docCount) { in showDocumentsClipped() 38 public static final void showMove(Activity activity, int docCount) { in showMove() 43 public static final void showCopy(Activity activity, int docCount) { in showCopy() 48 public static final void showCompress(Activity activity, int docCount) { in showCompress() 53 public static final void showExtract(Activity activity, int docCount) { in showExtract() 58 public static final void showDelete(Activity activity, int docCount) { in showDelete() 63 public static final void showOperationRejected(Activity activity) { in showOperationRejected() 67 public static final void showOperationFailed(Activity activity) { in showOperationFailed() 71 public static final void showRenameFailed(Activity activity) { in showRenameFailed() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ |
D | TestInstrumentationRunner.java | 19 import android.app.Activity; 46 Class<? extends Activity> newActivity) { in registerReplacedActivity() 56 public Activity newActivity(ClassLoader cl, String className, Intent intent) in newActivity() 72 public void onActivityCreated(Activity activity, Bundle bundle) { in newApplication() 81 public void onActivityStarted(Activity activity) {} in newApplication() 84 public void onActivityResumed(Activity activity) {} in newApplication() 87 public void onActivityPaused(Activity activity) {} in newApplication() 90 public void onActivityStopped(Activity activity) {} in newApplication() 93 public void onActivitySaveInstanceState(Activity activity, Bundle bundle) {} in newApplication() 96 public void onActivityDestroyed(Activity activity) {} in newApplication() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | MenuHelper.java | 19 import android.app.Activity; 80 private static void startCameraActivity(Activity activity, Intent intent, in startCameraActivity() 99 public static void gotoMode(int mode, Activity activity) { in gotoMode() 121 public static void gotoVideoMode(Activity activity, boolean resetEffect) { in gotoVideoMode() 127 public static void gotoCameraMode(Activity activity) { in gotoCameraMode() 132 public static void gotoVideoMode(Activity activity, Intent intent) { in gotoVideoMode() 136 public static void gotoCameraMode(Activity activity, Intent intent) { in gotoCameraMode() 140 public static void gotoCameraImageGallery(Activity activity) { in gotoCameraImageGallery() 144 public static void gotoCameraVideoGallery(Activity activity) { in gotoCameraVideoGallery() 148 private static void gotoGallery(Activity activity, int windowTitleId, in gotoGallery()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | MenuHelper.java | 21 import android.app.Activity; 219 private static void setLatLngDetails(final View d, Activity context, in setLatLngDetails() 262 final Activity activity) { in onShowMapClicked() 315 Activity activity) { in showExifInformation() 368 final Activity activity) { in onDetailsClicked() 488 final Activity activity) { in onCropClicked() 507 final Activity activity) { in onSetAsClicked() 524 final Activity activity) { in onImageShareClicked() 553 final Activity activity) { in onViewPlayClicked() 567 final Activity activity, final Runnable onDelete) { in onDeleteClicked() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrUiHelper.java | 20 import android.app.Activity; 96 public static void checkStorageStatusAndShowErrorMessage(Activity activity, String inputId, in checkStorageStatusAndShowErrorMessage() 118 public static void showScheduleDialog(Activity activity, Program program, in showScheduleDialog() 133 public static void showChannelRecordDurationOptions(Activity activity, Channel channel) { in showChannelRecordDurationOptions() 145 public static void showScheduleConflictDialog(Activity activity, Program program) { in showScheduleConflictDialog() 188 public static void showDvrNoFreeSpaceErrorDialog(Activity activity, in showDvrNoFreeSpaceErrorDialog() 208 private static void showDvrMissingStorageErrorDialog(Activity activity) { in showDvrMissingStorageErrorDialog() 215 public static void showDvrSmallSizedStorageErrorDialog(Activity activity) { in showDvrSmallSizedStorageErrorDialog() 222 public static void showStopRecordingDialog(Activity activity, long channelId, int reason, in showStopRecordingDialog() 235 public static void showAlreadyScheduleDialog(Activity activity, Program program) { in showAlreadyScheduleDialog() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/ |
D | LauncherActivityRule.java | 18 import android.app.Activity; 104 public void onActivityCreated(Activity activity, Bundle bundle) { 111 public void onActivityStarted(Activity activity) { } 114 public void onActivityResumed(Activity activity) { } 117 public void onActivityPaused(Activity activity) { } 120 public void onActivityStopped(Activity activity) { } 123 public void onActivitySaveInstanceState(Activity activity, Bundle bundle) { } 126 public void onActivityDestroyed(Activity activity) {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/survey/ |
D | SurveyMixinTest.java | 12 import android.app.Activity; 66 Activity temp = Robolectric.setupActivity(Activity.class); in onResume_triesRegisteringReceiverAndDownloadingWhenNoSurveyDetected() 85 Activity temp = Robolectric.setupActivity(Activity.class); in onResume_triesShowingSurveyWhenOneIsPresent() 116 Activity temp = Robolectric.setupActivity(Activity.class); in onPause_removesReceiverIfPreviouslySet() 137 Activity temp = Robolectric.setupActivity(Activity.class); in onPause_doesNothingWhenActivityOrReceiverNull()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | LastAccessedStorage.java | 19 import android.app.Activity; 43 Activity activity, ProvidersAccess providers, State state); in getLastAccessed() 45 void setLastAccessed(Activity activity, DocumentStack stack); in setLastAccessed() 47 void setLastAccessedToExternalApp(Activity activity); in setLastAccessedToExternalApp() 61 Activity activity, ProvidersAccess providers, State state) { in getLastAccessed() 79 public void setLastAccessed(Activity activity, DocumentStack stack) { in setLastAccessed() 85 public void setLastAccessedToExternalApp(Activity activity) { in setLastAccessedToExternalApp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | ChooseLockSettingsHelperTest.java | 12 import android.app.Activity; 50 final Activity activity = Robolectric.setupActivity(Activity.class); in testLaunchConfirmationActivityWithExternalAndChallenge() 94 final Activity activity = Robolectric.setupActivity(Activity.class); in testLaunchConfirmationActivityInternalAndChallenge() 134 Activity activity = Robolectric.buildActivity(Activity.class) in testLaunchConfirmationActivity_internal_shouldPropagateTheme() 148 private ChooseLockSettingsHelper getChooseLockSettingsHelper(Activity activity) { in getChooseLockSettingsHelper()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/ |
D | ActionHandlerTest.java | 24 import android.app.Activity; 226 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination() 252 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testPickDocument_SetsCorrectResultAndFinishes_ActionOpenTree() 282 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testSaveDocument_SetsCorrectResultAndFinishes() 322 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent() 349 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent_MultipleSelection() 374 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionOpen() 401 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionOpen_MultipleSelection() 426 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionCreate() 440 mHandler.onActivityResult(AbstractActionHandler.CODE_FORWARD, Activity.RESULT_OK, intent); in testOnAppPickedResult_OnOK() [all …]
|
/packages/apps/Settings/tests/app/src/com/android/settings/password/ |
D | ChooseLockGenericTest.java | 24 import android.app.Activity; 95 final Activity activity = getCurrentActivity(); in testConfirmLockPasswordShown_deviceWithPassword() 114 final Activity activity = getCurrentActivity(); in testConfirmLockPasswordShown_deviceWithPassword_phishingAttack() 133 private Activity getCurrentActivity() throws Throwable { in getCurrentActivity() 135 final Activity[] activity = new Activity[1]; in getCurrentActivity() 137 Collection<Activity> activities = ActivityLifecycleMonitorRegistry.getInstance() in getCurrentActivity() 224 private boolean isSecureWindow(Activity activity) { in isSecureWindow()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | DictionarySettingsFragment.java | 21 import android.app.Activity; 99 final Activity activity = getActivity(); in onActivityCreated() 138 final Activity activity = getActivity(); in onResume() 163 final Activity activity = getActivity(); in onPause() 191 final Activity activity = getActivity(); in wordListDownloadFinished() 233 final Activity activity = getActivity(); in refreshInterface() 256 … private static Preference createErrorMessage(final Activity activity, final int messageResource) { in createErrorMessage() 292 final Activity activity = getActivity(); in createInstalledDictSettingsCollection() 380 final Activity activity = getActivity(); in startRefresh() 416 final Activity activity = getActivity(); in stopLoadingAnimation()
|
/packages/apps/TV/src/com/android/tv/ |
D | LauncherActivity.java | 19 import android.app.Activity; 35 public class LauncherActivity extends Activity { 51 public static void startActivitySafe(Activity baseActivity, Intent intentToLaunch) { in startActivitySafe() 63 public static void startActivityForResultSafe(Activity baseActivity, Intent intentToLaunch, in startActivityForResultSafe() 96 setResult(Activity.RESULT_OK); in onCreate() 103 setResult(Activity.RESULT_CANCELED, intent); in onCreate()
|
/packages/apps/Camera2/tests/src/com/android/camera/functional/ |
D | CameraTest.java | 21 import android.app.Activity; 62 ArrayList<WeakReference<Activity>> refs = in checkActivityLeak() 63 new ArrayList<WeakReference<Activity>>(); in checkActivityLeak() 65 Activity activity = getInstrumentation().startActivitySync(intent); in checkActivityLeak() 66 refs.add(new WeakReference<Activity>(activity)); in checkActivityLeak() 75 for (WeakReference<Activity> c: refs) { in checkActivityLeak()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/ |
D | PreProvisioningActivityTest.java | 33 import android.app.Activity; 89 Activity activity = mActivityRule.launchActivity( in profileOwnerDefaultColors() 99 Activity activity = mActivityRule.launchActivity( in profileOwnerCustomColors() 109 Activity activity = mActivityRule.launchActivity( in deviceOwnerDefaultColorsAndLogo() 120 Activity activity = mActivityRule.launchActivity( in deviceOwnerCustomColor() 132 Activity activity = mActivityRule.launchActivity( in deviceOwnerCustomLogo() 141 Activity activity = mActivityRule.launchActivity( in profileOwnerWholeLayoutIsAdjusted()
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/ |
D | CameraTest.java | 23 import android.app.Activity; 67 ArrayList<WeakReference<Activity>> refs = in checkActivityLeak() 68 new ArrayList<WeakReference<Activity>>(); in checkActivityLeak() 70 Activity activity = getInstrumentation().startActivitySync(intent); in checkActivityLeak() 71 refs.add(new WeakReference<Activity>(activity)); in checkActivityLeak() 80 for (WeakReference<Activity> c: refs) { in checkActivityLeak()
|
D | ImageCaptureIntentTest.java | 22 import android.app.Activity; 64 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testNoExtraOutput() 88 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testExtraOutput() 117 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testRetake() 133 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode()); in testCancel() 145 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode()); in testSnapshotCancel()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | ManageCachePage.java | 19 import android.app.Activity; 222 FrameLayout layout = (FrameLayout) ((Activity) mActivity).findViewById(R.id.footer); in onConfigurationChanged() 242 FrameLayout layout = (FrameLayout) ((Activity) mActivity).findViewById(R.id.footer); in onPause() 266 FrameLayout layout = (FrameLayout) ((Activity) mActivity).findViewById(R.id.footer); in onResume() 286 Activity activity = mActivity; in initializeViews() 317 Activity activity = mActivity; in initializeFooterViews() 349 Activity activity = mActivity; in showToast() 358 Activity activity = mActivity; in showToastForLocalAlbum() 373 Activity activity = mActivity; in refreshCacheStorageInfo()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ChangeDefaultSmsAppHelper.java | 19 import android.app.Activity; 53 final Activity activity, final Fragment fragment) { in warnOfMissingActionConditions() 83 final Activity activity) { in promptToChangeDefaultSmsApp() 106 private final Activity mActivity; 109 public ChangeSmsAppSettingRunnable(final Activity activity, final Fragment fragment) { in ChangeSmsAppSettingRunnable() 141 if (resultCode == Activity.RESULT_OK) { in handleChangeDefaultSmsResult()
|
D | UiUtils.java | 19 import android.app.Activity; 253 public static void setStatusBarColor(final Activity activity, final int color) { in setStatusBarColor() 266 public static void lockOrientation(final Activity activity) { in lockOrientation() 290 public static void unlockOrientation(final Activity activity) { in unlockOrientation() 311 public static boolean redirectToPermissionCheckIfNeeded(final Activity activity) { in redirectToPermissionCheckIfNeeded() 408 public static Activity getActivity(final View view) { in getActivity() 420 public static Activity getActivity(final Context context) { in getActivity() 424 if (context instanceof Activity) { in getActivity() 425 return (Activity) context; in getActivity()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | AccountSelectionUtil.java | 19 import android.app.Activity; 57 final private Activity mActivity; 63 public AccountSelectedListener(Activity activity, List<AccountWithDataSet> accountList, in AccountSelectedListener() 74 public AccountSelectedListener(Activity activity, List<AccountWithDataSet> accountList, in AccountSelectedListener() 91 public static Dialog getSelectAccountDialog(Activity activity, int resId, in getSelectAccountDialog() 157 public static void doImport(Activity activity, int resId, AccountWithDataSet account, in doImport() 180 public static void doImportFromVcfFile(Activity activity, AccountWithDataSet account) { in doImportFromVcfFile()
|
/packages/apps/Settings/src/com/android/settings/overlay/ |
D | SurveyFeatureProvider.java | 18 import android.app.Activity; 37 void downloadSurvey(Activity activity, String surveyId, @Nullable String data); in downloadSurvey() 46 boolean showSurveyIfAvailable(Activity activity, String surveyId); in showSurveyIfAvailable() 78 BroadcastReceiver createAndRegisterReceiver(Activity activity); in createAndRegisterReceiver() 85 static void unregisterReceiver(Activity activity, BroadcastReceiver receiver) { in unregisterReceiver()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | EntityHeaderController.java | 22 import android.app.Activity; 75 private final Activity mActivity; 104 public static EntityHeaderController newInstance(Activity activity, Fragment fragment, in newInstance() 109 private EntityHeaderController(Activity activity, Fragment fragment, View header) { in EntityHeaderController() 214 public LayoutPreference done(Activity activity, Context uiContext) { in done() 226 public View done(Activity activity, boolean rebindActions) { in done() 285 public EntityHeaderController styleActionBar(Activity activity) { in styleActionBar() 309 View done(Activity activity) { in done()
|