/packages/apps/Camera/src/com/android/camera/ |
D | VideoModule.java | 124 private CameraActivity mActivity; field in VideoModule 249 mActivity.mCameraDevice = Util.openCamera(mActivity, mCameraId); in openCamera() 250 mParameters = mActivity.mCameraDevice.getParameters(); in openCamera() 252 mActivity.mOpenCameraFail = true; in openCamera() 254 mActivity.mCameraDisabled = true; in openCamera() 270 mActivity.getWindow().clearFlags( in handleMessage() 286 if ((Util.getDisplayRotation(mActivity) != mDisplayRotation) in handleMessage() 307 ((CameraScreenNail) mActivity.mCameraScreenNail).animateSwitchCamera(); in handleMessage() 335 Toast.makeText(mActivity, in onReceive() 336 … mActivity.getResources().getString(R.string.wait), Toast.LENGTH_LONG).show(); in onReceive() [all …]
|
D | PhotoModule.java | 130 private CameraActivity mActivity; field in PhotoModule 313 Util.broadcastNewPicture(mActivity, uri); 337 mCameraDevice = Util.openCamera(mActivity, mCameraId); in run() 375 mActivity.getWindow().clearFlags( in handleMessage() 396 if (Util.getDisplayRotation(mActivity) != mDisplayRotation) { in handleMessage() 416 ((CameraScreenNail) mActivity.mCameraScreenNail).animateSwitchCamera(); in handleMessage() 440 Util.showErrorAndFinish(mActivity, in handleMessage() 448 Util.showErrorAndFinish(mActivity, in handleMessage() 454 mActivity.addSecureAlbumItemIfNeeded(false, (Uri) msg.obj); in handleMessage() 463 mActivity = activity; in init() [all …]
|
D | PanoramaModule.java | 174 private CameraActivity mActivity; field in PanoramaModule 217 + Util.getDisplayRotation(mActivity) % 360; in onOrientationChanged() 220 mActivity.getGLRoot().requestLayoutContentPane(); in onOrientationChanged() 227 mActivity = activity; in init() 232 mContentResolver = mActivity.getContentResolver(); in init() 234 mActivity.reuseCameraScreenNail(true); in init() 236 mActivity.createCameraScreenNail(true); in init() 272 PowerManager pm = (PowerManager) mActivity.getSystemService(Context.POWER_SERVICE); in init() 275 mOrientationEventListener = new PanoOrientationEventListener(mActivity); in init() 279 Resources appRes = mActivity.getResources(); in init() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | PhotoPage.java | 256 mActionBar = mActivity.getGalleryActionBar(); in onCreate() 257 mSelectionManager = new SelectionManager(mActivity, false); in onCreate() 258 mMenuExecutor = new MenuExecutor(mActivity, mSelectionManager); in onCreate() 260 mPhotoView = new PhotoView(mActivity); in onCreate() 263 mApplication = (GalleryApp) ((Activity) mActivity).getApplication(); in onCreate() 264 mOrientationManager = mActivity.getOrientationManager(); in onCreate() 265 mActivity.getGLRoot().setOrientationSource(mOrientationManager); in onCreate() 267 mHandler = new SynchronizedHandler(mActivity.getGLRoot()) { in onCreate() 298 mActivity.getGLRoot().unfreeze(); in onCreate() 407 mScreenNailSet = (SnailAlbum) mActivity.getDataManager() in onCreate() [all …]
|
D | AlbumPage.java | 155 int slotViewTop = mActivity.getGalleryActionBar().getHeight(); 211 mActivity.getTransitionStore().putIfNotPresent( in onBackPressed() 227 GalleryUtils.startGalleryActivity(mActivity); in onUpPressed() 228 } else if (mActivity.getStateManager().getStateCount() > 1) { in onUpPressed() 233 mActivity.getStateManager().switchState( in onUpPressed() 277 mActivity.getGLRoot().setLightsOutMode(true); in pickPhoto() 285 TransitionStore transitions = mActivity.getTransitionStore(); in pickPhoto() 308 mActivity.getStateManager().switchState(this, FilmstripPage.class, data); in pickPhoto() 310 mActivity.getStateManager().startStateForResult( in pickPhoto() 317 DataManager dm = mActivity.getDataManager(); in onGetContent() [all …]
|
D | AlbumSetPage.java | 225 toast = Toast.makeText(mActivity, R.string.empty_album, toastLength); in showEmptyAlbumToast() 255 Activity activity = mActivity; in pickAlbum() 262 mActivity.getStateManager().startStateForResult( in pickAlbum() 273 mActivity.getStateManager().startStateForResult( in pickAlbum() 280 boolean inAlbum = mActivity.getStateManager().hasStateClass(AlbumPage.class); in pickAlbum() 282 mActivity.getStateManager().startStateForResult( in pickAlbum() 316 mActivity.getStateManager().switchState(this, AlbumSetPage.class, data); in doCluster() 324 Context context = mActivity.getAndroidContext(); in onCreate() 331 mActionBar = mActivity.getGalleryActionBar(); in onCreate() 335 mHandler = new SynchronizedHandler(mActivity.getGLRoot()) { in onCreate() [all …]
|
D | ManageCachePage.java | 115 int slotViewTop = mActivity.getGalleryActionBar().getHeight(); 118 View footer = mActivity.findViewById(R.id.footer); 196 mCacheStorageInfo = new CacheStorageUsageInfo(mActivity); in onCreate() 199 mEyePosition = new EyePosition(mActivity.getAndroidContext(), this); in onCreate() 200 mHandler = new SynchronizedHandler(mActivity.getGLRoot()) { in onCreate() 222 FrameLayout layout = (FrameLayout) ((Activity) mActivity).findViewById(R.id.footer); in onConfigurationChanged() 242 FrameLayout layout = (FrameLayout) ((Activity) mActivity).findViewById(R.id.footer); in onPause() 265 mUpdateStorageInfo = mActivity.getThreadPool().submit(mUpdateStorageInfoJob); in onResume() 266 FrameLayout layout = (FrameLayout) ((Activity) mActivity).findViewById(R.id.footer); in onResume() 273 mMediaSet = mActivity.getDataManager().getMediaSet(mediaPath); in initializeData() [all …]
|
D | ActivityState.java | 50 protected AbstractGalleryActivity mActivity; field in ActivityState 84 mActivity.getGLRoot().setContentPane(mContentPane); in setContentPane() 88 mActivity = activity; in initialize() 97 mActivity.getStateManager().finishState(this); in onBackPressed() 127 mActivity.getResources().getColor(getBackgroundColorId())); in onCreate() 149 final Window win = mActivity.getWindow(); in setScreenFlags() 182 mActivity.getWindow().getDecorView().performHapticFeedback(feedbackConstant, in performHapticFeedback() 188 ((Activity) mActivity).unregisterReceiver(mPowerIntentReceiver); in onPause() 191 mActivity.getTransitionStore().put(KEY_TRANSITION_IN, mNextTransition); in onPause() 192 PreparePageFadeoutTexture.prepareFadeOutTexture(mActivity, mContentPane); in onPause() [all …]
|
D | MuteVideo.java | 41 private Activity mActivity = null; field in MuteVideo 49 mActivity = activity; in MuteVideo() 54 mActivity.getContentResolver(), mUri, in muteInBackground() 55 mActivity.getString(R.string.folder_download)); in muteInBackground() 64 mDstFileInfo, mActivity.getContentResolver(), mUri); in muteInBackground() 66 Toast.makeText(mActivity, mActivity.getString(R.string.video_mute_err), in muteInBackground() 73 Toast.makeText(mActivity.getApplicationContext(), in muteInBackground() 74 mActivity.getString(R.string.save_into, in muteInBackground() 88 mActivity.startActivity(intent); in muteInBackground() 97 mMuteProgress = new ProgressDialog(mActivity); in showProgressDialog() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | PhotoModule.java | 137 private CameraActivity mActivity; field in PhotoModule 275 mActivity.notifyNewMedia(uri); 336 if (CameraUtil.getDisplayRotation(mActivity) != mDisplayRotation) { in checkDisplayRotation() 382 if (mActivity != null && mGcamModeIndex != 0) { in switchToGcamCapture() 383 SettingsManager settingsManager = mActivity.getSettingsManager(); in switchToGcamCapture() 391 ButtonManager buttonManager = mActivity.getButtonManager(); in switchToGcamCapture() 399 mActivity.onModeSelected(mGcamModeIndex); in switchToGcamCapture() 427 mActivity = activity; in init() 430 mAppController = mActivity; in init() 432 mUI = new PhotoUI(mActivity, this, mActivity.getModuleLayoutRoot()); in init() [all …]
|
D | VideoModule.java | 118 private CameraActivity mActivity; field in VideoModule 196 mActivity.notifyNewMedia(uri); 206 mActivity.notifyNewMedia(uri); 260 if ((CameraUtil.getDisplayRotation(mActivity) != mDisplayRotation) in handleMessage() 300 Toast.makeText(mActivity, in onReceive() 301 … mActivity.getResources().getString(R.string.wait), Toast.LENGTH_LONG).show(); in onReceive() 325 mActivity.getString(R.string.video_file_name_format)); in createName() 337 mActivity = activity; in init() 340 mAppController = mActivity; in init() 342 mActivity.updateStorageSpaceAndHint(null); in init() [all …]
|
/packages/apps/Browser/src/com/android/browser/ |
D | Controller.java | 157 private Activity mActivity; field in Controller 225 mActivity = browser; in Controller() 234 mIntentHandler = new IntentHandler(mActivity, this); in Controller() 235 mPageDialogsHandler = new PageDialogsHandler(mActivity, this); in Controller() 251 mNetworkHandler = new NetworkStateHandler(mActivity, this); in Controller() 254 new SystemAllowGeolocationOrigins(mActivity.getApplicationContext()); in Controller() 291 GoogleAccountLogin.startLoginIfNeeded(mActivity, in doStart() 303 BackgroundHandler.execute(new PruneThumbnails(mActivity, null)); in onPreloginFinished() 341 BackgroundHandler.execute(new PruneThumbnails(mActivity, restoredTabs)); in onPreloginFinished() 417 return mActivity; in getContext() [all …]
|
D | BaseUi.java | 80 Activity mActivity; field in BaseUi 118 mActivity = browser; in BaseUi() 121 Resources res = mActivity.getResources(); in BaseUi() 126 FrameLayout frameLayout = (FrameLayout) mActivity.getWindow() in BaseUi() 128 LayoutInflater.from(mActivity) in BaseUi() 141 mTitleBar = new TitleBar(mActivity, mUiController, this, in BaseUi() 184 return mActivity; in getActivity() 208 mPieControl = new PieControl(mActivity, mUiController, this); in setUseQuickControls() 251 .makeText(mActivity, R.string.stopping, Toast.LENGTH_SHORT); in onPageStopped() 394 container = mActivity.getLayoutInflater().inflate(R.layout.tab, in onSetWebView() [all …]
|
D | GoogleAccountLogin.java | 59 private final Activity mActivity; field in GoogleAccountLogin 74 mActivity = activity; in GoogleAccountLogin() 76 mWebView = new WebView(mActivity); in GoogleAccountLogin() 156 BrowserSettings.getFactoryResetHomeUrl(mActivity)) in run() 158 mActivity.runOnUiThread(new Runnable() { in run() 174 AccountManager am = AccountManager.get(mActivity); in invalidateTokens() 179 am.getAuthToken(mAccount, "SID", null, mActivity, this, null); in invalidateTokens() 196 AccountManager.get(mActivity).getAuthToken( in run() 197 mAccount, "LSID", null, mActivity, this, null); in run() 236 mProgressDialog = ProgressDialog.show(mActivity, in startLogin() [all …]
|
D | UrlHandler.java | 51 Activity mActivity; field in UrlHandler 58 mActivity = mController.getActivity(); in UrlHandler() 75 mActivity.startActivity(intent); in shouldOverrideUrlLoading() 141 if (mActivity.getPackageManager().resolveActivity(intent, 0) == null) { in startActivityForUrl() 147 mActivity.startActivity(intent); in startActivityForUrl() 171 tab.setAppId(mActivity.getPackageName() + "-" + tab.getId()); in startActivityForUrl() 184 if (mActivity.startActivityIfNeeded(intent, -1)) { in startActivityForUrl() 205 PackageManager pm = mActivity.getPackageManager(); in isSpecializedHandlerAvailable() 234 mActivity.closeOptionsMenu(); in handleMenuClick() 258 cur = mActivity.getContentResolver() in doInBackground() [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/event/ |
D | EditEventHelperTest.java | 130 private AbstractCalendarActivity mActivity; field in EditEventHelperTest 364 mActivity = buildTestContext(); in testSaveEventFailures() 365 mHelper = new EditEventHelper(mActivity, null); in testSaveEventFailures() 391 mActivity = buildTestContext(); in testSaveEventNewEvent() 392 mHelper = new EditEventHelper(mActivity, null); in testSaveEventNewEvent() 428 mActivity = buildTestContext(); in testSaveEventModifyRecurring() 429 mHelper = new EditEventHelper(mActivity, null); in testSaveEventModifyRecurring() 474 mActivity = buildTestContext(); in testSaveEventRecurringToNonRecurring() 475 mHelper = new EditEventHelper(mActivity, null); in testSaveEventRecurringToNonRecurring() 529 mActivity = buildTestContext(); in testSaveEventNonRecurringToRecurring() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | ConversationListFragment.java | 103 private ControllableActivity mActivity; field in ConversationListFragment 264 if (mActivity == null || mSearchHeaderView == null) { in updateSearchResultHeader() 295 mActivity = (ControllableActivity) activity; in onActivityCreated() 299 mAccount = mAccountObserver.initialize(mActivity.getAccountController()); in onActivityCreated() 300 mCallbacks = mActivity.getListHandler(); in onActivityCreated() 301 mErrorListener = mActivity.getErrorListener(); in onActivityCreated() 303 final LayoutInflater inflater = LayoutInflater.from(mActivity.getActivityContext()); in onActivityCreated() 306 mFooterView.setClickListener(mActivity); in onActivityCreated() 313 final ConversationListHelper helper = mActivity.getConversationListHelper(); in onActivityCreated() 316 activity, mActivity, mAccount)) in onActivityCreated() [all …]
|
D | AbstractActivityController.java | 193 protected final MailActivity mActivity; field in AbstractActivityController 522 mActivity = activity; in AbstractActivityController() 523 mFragmentManager = mActivity.getFragmentManager(); in AbstractActivityController() 595 final String drawerPulloutTag = mActivity.getString(R.string.drawer_pullout_tag); in getFolderListFragment() 608 final ActionBar actionBar = mActivity.getSupportActionBar(); in initializeActionBar() 613 final boolean isSearch = mActivity.getIntent() != null in initializeActionBar() 614 && Intent.ACTION_SEARCH.equals(mActivity.getIntent().getAction()); in initializeActionBar() 618 mActionBarController.initialize(mActivity, this, actionBar); in initializeActionBar() 629 final ActionBar actionBar = mActivity.getSupportActionBar(); in attachActionBar() 682 mActivity.setResult(Activity.RESULT_OK, intent); in switchToDefaultInboxOrChangeAccount() [all …]
|
D | TwoPaneController.java | 95 if (Intent.ACTION_SEARCH.equals(mActivity.getIntent().getAction())) { in initializeConversationListFragment() 109 if (mActivity == null) { in renderConversationList() 112 FragmentTransaction fragmentTransaction = mActivity.getFragmentManager().beginTransaction(); in renderConversationList() 155 mLayout = (TwoPaneLayout) mActivity.findViewById(R.id.two_pane_activity); in onCreate() 161 mLayout.setController(this, Intent.ACTION_SEARCH.equals(mActivity.getIntent().getAction())); in onCreate() 162 mActivity.getWindow().setBackgroundDrawable(null); in onCreate() 163 mIsTabletLandscape = !mActivity.getResources().getBoolean(R.bool.list_collapsible); in onCreate() 206 mActivity.setResult(Activity.RESULT_OK, intent); in switchToDefaultInboxOrChangeAccount() 207 mActivity.finish(); in switchToDefaultInboxOrChangeAccount() 225 mActivity.setResult(Activity.RESULT_OK, intent); in onFolderSelected() [all …]
|
D | FolderListFragment.java | 102 protected ControllableActivity mActivity; field in FolderListFragment 296 mActivity = (ControllableActivity) activity; in onActivityCreated() 316 final FolderController controller = mActivity.getFolderController(); in onActivityCreated() 338 selectedFolder = mActivity.getHierarchyFolder(); in onActivityCreated() 354 final AccountController accountController = mActivity.getAccountController(); in onActivityCreated() 361 mFolderChanger = mActivity.getFolderSelector(); in onActivityCreated() 387 final DrawerController dc = mActivity.getDrawerController(); in onActivityCreated() 393 mDrawerController = mActivity.getDrawerController(); in onActivityCreated() 395 if (mActivity.isFinishing()) { in onActivityCreated() 409 mFolderWatcher = new FolderWatcher(mActivity, this); in onActivityCreated() [all …]
|
D | OnePaneController.java | 139 mDrawerContainer = (DrawerLayout) mActivity.findViewById(R.id.drawer_container); in onCreate() 141 mActivity.getActivityContext().getString(R.string.drawer_title)); in onCreate() 142 final String drawerPulloutTag = mActivity.getString(R.string.drawer_pullout_tag); in onCreate() 147 mActivity.findViewById(R.id.conversation_pager).setVisibility(View.GONE); in onCreate() 225 mActivity.getFragmentManager().executePendingTransactions(); in showConversationList() 246 final FragmentManager fm = mActivity.getFragmentManager(); in showConversation() 331 final FragmentManager fm = mActivity.getFragmentManager(); in replaceFragment() 359 mActivity.finish(); in handleBackPress() 365 mActivity.finish(); in handleBackPress() 379 mActivity.setResult(Activity.RESULT_OK, intent); in onFolderSelected() [all …]
|
/packages/apps/Mms/src/com/android/mms/data/ |
D | WorkingMessage.java | 95 private final Activity mActivity; field in WorkingMessage 205 mActivity = activity; in WorkingMessage() 206 mContentResolver = mActivity.getContentResolver(); in WorkingMessage() 275 mSlideshow = SlideshowModel.createFromMessageUri(mActivity, uri); in loadFromUri() 321 Uri uri = readDraftMmsMessage(msg.mActivity, conv, sb); in loadDraft() 433 SlideshowEditor slideShowEditor = new SlideshowEditor(mActivity, mSlideshow); in setAttachment() 548 SlideshowModel slideshow = SlideshowModel.createNew(mActivity); in ensureSlideshow() 724 text = new TextModel(mActivity, ContentType.TEXT_PLAIN, "text_0.txt", in syncTextToSlideshow() 835 PduPersister persister = PduPersister.getPduPersister(mActivity); in saveAsMms() 842 mActivity, null); in saveAsMms() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
D | EditEventView.java | 170 private Activity mActivity; field in EditEventView 304 mTime.hour, mTime.minute, DateFormat.is24HourFormat(mActivity)); in onClick() 313 mTime.hour, mTime.minute, DateFormat.is24HourFormat(mActivity)); in onClick() 321 final FragmentManager fm = mActivity.getFragmentManager(); in onClick() 432 mTzPickerUtils = new TimeZonePickerUtils(mActivity); in populateTimezone() 435 mTzPickerUtils.getGmtDisplayName(mActivity, mTimezone, eventStartTime, true); in populateTimezone() 446 FragmentManager fm = mActivity.getFragmentManager(); in showTimezoneDialog() 459 Resources r = mActivity.getResources(); in populateRepeats() 463 repeatString = EventRecurrenceFormatter.getRepeatString(mActivity, r, in populateRepeats() 521 mDatePickerDialog.setFirstDayOfWeek(Utils.getFirstDayOfWeekAsCalendar(mActivity)); in onClick() [all …]
|
D | EditEventFragment.java | 129 private Activity mActivity; field in EditEventFragment 548 mActivity = activity; in onAttach() 556 mUseCustomActionBar = !Utils.getConfigBool(mActivity, R.bool.multiple_pane_config); in onAttach() 569 mView = new EditEventView(mActivity, view, mOnDone, mTimeSelectedWasStartTime, in onCreateView() 575 new LinearLayout(mActivity), false); in onCreateView() 581 mActivity.getActionBar().setCustomView(actionBarButtons); in onCreateView() 592 mActivity.getActionBar().setCustomView(null); in onDestroyView() 705 Toast.makeText(mActivity, R.string.saving_event, Toast.LENGTH_SHORT).show(); in saveReminders() 731 items[itemIndex++] = mActivity.getText(R.string.modify_event); in displayEditWhichDialog() 733 items[itemIndex++] = mActivity.getText(R.string.modify_all); in displayEditWhichDialog() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | ActionModeHandler.java | 67 private final AbstractGalleryActivity mActivity; field in ActionModeHandler 127 mActivity = Utils.checkNotNull(activity); in ActionModeHandler() 131 mNfcAdapter = NfcAdapter.getDefaultAdapter(mActivity.getAndroidContext()); in ActionModeHandler() 135 Activity a = mActivity; in startActionMode() 161 GLRoot root = mActivity.getGLRoot(); in onActionItemClicked() 180 confirmMsg = mActivity.getResources().getQuantityString( in onActionItemClicked() 183 mDeleteProgressListener = new WakeLockHoldingProgressListener(mActivity, in onActionItemClicked() 197 GLRoot root = mActivity.getGLRoot(); in onPopupItemClick() 213 String format = mActivity.getResources().getQuantityString( in updateSelectionMenu() 273 DataManager manager = mActivity.getDataManager(); in getSelectedMediaObjects() [all …]
|