Home
last modified time | relevance | path

Searched refs:modeIndex (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java1119 public static int getCameraThemeColorId(int modeIndex, Context context) { in getCameraThemeColorId() argument
1124 if (modeIndex >= colorRes.length() || modeIndex < 0) { in getCameraThemeColorId()
1126 Log.e(TAG, "Invalid mode index: " + modeIndex); in getCameraThemeColorId()
1129 return colorRes.getResourceId(modeIndex, 0); in getCameraThemeColorId()
1139 public static int getCameraModeIconResId(int modeIndex, Context context) { in getCameraModeIconResId() argument
1143 if (modeIndex >= cameraModesIcons.length() || modeIndex < 0) { in getCameraModeIconResId()
1145 Log.e(TAG, "Invalid mode index: " + modeIndex); in getCameraModeIconResId()
1148 return cameraModesIcons.getResourceId(modeIndex, 0); in getCameraModeIconResId()
1158 public static String getCameraModeText(int modeIndex, Context context) { in getCameraModeText() argument
1162 if (modeIndex < 0 || modeIndex >= cameraModesText.length) { in getCameraModeText()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DCameraActivity.java1694 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()
[all …]
DButtonManager.java995 int modeIndex = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, in updatePanoButtons() local
997 mModeOptionsPano.setSelectedOptionByTag(String.valueOf(modeIndex)); in updatePanoButtons()
/packages/apps/Camera2/src/com/android/camera/widget/
DIndicatorIconController.java175 int modeIndex = mController.getCurrentModuleIndex(); in syncFlashIndicator() local
176 if (modeIndex == mController.getAndroidContext().getResources() in syncFlashIndicator()
181 } else if (modeIndex == mController.getAndroidContext().getResources() in syncFlashIndicator()
/packages/apps/Camera2/src/com/android/camera/app/
DAppController.java132 public int getModuleId(int modeIndex); in getModuleId() argument
150 public int getPreferredChildModeIndex(int modeIndex); in getPreferredChildModeIndex() argument
DCameraAppUI.java1533 public void onModeButtonPressed(int modeIndex) { in onModeButtonPressed() argument
1535 int pressedModuleId = mController.getModuleId(modeIndex); in onModeButtonPressed()
1548 public void onModeSelected(int modeIndex) { in onModeSelected() argument
1560 mController.onModeSelected(modeIndex); in onModeSelected()
1877 public void setBottomBarShutterIcon(int modeIndex) {
1878 int shutterIconId = CameraUtil.getCameraShutterIconId(modeIndex,
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DRoles.java708 int modeIndex = sModeNameToMode.indexOfKey(modeName); in parseAppOps() local
709 if (modeIndex < 0) { in parseAppOps()
713 int mode = sModeNameToMode.valueAt(modeIndex); in parseAppOps()
/packages/apps/Camera2/src/com/android/camera/ui/
DModeListView.java917 public void onModeButtonPressed(int modeIndex); in onModeButtonPressed() argument
918 public void onModeSelected(int modeIndex); in onModeSelected() argument
1264 private void onModeSelected(int modeIndex) { in onModeSelected() argument
1266 mModeSwitchListener.onModeSelected(modeIndex); in onModeSelected()