Lines Matching refs:moduleIndex
1092 int moduleIndex = -1;
1095 moduleIndex = ModuleSwitcher.VIDEO_MODULE_INDEX;
1099 moduleIndex = ModuleSwitcher.PHOTO_MODULE_INDEX;
1103 moduleIndex = ModuleSwitcher.GCAM_MODULE_INDEX;
1107 moduleIndex = ModuleSwitcher.PHOTO_MODULE_INDEX;
1112 moduleIndex = prefs.getInt(CameraSettings.KEY_STARTUP_MODULE_INDEX, -1);
1113 if ((moduleIndex == ModuleSwitcher.GCAM_MODULE_INDEX &&
1114 !GcamHelper.hasGcamCapture()) || moduleIndex < 0) {
1115 moduleIndex = ModuleSwitcher.PHOTO_MODULE_INDEX;
1120 setModuleFromIndex(moduleIndex);
1400 public void onModuleSelected(int moduleIndex) {
1401 if (mCurrentModuleIndex == moduleIndex) {
1407 setModuleFromIndex(moduleIndex);
1418 prefs.edit().putInt(CameraSettings.KEY_STARTUP_MODULE_INDEX, moduleIndex).apply();
1425 private void setModuleFromIndex(int moduleIndex) {
1426 mCurrentModuleIndex = moduleIndex;
1427 switch (moduleIndex) {