Lines Matching refs:modeIndex
1693 int modeIndex = -1; in getModeIndex() local
1702 modeIndex = videoIndex; in getModeIndex()
1706 modeIndex = captureIntentIndex; in getModeIndex()
1710 modeIndex = mSettingsManager.getInteger(SettingsManager.SCOPE_GLOBAL, in getModeIndex()
1719 modeIndex = photoIndex; in getModeIndex()
1724 modeIndex = mSettingsManager.getInteger(SettingsManager.SCOPE_GLOBAL, in getModeIndex()
1726 if ((modeIndex == gcamIndex && in getModeIndex()
1727 !GcamHelper.hasGcamAsSeparateModule(mFeatureConfig)) || modeIndex < 0) { in getModeIndex()
1728 modeIndex = photoIndex; in getModeIndex()
1731 return modeIndex; in getModeIndex()
2179 int modeIndex = getModeIndex(); in onStartTasks() local
2180 if (!isCaptureIntent() && mCurrentModeIndex != modeIndex) { in onStartTasks()
2181 onModeSelected(modeIndex); in onStartTasks()
2468 public int getPreferredChildModeIndex(int modeIndex) { in getPreferredChildModeIndex() argument
2469 if (modeIndex == getResources().getInteger(R.integer.camera_mode_photo)) { in getPreferredChildModeIndex()
2472 modeIndex = getResources().getInteger(R.integer.camera_mode_gcam); in getPreferredChildModeIndex()
2475 return modeIndex; in getPreferredChildModeIndex()
2479 public void onModeSelected(int modeIndex) { in onModeSelected() argument
2480 if (mCurrentModeIndex == modeIndex) { in onModeSelected()
2486 if (modeIndex == getResources().getInteger(R.integer.camera_mode_photo) in onModeSelected()
2487 || modeIndex == getResources().getInteger(R.integer.camera_mode_gcam)) { in onModeSelected()
2490 modeIndex); in onModeSelected()
2496 modeIndex = getPreferredChildModeIndex(modeIndex); in onModeSelected()
2497 setModuleFromModeIndex(modeIndex); in onModeSelected()
2499 mCameraAppUI.resetBottomControls(mCurrentModule, modeIndex); in onModeSelected()
2505 Keys.KEY_STARTUP_MODULE_INDEX, modeIndex); in onModeSelected()
2525 public int getModuleId(int modeIndex) { in getModuleId() argument
2526 ModuleManagerImpl.ModuleAgent agent = mModuleManager.getModuleAgent(modeIndex); in getModuleId()
2537 private void setModuleFromModeIndex(int modeIndex) { in setModuleFromModeIndex() argument
2538 ModuleManagerImpl.ModuleAgent agent = mModuleManager.getModuleAgent(modeIndex); in setModuleFromModeIndex()
2573 for (Integer modeIndex : indices) { in getSupportedModeNames()
2574 String name = CameraUtil.getCameraModeText(modeIndex, mAppContext); in getSupportedModeNames()