1 /* 2 * Copyright (C) 2018 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 package com.android.tv.common.flags.impl; 17 18 import com.google.common.collect.ImmutableList; 19 import com.android.tv.common.flags.proto.TypedFeatures.StringListParam; 20 21 import com.android.tv.common.flags.CloudEpgFlags; 22 23 /** Default flags for Cloud EPG */ 24 public final class DefaultCloudEpgFlags implements CloudEpgFlags { 25 26 private StringListParam mThirdPartyEpgInputCsv = 27 StringListParam.newBuilder() 28 .addElement("com.google.android.tv/.tuner.tvinput.TunerTvInputService") 29 .addElement("com.technicolor.skipper.tuner/.tvinput.TunerTvInputService") 30 .addElement("com.silicondust.view/.tif.SDTvInputService") 31 .build(); 32 33 @Override compiled()34 public boolean compiled() { 35 return true; 36 } 37 38 @Override supportedRegion()39 public boolean supportedRegion() { 40 return false; 41 } 42 setThirdPartyEpgInput(StringListParam value)43 public void setThirdPartyEpgInput(StringListParam value) { 44 mThirdPartyEpgInputCsv = value; 45 } 46 setThirdPartyEpgInputCsv(String value)47 public void setThirdPartyEpgInputCsv(String value) { 48 setThirdPartyEpgInput( 49 StringListParam.newBuilder() 50 .addAllElement(ImmutableList.copyOf(value.split(","))) 51 .build()); 52 } 53 54 @Override thirdPartyEpgInputs()55 public StringListParam thirdPartyEpgInputs() { 56 return mThirdPartyEpgInputCsv; 57 } 58 } 59