1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.camera.util; 18 19 import android.content.ContentResolver; 20 import android.content.Context; 21 22 public class GservicesHelper { 23 getDisallowedlistedResolutionsBack(ContentResolver contentResolver)24 public static String getDisallowedlistedResolutionsBack(ContentResolver contentResolver) { 25 return ""; 26 } 27 getDisallowedlistedResolutionsFront(ContentResolver contentResolver)28 public static String getDisallowedlistedResolutionsFront(ContentResolver contentResolver) { 29 return ""; 30 } 31 isCaptureModuleDisabled(ContentResolver contentResolver)32 public static boolean isCaptureModuleDisabled(ContentResolver contentResolver) { 33 return false; 34 } 35 isJankStatisticsEnabled(ContentResolver contentResolver)36 public static boolean isJankStatisticsEnabled(ContentResolver contentResolver) { 37 return false; 38 } 39 getCaptureSupportLevelOverrideBack(ContentResolver contentResolver)40 public static int getCaptureSupportLevelOverrideBack(ContentResolver contentResolver) { 41 return -1; 42 } 43 getCaptureSupportLevelOverrideFront(ContentResolver contentResolver)44 public static int getCaptureSupportLevelOverrideFront(ContentResolver contentResolver) { 45 return -1; 46 } 47 getMaxAllowedNativeMemoryMb(ContentResolver contentResolver)48 public static int getMaxAllowedNativeMemoryMb(ContentResolver contentResolver) { 49 return -1; 50 } 51 getMaxAllowedImageReaderCount(ContentResolver contentResolver)52 public static int getMaxAllowedImageReaderCount(ContentResolver contentResolver) { 53 return 15; 54 } 55 useCamera2ApiThroughPortabilityLayer(ContentResolver contentResolver)56 public static boolean useCamera2ApiThroughPortabilityLayer(ContentResolver contentResolver) { 57 // Use the camera2 API by default. This only affects PhotoModule on L. 58 return true; 59 } 60 isGcamEnabled(ContentResolver contentResolver)61 public static boolean isGcamEnabled(ContentResolver contentResolver) { 62 return false; 63 } 64 } 65