Lines Matching refs:modeIndex
1694 int modeIndex = -1; in getModeIndex() local
1703 modeIndex = videoIndex; in getModeIndex()
1707 modeIndex = captureIntentIndex; in getModeIndex()
1711 modeIndex = mSettingsManager.getInteger(SettingsManager.SCOPE_GLOBAL, in getModeIndex()
1720 modeIndex = photoIndex; in getModeIndex()
1725 modeIndex = mSettingsManager.getInteger(SettingsManager.SCOPE_GLOBAL, in getModeIndex()
1727 if ((modeIndex == gcamIndex && in getModeIndex()
1728 !GcamHelper.hasGcamAsSeparateModule(mFeatureConfig)) || modeIndex < 0) { in getModeIndex()
1729 modeIndex = photoIndex; in getModeIndex()
1732 return modeIndex; in getModeIndex()
2172 int modeIndex = getModeIndex(); in onStartTasks() local
2173 if (!isCaptureIntent() && mCurrentModeIndex != modeIndex) { in onStartTasks()
2174 onModeSelected(modeIndex); in onStartTasks()
2461 public int getPreferredChildModeIndex(int modeIndex) { in getPreferredChildModeIndex() argument
2462 if (modeIndex == getResources().getInteger(R.integer.camera_mode_photo)) { in getPreferredChildModeIndex()
2465 modeIndex = getResources().getInteger(R.integer.camera_mode_gcam); in getPreferredChildModeIndex()
2468 return modeIndex; in getPreferredChildModeIndex()
2472 public void onModeSelected(int modeIndex) { in onModeSelected() argument
2473 if (mCurrentModeIndex == modeIndex) { in onModeSelected()
2479 if (modeIndex == getResources().getInteger(R.integer.camera_mode_photo) in onModeSelected()
2480 || modeIndex == getResources().getInteger(R.integer.camera_mode_gcam)) { in onModeSelected()
2483 modeIndex); in onModeSelected()
2489 modeIndex = getPreferredChildModeIndex(modeIndex); in onModeSelected()
2490 setModuleFromModeIndex(modeIndex); in onModeSelected()
2492 mCameraAppUI.resetBottomControls(mCurrentModule, modeIndex); in onModeSelected()
2498 Keys.KEY_STARTUP_MODULE_INDEX, modeIndex); in onModeSelected()
2518 public int getModuleId(int modeIndex) { in getModuleId() argument
2519 ModuleManagerImpl.ModuleAgent agent = mModuleManager.getModuleAgent(modeIndex); in getModuleId()
2530 private void setModuleFromModeIndex(int modeIndex) { in setModuleFromModeIndex() argument
2531 ModuleManagerImpl.ModuleAgent agent = mModuleManager.getModuleAgent(modeIndex); in setModuleFromModeIndex()
2566 for (Integer modeIndex : indices) { in getSupportedModeNames()
2567 String name = CameraUtil.getCameraModeText(modeIndex, mAppContext); in getSupportedModeNames()