/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/ |
D | VideoCaptureIntentTest.java | 64 ContentResolver resolver = getActivity().getContentResolver(); in tearDown() 88 getActivity(); in testNoExtraOutput() 93 Intent resultData = getActivity().getResultData(); in testNoExtraOutput() 96 verify(getActivity(), mVideoUri); in testNoExtraOutput() 106 getActivity(); in testExtraOutput() 111 verify(getActivity(), uri); in testExtraOutput() 117 getActivity(); in testRetake() 124 Intent resultData = getActivity().getResultData(); in testRetake() 127 verify(getActivity(), mVideoUri); in testRetake() 133 getActivity(); in testCancel() [all …]
|
D | ImageCaptureIntentTest.java | 58 getActivity(); in testNoExtraOutput() 63 assertTrue(getActivity().isFinishing()); in testNoExtraOutput() 64 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testNoExtraOutput() 65 Intent resultData = getActivity().getResultData(); in testNoExtraOutput() 82 getActivity(); in testExtraOutput() 87 assertTrue(getActivity().isFinishing()); in testExtraOutput() 88 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testExtraOutput() 109 getActivity(); in testRetake() 116 assertTrue(getActivity().isFinishing()); in testRetake() 117 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testRetake() [all …]
|
/packages/apps/Camera2/tests/src/com/android/camera/functional/ |
D | VideoCaptureIntentTest.java | 57 ContentResolver resolver = getActivity().getContentResolver(); in tearDown() 81 getActivity(); in testNoExtraOutput() 86 Intent resultData = getActivity().getResultData(); in testNoExtraOutput() 89 verify(getActivity(), mVideoUri); in testNoExtraOutput() 99 getActivity(); in testExtraOutput() 104 verify(getActivity(), uri); in testExtraOutput() 110 getActivity(); in testCancel() 114 assertTrue(getActivity().isFinishing()); in testCancel() 115 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode()); in testCancel() 121 getActivity(); in testRecordCancel() [all …]
|
D | ImageCaptureIntentTest.java | 53 getActivity(); in testNoExtraOutput() 58 assertTrue(getActivity().isFinishing()); in testNoExtraOutput() 59 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testNoExtraOutput() 60 Intent resultData = getActivity().getResultData(); in testNoExtraOutput() 77 getActivity(); in testExtraOutput() 82 assertTrue(getActivity().isFinishing()); in testExtraOutput() 83 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); in testExtraOutput() 104 getActivity(); in testCancel() 108 assertTrue(getActivity().isFinishing()); in testCancel() 109 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode()); in testCancel() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | MainClearConfirm.java | 87 getActivity().getSystemService(Context.PERSISTENT_DATA_BLOCK_SERVICE); 104 if (getActivity() != null) { 105 getActivity().setRequestedOrientation(mOldOrientation); 118 mOldOrientation = getActivity().getRequestedOrientation(); 119 getActivity().setRequestedOrientation( 129 final ProgressDialog progressDialog = new ProgressDialog(getActivity()); 133 getActivity().getString(R.string.main_clear_progress_title)); 135 getActivity().getString(R.string.main_clear_progress_text)); 154 final DevicePolicyManager dpm = (DevicePolicyManager) getActivity() in shouldWipePersistentDataBlock() 174 return ((OemLockManager) getActivity().getSystemService( in isOemUnlockedAllowed() [all …]
|
D | SettingsPreferenceFragment.java | 140 mAppBarLayout = getActivity().findViewById(R.id.app_bar); in onCreateView() 165 final LayoutInflater inflater = getActivity().getLayoutInflater(); in setPinnedHeaderView() 317 final View listContainer = getActivity().findViewById(android.R.id.list_container); in updateEmptyView() 416 getActivity().onBackPressed(); in finishFragment() 425 Context context = getActivity(); in getContentResolver() 436 return getActivity().getSystemService(name); in getSystemService() 443 return getActivity().getSystemService(serviceClass); in getSystemService() 450 return getActivity().getPackageManager(); in getPackageManager() 670 return ((ButtonBarHandler) getActivity()).hasNextButton(); in hasNextButton() 674 return ((ButtonBarHandler) getActivity()).getNextButton(); in getNextButton() [all …]
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | ConfirmDeviceCredentialBaseFragment.java | 91 return (getActivity() instanceof ConfirmLockPassword.InternalActivity) in isInternalActivity() 92 || (getActivity() instanceof ConfirmLockPattern.InternalActivity); in isInternalActivity() 98 final Intent intent = getActivity().getIntent(); in onCreate() 110 mUserId = Utils.getUserIdFromBundle(getActivity(), intent.getExtras(), in onCreate() 113 mUserManager = UserManager.get(getActivity()); in onCreate() 115 mLockPatternUtils = new LockPatternUtils(getActivity()); in onCreate() 116 mDevicePolicyManager = (DevicePolicyManager) getActivity().getSystemService( in onCreate() 118 mBiometricManager = getActivity().getSystemService(BiometricManager.class); in onCreate() 125 boolean showCancelButton = getActivity().getIntent().getBooleanExtra( in onViewCreated() 135 getActivity().setResult(KeyguardManager.RESULT_ALTERNATE); in onViewCreated() [all …]
|
D | ChooseLockPattern.java | 231 getActivity().setResult(RESULT_FINISHED); in onActivityResult() 232 getActivity().finish(); in onActivityResult() 248 mNextButton.setText(getActivity(), text); in setRightButtonText() 450 if (!(getActivity() instanceof ChooseLockPattern)) { in onCreate() 453 Intent intent = getActivity().getIntent(); in onCreate() 455 mUserId = Utils.getUserIdFromBundle(getActivity(), intent.getExtras()); in onCreate() 456 mIsManagedProfile = UserManager.get(getActivity()).isManagedProfile(mUserId); in onCreate() 458 mLockPatternUtils = new LockPatternUtils(getActivity()); in onCreate() 463 final boolean required = getActivity().getIntent().getBooleanExtra( in onCreate() 491 getActivity().setTitle(msg); in updateActivityTitle() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
D | DvrPlaybackOverlayFragment.java | 124 getActivity() in onCreate() 128 getActivity() in onCreate() 133 getActivity() in onCreate() 143 if (handleIntent(getActivity().getIntent(), true)) { in onCreate() 145 preparePlayback(getActivity().getIntent()); in onCreate() 149 } else if (!handleIntent(getActivity().getIntent(), true)) { in onCreate() 173 mTvView = getActivity().findViewById(R.id.dvr_tv_view); in onActivityCreated() 176 mBlockScreenView = getActivity().findViewById(R.id.block_screen); in onActivityCreated() 177 mDvrPlayer = new DvrPlayer(mTvView, getActivity()); in onActivityCreated() 180 getActivity(), MEDIA_SESSION_TAG, mDvrPlayer, this); in onActivityCreated() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrRecordingSettingsFragment.java | 91 getActivity().finish(); in onAttach() 118 new GuidedAction.Builder(getActivity()) in onCreateActions() 127 new GuidedAction.Builder(getActivity()) in onCreateActions() 139 new GuidedAction.Builder(getActivity()) in onCreateButtonActions() 143 new GuidedAction.Builder(getActivity()) in onCreateButtonActions() 177 DvrUiHelper.showScheduleConflictDialog(getActivity(), customizedProgram); in onGuidedActionClicked() 264 new GuidedAction.Builder(getActivity()) in buildChannelSubActionStart() 269 new GuidedAction.Builder(getActivity()) in buildChannelSubActionStart() 274 new GuidedAction.Builder(getActivity()) in buildChannelSubActionStart() 279 new GuidedAction.Builder(getActivity()) in buildChannelSubActionStart() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | VisualVoicemailCallLogFragment.java | 68 VoicemailPlaybackPresenter.getInstance(getActivity(), savedInstanceState); in onActivityCreated() 71 getActivity() in onActivityCreated() 86 getActivity().getFragmentManager(), in onActivityCreated() 97 getActivity() in onActivityCreated() 142 getActivity() in onDestroy() 147 getActivity().getContentResolver().unregisterContentObserver(voicemailStatusObserver); in onDestroy() 172 if (getActivity() != null && preSyncVoicemailStatusCheckExecutor != null) { in onVisible() 173 preSyncVoicemailStatusCheckExecutor.executeParallel(getActivity()); in onVisible() 174 Logger.get(getActivity()).logImpression(DialerImpression.Type.VVM_TAB_VIEWED); in onVisible() 175 getActivity().setVolumeControlStream(VoicemailAudioManager.PLAYBACK_STREAM); in onVisible() [all …]
|
D | CallLogFragment.java | 222 final Activity activity = getActivity(); in onCreate() 231 if (getActivity() == null || getActivity().isFinishing()) { in onCallsFetched() 239 getActivity().invalidateOptionsMenu(); in onCallsFetched() 270 if (getActivity() == null || getActivity().isFinishing()) { in onCallsFetched() 309 layoutManager = new LinearLayoutManager(getActivity()); in setupView() 332 String currentCountryIso = GeoUtil.getCurrentCountryIso(getActivity()); in setupData() 336 ExpirableCacheHeadlessFragment.attach((AppCompatActivity) getActivity()) in setupData() 338 new ContactInfoHelper(getActivity(), currentCountryIso), in setupData() 341 Bindings.getLegacy(getActivity()) in setupData() 343 getActivity(), in setupData() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
D | FragmentUtils.java | 54 } else if (callbackInterface.isInstance(fragment.getActivity())) { in getParent() 56 T parent = (T) fragment.getActivity(); in getParent() 58 } else if (fragment.getActivity() instanceof FragmentUtilListener) { in getParent() 60 T parent = ((FragmentUtilListener) fragment.getActivity()).getImpl(callbackInterface); in getParent() 62 } else if (fragment.getActivity() instanceof MainActivityPeer.PeerSupplier) { in getParent() 63 MainActivityPeer peer = ((MainActivityPeer.PeerSupplier) fragment.getActivity()).getPeer(); in getParent() 90 } else if (callbackInterface.isInstance(fragment.getActivity())) { in getParent() 92 T parent = (T) fragment.getActivity(); in getParent() 94 } else if (fragment.getActivity() instanceof FragmentUtilListener) { in getParent() 96 T parent = ((FragmentUtilListener) fragment.getActivity()).getImpl(callbackInterface); in getParent() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/calldetails/ |
D | CallDetailsActivityCommon.java | 294 getActivity() in showRttTranscript() 296 RttTranscriptActivity.getIntent(getActivity(), transcriptId, primaryText, photoInfo)); in showRttTranscript() 299 private CallDetailsActivityCommon getActivity() { in getActivity() method in CallDetailsActivityCommon.CallDetailsEntryListener 314 Logger.get(getActivity()) in placeImsVideoCall() 317 getActivity(), in placeImsVideoCall() 324 Logger.get(getActivity()) in placeDuoVideoCall() 327 getActivity(), in placeDuoVideoCall() 335 Logger.get(getActivity()).logImpression(DialerImpression.Type.CALL_DETAILS_VOICE_CALL_BACK); in placeVoiceCall() 338 getActivity() in placeVoiceCall() 348 PreCall.start(getActivity(), callIntentBuilder); in placeVoiceCall() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | ExportDialogFragment.java | 78 return getActivity(); in getContext() 89 final Resources res = getActivity().getResources(); in onCreateDialog() 90 final LayoutInflater dialogInflater = (LayoutInflater)getActivity() in onCreateDialog() 96 final ArrayAdapter<AdapterEntry> adapter = new ArrayAdapter<AdapterEntry>(getActivity(), in onCreateDialog() 138 getActivity(), ExportVCardActivity.class); in onCreateDialog() 141 getActivity().startActivity(exportIntent); in onCreateDialog() 148 getActivity(), ShareVCardActivity.class); in onCreateDialog() 151 getActivity().startActivity(exportIntent); in onCreateDialog() 156 + getActivity().getResources().getResourceEntryName(resId)); in onCreateDialog() 163 final TextView title = (TextView) View.inflate(getActivity(), R.layout.dialog_title, null); in onCreateDialog() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | PublicVolumeSettings.java | 85 final Context context = getActivity(); in onCreate() 93 getActivity().getIntent().getAction())) { in onCreate() 94 final Uri rootUri = getActivity().getIntent().getData(); in onCreate() 105 getActivity().finish(); in onCreate() 120 mUnmount = new Button(getActivity()); in onCreate() 138 final ViewGroup container = getActivity().findViewById(R.id.container_material); in onActivityCreated() 146 getActivity().finish(); in update() 150 getActivity().setTitle(mStorageManager.getBestVolumeDescription(mVolume)); in update() 152 final Context context = getActivity(); in update() 204 getActivity().finish(); in onResume() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningServiceDetails.java | 103 getActivity().stopService(new Intent().setComponent(si.mRunningService.service)); in stopActiveService() 137 File filename = getActivity().getFileStreamPath("service_dump.txt"); in onClick() 172 getActivity().startIntentSender(mManageIntent.getIntentSender(), null, in onClick() 291 description.setText(getActivity().getPackageManager().getText( in addServiceDetailsView() 299 … Resources clientr = getActivity().getPackageManager().getResourcesForApplication( in addServiceDetailsView() 302 … description.setText(getActivity().getString(R.string.service_manage_description, in addServiceDetailsView() 307 description.setText(getActivity().getText(si != null in addServiceDetailsView() 314 detail.mStopButton.setText(getActivity().getText(detail.mManageIntent != null in addServiceDetailsView() 319 int enabled = Settings.Global.getInt(getActivity().getContentResolver(), in addServiceDetailsView() 323 getActivity(), si.mServiceInfo.packageName, in addServiceDetailsView() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
D | WifiP2pSettings.java | 203 final Activity activity = getActivity(); in onActivityCreated() 240 Toast.makeText(getActivity(), in onActivityCreated() 254 Toast.makeText(getActivity(), in onActivityCreated() 351 getActivity().registerReceiver(mReceiver, mIntentFilter); in onResume() 384 getActivity().unregisterReceiver(mReceiver); in onPause() 463 Toast.makeText(getActivity(), in onPreferenceTreeClick() 485 msg = getActivity().getString(R.string.wifi_p2p_disconnect_multiple_message, in onCreateDialog() 488 msg = getActivity().getString(R.string.wifi_p2p_disconnect_message, deviceName); in onCreateDialog() 490 AlertDialog dialog = new AlertDialog.Builder(getActivity()) in onCreateDialog() 493 .setPositiveButton(getActivity().getString(R.string.dlg_ok), mDisconnectListener) in onCreateDialog() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
D | UserDictionaryAddWordFragment.java | 63 getActivity().getActionBar().setTitle(R.string.edit_personal_dictionary); in onActivityCreated() 86 getActivity().getActionBar().setSubtitle(UserDictionarySettingsUtils.getLocaleDisplayName( in onCreateView() 87 getActivity(), mContents.getCurrentUserDictionaryLocale())); in onCreateView() 113 getActivity().onBackPressed(); in onOptionsItemSelected() 117 mContents.delete(getActivity()); in onOptionsItemSelected() 119 getActivity().onBackPressed(); in onOptionsItemSelected() 133 final ArrayList<LocaleRenderer> localesList = mContents.getLocalesList(getActivity()); in updateSpinner() 138 getActivity(), android.R.layout.simple_spinner_item, localesList); in updateSpinner() 149 mContents.apply(getActivity(), null); in onPause() 158 PreferenceActivity preferenceActivity = (PreferenceActivity)getActivity(); in onItemSelected() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
D | NewStorageActivity.java | 135 StorageManager storageManager = getActivity().getSystemService(StorageManager.class); in onCreate() 158 getActivity().getSystemService(StorageManager.class) in onStart() 165 getActivity().getSystemService(StorageManager.class) in onStop() 175 getActivity().getDrawable(R.drawable.ic_storage_132dp)); in onCreateGuidance() 206 startActivity(FormatActivity.getFormatAsPublicIntent(getActivity(), mDiskId)); in onGuidedActionClicked() 209 startActivity(new Intent(getActivity(), StorageResetActivity.class)); in onGuidedActionClicked() 212 startActivity(FormatActivity.getFormatAsPrivateIntent(getActivity(), mDiskId)); in onGuidedActionClicked() 218 UnmountActivity.getIntent(getActivity(), mVolumeId, mDescription)); in onGuidedActionClicked() 222 getActivity().finish(); in onGuidedActionClicked() 244 getActivity().finish(); in checkForUnmount() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/ |
D | IndividualPickerFragment.java | 335 getActivity()); in updateDesktopDailyRotationThumbnail() 339 if (getActivity() == null) { in updateDesktopDailyRotationThumbnail() 449 mCategory.fetchWallpapers(getActivity().getApplicationContext(), new WallpaperReceiver() { in fetchWallpapers() 471 Activity activity = getActivity(); in fetchWallpapers() 575 return (IndividualPickerFragmentHost) getActivity(); in getIndividualPickerFragmentHost() 614 ? SizeCalculator.getFeaturedIndividualTileSize(getActivity()) in maybeSetUpImageGrid() 615 : SizeCalculator.getIndividualTileSize(getActivity()); in maybeSetUpImageGrid() 654 mImageGrid.setLayoutManager(new GridLayoutManager(getActivity(), getNumColumns())); in setUpImageGrid() 691 .getPreferences(getActivity()); in onResume() 696 Glide.get(getActivity()).setMemoryCategory(MemoryCategory.NORMAL); in onResume() [all …]
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/ |
D | AlertDialogBuilderTest.java | 61 new AlertDialogBuilder(mActivityRule.getActivity()) in test_AlertDialogBuilder_works() 67 new AlertDialogBuilder(mActivityRule.getActivity()) in test_AlertDialogBuilder_works() 80 AlertDialogBuilder builder = new AlertDialogBuilder(mActivityRule.getActivity()) in test_showSingleListChoiceItem_StringArray_hidesDefaultButton() 92 AlertDialogBuilder builder = new AlertDialogBuilder(mActivityRule.getActivity()) in test_showSingleListChoiceItem_StringArrayResource_hidesDefaultButton() 112 AlertDialogBuilder builder = new AlertDialogBuilder(mActivityRule.getActivity()) in test_showSingleListChoiceItem_CarUiRadioButtonListItemAdapter_forcesDefaultButton() 122 AlertDialogBuilder builder = new AlertDialogBuilder(mActivityRule.getActivity()) in test_showSingleListChoiceItem_cursor_hidesDefaultButton() 133 AlertDialogBuilder builder = new AlertDialogBuilder(mActivityRule.getActivity()) in test_setItems_StringArrayResource_hidesDefaultButton() 143 AlertDialogBuilder builder = new AlertDialogBuilder(mActivityRule.getActivity()) in test_setItems_StringArray_hidesDefaultButton() 163 AlertDialogBuilder builder = new AlertDialogBuilder(mActivityRule.getActivity()) in test_setAdapter_hidesDefaultButton() 173 AlertDialogBuilder builder = new AlertDialogBuilder(mActivityRule.getActivity()) in test_multichoiceItems_StringArrayResource_forcesDefaultButton() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | CategorySelectorFragment.java | 142 mTileSizePx = SizeCalculator.getCategoryTileSize(getActivity()); in onCreateView() 146 GridLayoutManager gridLayoutManager = new GridLayoutManager(getActivity(), in onCreateView() 162 if (!DeepLinkUtils.isDeepLink(getActivity().getIntent())) { in onCreateView() 263 Activity activity = getActivity(); in getNumColumns() 273 return (CategorySelectorFragmentHost) getActivity(); in getCategorySelectorFragmentHost() 301 Activity activity = getActivity(); in onClick() 353 getActivity().getApplicationContext())); in drawThumbnailAndOverlayIcon() 358 getResources(), getActivity().getWindowManager().getDefaultDisplay()); in drawThumbnailAndOverlayIcon() 363 Asset thumbnail = mCategory.getThumbnail(getActivity().getApplicationContext()); in drawThumbnailAndOverlayIcon() 365 thumbnail.loadDrawable(getActivity(), mImageView, in drawThumbnailAndOverlayIcon() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/ |
D | AllAppPermissionsFragment.java | 77 final ActionBar ab = getActivity().getActionBar(); in onCreate() 85 mPackageInfo = getActivity().getPackageManager().getPackageInfo(pkg, in onCreate() 88 getActivity().finish(); in onCreate() 91 mAppPermissions = new AppPermissions(getActivity(), mPackageInfo, false, in onCreate() 95 getActivity().finish(); in onCreate() 132 PackageManager pm = getActivity().getPackageManager(); in updateUi() 138 if (!getActivity().getIntent().getBooleanExtra( in updateUi() 220 pref = new PreferenceCategory(getActivity()); in findOrCreate() 246 pref.setIcon(getTintedPermissionIcon(getActivity(), perm, group)); in getMutablePreference() 247 pref.setTitle(perm.loadLabel(getActivity().getPackageManager())); in getMutablePreference() [all …]
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | AdbQrcodeScannerFragment.java | 99 getActivity().setResult(Activity.RESULT_OK, i); 100 getActivity().finish(); 106 getActivity().setResult(Activity.RESULT_OK, i); 107 getActivity().finish(); 185 getActivity().registerReceiver(mReceiver, mIntentFilter); in onResume() 192 getActivity().unregisterReceiver(mReceiver); in onPause() 198 getActivity().setResult(Activity.RESULT_CANCELED); in onPause() 199 getActivity().finish(); in onPause() 216 getActivity().getActionBar().hide(); in onActivityCreated() 218 getActivity().setTitle(R.string.wifi_dpp_scan_qr_code); in onActivityCreated() [all …]
|