/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 | 120 private CameraActivity mActivity; field in PhotoModule 259 mActivity.notifyNewMedia(uri); 270 if (CameraUtil.getDisplayRotation(mActivity) != mDisplayRotation) { in checkDisplayRotation() 301 mActivity.getWindow().clearFlags( in handleMessage() 339 CameraUtil.showErrorAndFinish(mActivity, in handleMessage() 346 CameraUtil.showErrorAndFinish(mActivity, in handleMessage() 352 mActivity.onModuleSelected(ModuleSwitcher.GCAM_MODULE_INDEX); in handleMessage() 361 mActivity = activity; in init() 363 mPreferences = new ComboPreferences(mActivity); in init() 367 mContentResolver = mActivity.getContentResolver(); in init() [all …]
|
D | VideoModule.java | 104 private CameraActivity mActivity; field in VideoModule 183 mActivity.notifyNewMedia(uri); 193 mActivity.notifyNewMedia(uri); 209 mActivity, mCameraId, mHandler, in openCamera() 210 mActivity.getCameraOpenErrorCallback()); in openCamera() 231 mActivity.getWindow().clearFlags( in handleMessage() 247 if ((CameraUtil.getDisplayRotation(mActivity) != mDisplayRotation) in handleMessage() 292 Toast.makeText(mActivity, in onReceive() 293 … mActivity.getResources().getString(R.string.wait), Toast.LENGTH_LONG).show(); in onReceive() 301 mActivity.getString(R.string.video_file_name_format)); in createName() [all …]
|
D | WideAnglePanoramaModule.java | 139 private CameraActivity mActivity; field in WideAnglePanoramaModule 196 + CameraUtil.getDisplayRotation(mActivity) % 360; in onOrientationChanged() 205 mActivity = activity; in init() 210 mUI = new WideAnglePanoramaUI(mActivity, this, (ViewGroup) mRootView); in init() 221 mContentResolver = mActivity.getContentResolver(); in init() 251 PowerManager pm = (PowerManager) mActivity.getSystemService(Context.POWER_SERVICE); in init() 254 mOrientationEventListener = new PanoOrientationEventListener(mActivity); in init() 258 Resources appRes = mActivity.getResources(); in init() 265 mPreferences = new ComboPreferences(mActivity); in init() 267 mLocationManager = new LocationManager(mActivity, null); in init() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | ConversationListFragment.java | 96 private ControllableActivity mActivity; field in ConversationListFragment 192 if (mActivity == null) { in configureSearchResultHeader() 220 if (mActivity == null) { in updateSearchResultHeader() 241 mSearchStatusView = mActivity.findViewById(R.id.search_status_view); in initializeUiForFirstDisplay() 242 mSearchStatusTextView = (TextView) mActivity.findViewById(R.id.search_status_text_view); in initializeUiForFirstDisplay() 243 mSearchResultCountTextView = (TextView) mActivity in initializeUiForFirstDisplay() 270 mActivity = (ControllableActivity) activity; in onActivityCreated() 274 mAccount = mAccountObserver.initialize(mActivity.getAccountController()); in onActivityCreated() 275 mCallbacks = mActivity.getListHandler(); in onActivityCreated() 276 mErrorListener = mActivity.getErrorListener(); in onActivityCreated() [all …]
|
D | TwoPaneController.java | 66 if (Intent.ACTION_SEARCH.equals(mActivity.getIntent().getAction())) { in initializeConversationListFragment() 80 if (mActivity == null) { in renderConversationList() 83 FragmentTransaction fragmentTransaction = mActivity.getFragmentManager().beginTransaction(); in renderConversationList() 120 mActivity.setContentView(R.layout.two_pane_activity); in onCreate() 121 mDrawerContainer = (DrawerLayout) mActivity.findViewById(R.id.drawer_container); in onCreate() 123 mLayout = (TwoPaneLayout) mActivity.findViewById(R.id.two_pane_activity); in onCreate() 129 mLayout.setController(this, Intent.ACTION_SEARCH.equals(mActivity.getIntent().getAction())); in onCreate() 179 final FragmentManager fragmentManager = mActivity.getFragmentManager(); in onViewModeChanged() 275 if (mActivity == null) { in showConversation() 328 FragmentTransaction fragmentTransaction = mActivity.getFragmentManager().beginTransaction(); in showWaitForInitialization() [all …]
|
D | AbstractActivityController.java | 186 protected final ControllableActivity mActivity; field in AbstractActivityController 486 mActivity = activity; in AbstractActivityController() 487 mFragmentManager = mActivity.getFragmentManager(); in AbstractActivityController() 585 final ActionBar actionBar = mActivity.getActionBar(); in initializeActionBar() 592 final boolean isSearch = mActivity.getIntent() != null in initializeActionBar() 593 && Intent.ACTION_SEARCH.equals(mActivity.getIntent().getAction()); in initializeActionBar() 596 mActionBarView.initialize(mActivity, this, actionBar); in initializeActionBar() 607 final ActionBar actionBar = mActivity.getActionBar(); in attachActionBar() 707 mActivity.startActivity(intent); in changeAccount() 824 final LoaderManager lm = mActivity.getLoaderManager(); in preloadConvList() [all …]
|
D | FolderListFragment.java | 92 private ControllableActivity mActivity; field in FolderListFragment 246 mActivity = (ControllableActivity) activity; in onActivityCreated() 248 final FolderController controller = mActivity.getFolderController(); in onActivityCreated() 270 selectedFolder = mActivity.getHierarchyFolder(); in onActivityCreated() 282 final AccountController accountController = mActivity.getAccountController(); in onActivityCreated() 289 mFolderChanger = mActivity.getFolderSelector(); in onActivityCreated() 322 if (mActivity.isFinishing()) { in onActivityCreated() 532 return new ObjectCursorLoader<Folder>(mActivity.getActivityContext(), folderListUri, in onCreateLoader() 635 final RecentFolderController controller = mActivity.getRecentFolderController(); in FolderListAdapter() 641 mFolderWatcher = new FolderWatcher(mActivity, this); in FolderListAdapter() [all …]
|
/packages/apps/Browser/src/com/android/browser/ |
D | Controller.java | 156 private Activity mActivity; field in Controller 224 mActivity = browser; in Controller() 233 mIntentHandler = new IntentHandler(mActivity, this); in Controller() 234 mPageDialogsHandler = new PageDialogsHandler(mActivity, this); in Controller() 250 mNetworkHandler = new NetworkStateHandler(mActivity, this); in Controller() 253 new SystemAllowGeolocationOrigins(mActivity.getApplicationContext()); in Controller() 290 GoogleAccountLogin.startLoginIfNeeded(mActivity, in doStart() 302 BackgroundHandler.execute(new PruneThumbnails(mActivity, null)); in onPreloginFinished() 340 BackgroundHandler.execute(new PruneThumbnails(mActivity, restoredTabs)); in onPreloginFinished() 416 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 …]
|
/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/Email/tests/src/com/android/email/activity/setup/ |
D | AccountSetupOutgoingTests.java | 44 private AccountSetupOutgoing mActivity; field in AccountSetupOutgoingTests 73 assertTrue(mActivity.mNextButtonEnabled); in testGoodUri() 84 assertFalse(mActivity.mNextButtonEnabled); in testBadUriNoUser() 95 assertFalse(mActivity.mNextButtonEnabled); in testBadUriNoPassword() 106 assertTrue(mActivity.mNextButtonEnabled); in testGoodUriNoPort() 115 assertTrue(mActivity.mNextButtonEnabled); in testGoodServerVariants() 118 assertTrue(mActivity.mNextButtonEnabled); in testGoodServerVariants() 127 assertTrue(mActivity.mNextButtonEnabled); in testBadServerVariants() 130 assertFalse(mActivity.mNextButtonEnabled); in testBadServerVariants() 133 assertFalse(mActivity.mNextButtonEnabled); in testBadServerVariants() [all …]
|
D | AccountSetupIncomingTests.java | 46 private AccountSetupIncoming mActivity; field in AccountSetupIncomingTests 78 assertTrue(mActivity.mNextButtonEnabled); in testGoodUri() 89 assertFalse(mActivity.mNextButtonEnabled); in testBadUriNoUser() 100 assertFalse(mActivity.mNextButtonEnabled); in testBadUriNoPassword() 111 assertTrue(mActivity.mNextButtonEnabled); in testGoodUriNoPort() 120 assertTrue(mActivity.mNextButtonEnabled); in testGoodServerVariants() 123 assertTrue(mActivity.mNextButtonEnabled); in testGoodServerVariants() 132 assertTrue(mActivity.mNextButtonEnabled); in testBadServerVariants() 135 assertFalse(mActivity.mNextButtonEnabled); in testBadServerVariants() 138 assertFalse(mActivity.mNextButtonEnabled); in testBadServerVariants() [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 …]
|
/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 …]
|