/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/ |
D | ComposeActivityTest.java | 102 public void setAccount(ComposeActivity activity, String accountName) { in setAccount() argument 104 final Account account = getAccountForName(activity, accountName); in setAccount() 107 activity.setAccount(mAccount); in setAccount() 131 final ComposeActivity activity = getActivity(); in testRecipientsRefReplyAllCustomFromReplyTo() local 132 setAccount(activity, "account3@mockuiprovider.com"); in testRecipientsRefReplyAllCustomFromReplyTo() 133 final Message refMessage = getRefMessage(activity.getContentResolver()); in testRecipientsRefReplyAllCustomFromReplyTo() 151 activity.mFromSpinner = new FromAddressSpinner(activity); in testRecipientsRefReplyAllCustomFromReplyTo() 152 activity.mFromSpinner.setCurrentAccount(currentAccount); in testRecipientsRefReplyAllCustomFromReplyTo() 153 activity.mFromSpinner.initialize(ComposeActivity.REPLY_ALL, in testRecipientsRefReplyAllCustomFromReplyTo() 156 activity.initReplyRecipients(refMessage, ComposeActivity.REPLY_ALL); in testRecipientsRefReplyAllCustomFromReplyTo() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/ |
D | VoicemailChangePinActivity.java | 117 public void onEnter(VoicemailChangePinActivity activity) { in onEnter() argument 118 activity.setHeader(R.string.change_pin_enter_old_pin_header); in onEnter() 119 activity.hintText.setText(R.string.change_pin_enter_old_pin_hint); in onEnter() 120 activity.nextButton.setText(R.string.change_pin_continue_label); in onEnter() 121 activity.errorText.setText(null); in onEnter() 125 public void onInputChanged(VoicemailChangePinActivity activity) { in onInputChanged() argument 126 activity.setNextEnabled(activity.getCurrentPasswordInput().length() > 0); in onInputChanged() 130 public void handleNext(VoicemailChangePinActivity activity) { in handleNext() argument 131 activity.oldPin = activity.getCurrentPasswordInput(); in handleNext() 132 activity.verifyOldPin(); in handleNext() [all …]
|
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/ |
D | SendTestMessages.java | 432 private static void sendBroadcast(Activity activity, int serialNumber, int category, in sendBroadcast() argument 435 intent.putExtra("message", createFromPdu(activity, pdu, serialNumber, category)); in sendBroadcast() 437 activity.sendOrderedBroadcastAsUser(intent, UserHandle.ALL, Manifest.permission.RECEIVE_SMS, in sendBroadcast() 441 public static void testSendMessage7bit(Activity activity, int serialNumber, in testSendMessage7bit() argument 443 sendBroadcast(activity, serialNumber, category, gsm7BitTest); in testSendMessage7bit() 446 public static void testSendMessage7bitUmts(Activity activity, int serialNumber, in testSendMessage7bitUmts() argument 448 sendBroadcast(activity, serialNumber, category, gsm7BitTestUmts); in testSendMessage7bitUmts() 451 public static void testSendMessage7bitNoPadding(Activity activity, int serialNumber, in testSendMessage7bitNoPadding() argument 453 sendBroadcast(activity, serialNumber, category, gsm7BitTestNoPadding); in testSendMessage7bitNoPadding() 456 public static void testSendMessage7bitNoPaddingUmts(Activity activity, int serialNumber, in testSendMessage7bitNoPaddingUmts() argument [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/ |
D | Snackbars.java | 37 public static final void showDocumentsClipped(Activity activity, int docCount) { in showDocumentsClipped() argument 39 activity, R.plurals.clipboard_files_clipped, docCount); in showDocumentsClipped() 40 Snackbars.makeSnackbar(activity, msg, Snackbar.LENGTH_SHORT).show(); in showDocumentsClipped() 43 public static final void showMove(Activity activity, int docCount) { in showMove() argument 44 CharSequence message = Shared.getQuantityString(activity, R.plurals.move_begin, docCount); in showMove() 45 makeSnackbar(activity, message, Snackbar.LENGTH_SHORT).show(); in showMove() 48 public static final void showCopy(Activity activity, int docCount) { in showCopy() argument 49 CharSequence message = Shared.getQuantityString(activity, R.plurals.copy_begin, docCount); in showCopy() 50 makeSnackbar(activity, message, Snackbar.LENGTH_SHORT).show(); in showCopy() 53 public static final void showCompress(Activity activity, int docCount) { in showCompress() argument [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrUiHelper.java | 98 Activity activity, String inputId, Runnable recordingRequestRunnable) { in checkStorageStatusAndShowErrorMessage() argument 100 switch (TvSingletons.getSingletons(activity) in checkStorageStatusAndShowErrorMessage() 104 showDvrSmallSizedStorageErrorDialog(activity); in checkStorageStatusAndShowErrorMessage() 107 showDvrMissingStorageErrorDialog(activity); in checkStorageStatusAndShowErrorMessage() 110 showDvrNoFreeSpaceErrorDialog(activity, recordingRequestRunnable); in checkStorageStatusAndShowErrorMessage() 120 Activity activity, Program program, boolean addCurrentProgramToSeries) { in showScheduleDialog() argument 128 showDialogFragment(activity, new DvrScheduleDialogFragment(), args, true, true); in showScheduleDialog() 132 public static void showChannelRecordDurationOptions(Activity activity, Channel channel) { in showChannelRecordDurationOptions() argument 138 showDialogFragment(activity, new DvrChannelRecordDurationOptionDialogFragment(), args); in showChannelRecordDurationOptions() 142 public static void showScheduleConflictDialog(Activity activity, Program program) { in showScheduleConflictDialog() argument [all …]
|
/packages/apps/Dialer/java/com/android/dialer/main/impl/ |
D | OldMainActivityPeer.java | 155 private final TransactionSafeActivity activity; field in OldMainActivityPeer 228 public OldMainActivityPeer(TransactionSafeActivity activity) { in OldMainActivityPeer() argument 229 this.activity = activity; in OldMainActivityPeer() 236 activity.setContentView(R.layout.main_activity); in onActivityCreate() 239 SmartDialPrefix.initializeNanpSettings(activity); in onActivityCreate() 244 @Theme.Type int theme = ThemeComponent.get(activity).theme().getTheme(); in setTheme() 247 activity.setTheme(R.style.MainActivityTheme_Dark); in setTheme() 251 activity.setTheme(R.style.MainActivityTheme); in setTheme() 261 DialerExecutorComponent.get(activity) in initUiListeners() 262 .createUiListener(activity.getFragmentManager(), "Query last phone number"); in initUiListeners() [all …]
|
D | MainSearchController.java | 82 private final TransactionSafeActivity activity; field in MainSearchController 106 TransactionSafeActivity activity, in MainSearchController() argument 112 this.activity = activity; in MainSearchController() 120 (DialpadFragment) activity.getFragmentManager().findFragmentByTag(DIALPAD_FRAGMENT_TAG); in MainSearchController() 122 (NewSearchFragment) activity.getFragmentManager().findFragmentByTag(SEARCH_FRAGMENT_TAG); in MainSearchController() 152 Logger.get(activity).logScreenView(ScreenEvent.Type.MAIN_DIALPAD, activity); in showDialpad() 159 activity.setTitle(R.string.dialpad_activity_title); in showDialpad() 161 FragmentTransaction transaction = activity.getFragmentManager().beginTransaction(); in showDialpad() 221 activity.setTitle(R.string.main_activity_label); in hideDialpad() 232 if (activity.isSafeToCommitTransactions() in hideDialpad() [all …]
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/ |
D | LauncherActivityControllerHelper.java | 96 public void onTransitionCancelled(Launcher activity, boolean activityVisible) { in onTransitionCancelled() argument 97 LauncherState startState = activity.getStateManager().getRestState(); in onTransitionCancelled() 98 activity.getStateManager().goToState(startState, activityVisible); in onTransitionCancelled() 102 public void onSwipeUpToRecentsComplete(Launcher activity) { in onSwipeUpToRecentsComplete() argument 104 activity.getStateManager().reapplyState(); in onSwipeUpToRecentsComplete() 105 DiscoveryBounce.showForOverviewIfNeeded(activity); in onSwipeUpToRecentsComplete() 109 public void onSwipeUpToHomeComplete(Launcher activity) { in onSwipeUpToHomeComplete() argument 112 activity.getStateManager().reapplyState(); in onSwipeUpToHomeComplete() 125 public HomeAnimationFactory prepareHomeUI(Launcher activity) { in prepareHomeUI() argument 126 final DeviceProfile dp = activity.getDeviceProfile(); in prepareHomeUI() [all …]
|
D | TaskSystemShortcut.java | 83 BaseDraggingActivity activity, ItemInfo itemInfo) { in getOnClickListener() argument 87 public View.OnClickListener getOnClickListener(BaseDraggingActivity activity, TaskView view) { in getOnClickListener() argument 95 dummyInfo.title = TaskUtils.getTitle(activity, task); in getOnClickListener() 97 return getOnClickListenerForTask(activity, task, dummyInfo); in getOnClickListener() 101 BaseDraggingActivity activity, Task task, ItemInfo dummyInfo) { in getOnClickListenerForTask() argument 102 return mSystemShortcut.getOnClickListener(activity, dummyInfo); in getOnClickListenerForTask() 120 protected abstract boolean isAvailable(BaseDraggingActivity activity, int displayId); in isAvailable() argument 121 protected abstract ActivityOptions makeLaunchOptions(Activity activity); in makeLaunchOptions() argument 122 protected abstract boolean onActivityStarted(BaseDraggingActivity activity); in onActivityStarted() argument 126 BaseDraggingActivity activity, TaskView taskView) { in getOnClickListener() argument [all …]
|
D | FallbackActivityControllerHelper.java | 57 public void onTransitionCancelled(RecentsActivity activity, boolean activityVisible) { in onTransitionCancelled() argument 75 public void onSwipeUpToRecentsComplete(RecentsActivity activity) { in onSwipeUpToRecentsComplete() argument 76 RecentsView recentsView = activity.getOverviewPanel(); in onSwipeUpToRecentsComplete() 88 public HomeAnimationFactory prepareHomeUI(RecentsActivity activity) { in prepareHomeUI() argument 89 RecentsView recentsView = activity.getOverviewPanel(); in prepareHomeUI() 119 public AnimationFactory prepareRecentsUI(RecentsActivity activity, boolean activityVisible, 125 FallbackRecentsView rv = activity.getOverviewPanel(); 144 activity.getDeviceProfile(), activity, new Rect())); 190 RecentsActivity activity = getCreatedActivity(); 191 if (activity != null && activity.hasWindowFocus()) { [all …]
|
/packages/apps/Dialer/java/com/android/dialer/postcall/ |
D | PostCall.java | 54 public static void promptUserForMessageIfNecessary(Activity activity, View rootView) { in promptUserForMessageIfNecessary() argument 55 if (isEnabled(activity)) { in promptUserForMessageIfNecessary() 56 if (shouldPromptUserToViewSentMessage(activity)) { in promptUserForMessageIfNecessary() 57 promptUserToViewSentMessage(activity, rootView); in promptUserForMessageIfNecessary() 58 } else if (shouldPromptUserToSendMessage(activity)) { in promptUserForMessageIfNecessary() 59 promptUserToSendMessage(activity, rootView); in promptUserForMessageIfNecessary() 61 clear(activity); in promptUserForMessageIfNecessary() 73 private static void promptUserToSendMessage(Activity activity, View rootView) { in promptUserToSendMessage() argument 75 String message = activity.getString(R.string.post_call_message); in promptUserToSendMessage() 76 EnrichedCallManager manager = EnrichedCallComponent.get(activity).getEnrichedCallManager(); in promptUserToSendMessage() [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | MenuHelper.java | 262 final Activity activity) { in onShowMapClicked() argument 282 Toast.makeText(activity, in onShowMapClicked() 296 activity.startActivity(new Intent( in onShowMapClicked() 315 Activity activity) { in showExifInformation() argument 343 setLatLngDetails(d, activity, exif); in showExifInformation() 368 final Activity activity) { in onDetailsClicked() argument 376 new AlertDialog.Builder(activity); in onDetailsClicked() 378 final View d = View.inflate(activity, R.layout.detailsview, in onDetailsClicked() 392 : Formatter.formatFileSize(activity, length); in onDetailsClicked() 419 activity.getString(R.string.details_dimension_x), in onDetailsClicked() [all …]
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/view/ |
D | ViewInfoActivityTest.java | 87 ViewInfoActivity activity = startViewInfoActivity(); in testInitialState() local 89 assertThat(activity.getFragments()).isEmpty(); in testInitialState() 90 assertThat(activity.findViewById(R.id.name_and_dob_linear_layout).getVisibility()) in testInitialState() 92 assertThat(activity.getTabLayout().getVisibility()).isEqualTo(View.GONE); in testInitialState() 94 ViewFlipper viewFlipper = (ViewFlipper) activity.findViewById(R.id.view_flipper); in testInitialState() 95 int noInfoIndex = viewFlipper.indexOfChild(activity.findViewById(R.id.no_info)); in testInitialState() 105 ViewInfoActivity activity = startViewInfoActivity(); in testNameSet() local 107 assertThat(activity.getFragments()).isEmpty(); in testNameSet() 108 assertThat(activity.getTabLayout().getVisibility()).isEqualTo(View.GONE); in testNameSet() 109 assertThat(activity.findViewById(R.id.no_info).getVisibility()) in testNameSet() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | MenuHelper.java | 80 private static void startCameraActivity(Activity activity, Intent intent, in startCameraActivity() argument 84 intent.setClassName(activity.getPackageName(), className); in startCameraActivity() 91 activity.startActivity(intent); in startCameraActivity() 94 activity.startActivity(intent); in startCameraActivity() 96 activity.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); in startCameraActivity() 99 public static void gotoMode(int mode, Activity activity) { in gotoMode() argument 118 startCameraActivity(activity, new Intent(action), className); in gotoMode() 121 public static void gotoVideoMode(Activity activity, boolean resetEffect) { in gotoVideoMode() argument 124 startCameraActivity(activity, intent, VIDEO_CAMERA_CLASS); in gotoVideoMode() 127 public static void gotoCameraMode(Activity activity) { in gotoCameraMode() argument [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/drawer/ |
D | DrawerItem.java | 112 protected DrawerItem(ControllableActivity activity, Folder folder, in DrawerItem() argument 114 mActivity = activity; in DrawerItem() 118 mInflater = LayoutInflater.from(activity.getActivityContext()); in DrawerItem() 130 public static DrawerItem ofFolder(ControllableActivity activity, Folder folder, in ofFolder() argument 132 return new FolderDrawerItem(activity, folder, itemCategory); in ofFolder() 143 public static DrawerItem ofAccount(ControllableActivity activity, Account account, in ofAccount() argument 146 return new AccountDrawerItem(activity, account, unreadCount, isCurrentAccount, cache, in ofAccount() 157 public static DrawerItem ofHeader(ControllableActivity activity, int resource) { in ofHeader() argument 158 return new HeaderDrawerItem(activity, resource); in ofHeader() 161 public static DrawerItem ofBlankHeader(ControllableActivity activity) { in ofBlankHeader() argument [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | DictionarySettingsFragment.java | 99 final Activity activity = getActivity(); in onActivityCreated() local 100 mClientId = activity.getIntent().getStringExtra(DICT_SETTINGS_FRAGMENT_CLIENT_ID_ARGUMENT); in onActivityCreated() 102 (ConnectivityManager)activity.getSystemService(Context.CONNECTIVITY_SERVICE); in onActivityCreated() 138 final Activity activity = getActivity(); in onResume() local 147 if (!MetadataDbHelper.isClientKnown(activity, mClientId)) { in onResume() 154 activity.sendBroadcast(unknownClientBroadcast); in onResume() 163 final Activity activity = getActivity(); in onPause() local 165 activity.unregisterReceiver(mConnectivityChangedReceiver); in onPause() 169 activity.sendBroadcast(newDictBroadcast); in onPause() 191 final Activity activity = getActivity(); in wordListDownloadFinished() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | TileSizeCalculator.java | 68 public static int getNumCategoryColumns(Activity activity) { in getNumCategoryColumns() argument 69 int windowWidthPx = getActivityWindowWidthPx(activity); in getNumCategoryColumns() 70 return getNumCategoryColumns(activity, windowWidthPx); in getNumCategoryColumns() 77 public static int getNumIndividualColumns(Activity activity) { in getNumIndividualColumns() argument 78 int windowWidthPx = getActivityWindowWidthPx(activity); in getNumIndividualColumns() 79 return getNumIndividualColumns(activity, windowWidthPx); in getNumIndividualColumns() 82 private static int getNumCategoryColumns(Activity activity, int windowWidthPx) { in getNumCategoryColumns() argument 83 … return getNumColumns(activity, windowWidthPx, CATEGORY_FEWER_COLUMNS, CATEGORY_MORE_COLUMNS); in getNumCategoryColumns() 86 private static int getNumIndividualColumns(Activity activity, int windowWidthPx) { in getNumIndividualColumns() argument 88 activity, windowWidthPx, INDIVIDUAL_FEWER_COLUMNS, INDIVIDUAL_MORE_COLUMNS); in getNumIndividualColumns() [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/wear/ |
D | ReviewPermissionsWearFragment.java | 77 Activity activity = getActivity(); in onCreatePreferences() local 78 if (activity == null) { in onCreatePreferences() 84 activity.finish(); in onCreatePreferences() 88 mAppPermissions = new AppPermissions(activity, packageInfo, false, in onCreatePreferences() 92 activity.finish(); in onCreatePreferences() 105 activity.finish(); in onCreatePreferences() 117 Activity activity = getActivity(); in loadPreferences() local 118 if (activity == null) { in loadPreferences() 174 mNewPermissionsCategory = new PreferenceCategory(activity); in loadPreferences() 183 currentPermissionsCategory = new PreferenceCategory(activity); in loadPreferences() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/ |
D | SetupFingerprintEnrollIntroductionTest.java | 127 SetupFingerprintEnrollIntroduction activity = mController.get(); in testBackKeyPress_shouldSetIntentDataIfLockScreenAdded() local 128 activity.onBackPressed(); in testBackKeyPress_shouldSetIntentDataIfLockScreenAdded() 130 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testBackKeyPress_shouldSetIntentDataIfLockScreenAdded() 141 SetupFingerprintEnrollIntroduction activity = mController.get(); in testBackKeyPress_shouldNotSetIntentDataIfLockScreenPresentBeforeLaunch() local 142 activity.onBackPressed(); in testBackKeyPress_shouldNotSetIntentDataIfLockScreenPresentBeforeLaunch() 144 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testBackKeyPress_shouldNotSetIntentDataIfLockScreenPresentBeforeLaunch() 152 SetupFingerprintEnrollIntroduction activity = mController.create().resume().get(); in testCancelClicked_shouldSetIntentDataIfLockScreenAdded() local 153 PartnerCustomizationLayout layout = activity.findViewById(R.id.setup_wizard_layout); in testCancelClicked_shouldSetIntentDataIfLockScreenAdded() 159 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testCancelClicked_shouldSetIntentDataIfLockScreenAdded() 169 SetupFingerprintEnrollIntroduction activity = mController.create().resume().get(); in testCancelClicked_shouldNotSetIntentDataIfLockScreenPresentBeforeLaunch() local [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | SetNewPasswordActivityTest.java | 95 SetNewPasswordActivity activity = in testChooseLockGeneric() local 97 activity.launchChooseLock(new Bundle()); in testChooseLockGeneric() 98 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testChooseLockGeneric() 102 .isEqualTo(new ComponentName(activity, ChooseLockGeneric.class)); in testChooseLockGeneric() 109 SetNewPasswordActivity activity = in testSetupChooseLockGeneric() local 111 activity.launchChooseLock(new Bundle()); in testSetupChooseLockGeneric() 112 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testSetupChooseLockGeneric() 116 .isEqualTo(new ComponentName(activity, SetupChooseLockGeneric.class)); in testSetupChooseLockGeneric() 129 SetNewPasswordActivity activity = in testLaunchChooseLock_setNewPasswordExtraWithoutPermission() local 132 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewPasswordExtraWithoutPermission() [all …]
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | DeletionHelperSettings.java | 118 Activity activity = getActivity(); in onCreatePreferences() local 119 if (activity != null && mGaugePreference != null) { in onCreatePreferences() 120 Intent intent = activity.getIntent(); in onCreatePreferences() 123 getGaugeString(getContext(), intent, activity.getCallingPackage()); in onCreatePreferences() 162 Activity activity = getActivity(); in onActivityCreated() local 163 if (activity.checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) in onActivityCreated() 165 activity.requestPermissions( in onActivityCreated() 283 DeletionHelperActivity activity = (DeletionHelperActivity) getActivity(); in startEmptyState() local 284 activity.setIsEmptyState(true /* isEmptyState */); in startEmptyState() 298 Activity activity = getActivity(); in clearData() local [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | AbstractFloatingView.java | 185 ActivityContext activity, @FloatingViewType int type) { in getOpenView() argument 186 BaseDragLayer dragLayer = activity.getDragLayer(); in getOpenView() 202 public static void closeOpenContainer(ActivityContext activity, in closeOpenContainer() argument 204 AbstractFloatingView view = getOpenView(activity, type); in closeOpenContainer() 210 public static void closeOpenViews(ActivityContext activity, boolean animate, in closeOpenViews() argument 212 BaseDragLayer dragLayer = activity.getDragLayer(); in closeOpenViews() 226 public static void closeAllOpenViews(ActivityContext activity, boolean animate) { in closeAllOpenViews() argument 227 closeOpenViews(activity, animate, TYPE_ALL); in closeAllOpenViews() 228 activity.finishAutoCancelActionMode(); in closeAllOpenViews() 231 public static void closeAllOpenViews(ActivityContext activity) { in closeAllOpenViews() argument [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | RecentsActivityTracker.java | 58 private boolean init(T activity, boolean visible) { in init() argument 59 return mOnInitListener.test(activity, visible); in init() 75 public static void onRecentsActivityCreate(BaseRecentsActivity activity) { in onRecentsActivityCreate() argument 76 sCurrentActivity = new WeakReference<>(activity); in onRecentsActivityCreate() 77 sScheduler.initIfPending(activity, false); in onRecentsActivityCreate() 81 public static void onRecentsActivityNewIntent(BaseRecentsActivity activity) { in onRecentsActivityNewIntent() argument 82 sScheduler.initIfPending(activity, activity.isStarted()); in onRecentsActivityNewIntent() 85 public static void onRecentsActivityDestroy(BaseRecentsActivity activity) { in onRecentsActivityDestroy() argument 86 if (sCurrentActivity.get() == activity) { in onRecentsActivityDestroy() 107 BaseRecentsActivity activity = sCurrentActivity.get(); in run() local [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/ |
D | ReviewPermissionsFragment.java | 97 Activity activity = getActivity(); in onCreate() local 98 if (activity == null) { in onCreate() 104 activity.finish(); in onCreate() 108 mAppPermissions = new AppPermissions(activity, packageInfo, false, true, in onCreate() 124 activity.finish(); in onCreate() 148 Activity activity = getActivity(); in onClick() local 149 if (activity == null) { in onClick() 157 activity.setResult(Activity.RESULT_CANCELED); in onClick() 167 activity.finish(); in onClick() 262 Activity activity = getActivity(); in bindUi() local [all …]
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | CallLogAdapter.java | 129 protected final Activity activity; field in CallLogAdapter 176 if (activity != null) { 178 activity.getCurrentFocus(), 179 activity.getString(R.string.description_entering_bulk_action_mode)); 201 Logger.get(activity).logImpression(DialerImpression.Type.MULTISELECT_TAP_DELETE_ICON); 214 if (activity != null) { 216 activity.getCurrentFocus(), 217 activity.getString(R.string.description_leaving_bulk_action_mode)); 231 new AlertDialog.Builder(activity) in showDeleteSelectedItemsDialog() 234 activity in showDeleteSelectedItemsDialog() [all …]
|