diff options
author | nchalko <nchalko@google.com> | 2019-01-24 09:44:49 -0800 |
---|---|---|
committer | Nick Chalko <nchalko@google.com> | 2019-02-12 22:15:18 -0800 |
commit | 6e15fb1aabe572ca629a00b0ac23b7a1450aa749 (patch) | |
tree | b8d3415105bcf37aee85d856628ca19651bdf08f /common | |
parent | b4bf28f41b8de6b13b9800ac0ffe3d582bd67419 (diff) | |
download | TV-6e15fb1aabe572ca629a00b0ac23b7a1450aa749.tar.gz |
Add a flag for partial EPG fetching
BUG:71717446
PiperOrigin-RevId: 230738207
Change-Id: I392c0aebb509d06073976f2f885496d74cb11dbf
Diffstat (limited to 'common')
6 files changed, 23 insertions, 35 deletions
diff --git a/common/src/com/android/tv/common/flags/BackendKnobsFlags.java b/common/src/com/android/tv/common/flags/BackendKnobsFlags.java index 553c2277..2f9d451e 100644 --- a/common/src/com/android/tv/common/flags/BackendKnobsFlags.java +++ b/common/src/com/android/tv/common/flags/BackendKnobsFlags.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 The Android Open Source Project + * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,15 +21,14 @@ public interface BackendKnobsFlags { /** * Whether or not this feature is compiled into this build. * - * <p>If the macro which generated this code does not have condtional_compilation_enabled as - * true, then this always returns true. - * - * <p>If the macro which generated this code does have conditional_compilation_enabled as true, - * this will return true or false depending on the value of the corresponding - * config_feature_flag controlling this feature. See go/phenotype-compile-time-features. + * <p>This returns true by default, unless the is_compiled_selector parameter was set during + * code generation. */ boolean compiled(); + /** Enable fetching only part of the program data. */ + boolean enablePartialProgramFetch(); + /** EPG fetcher interval in hours */ long epgFetcherIntervalHour(); diff --git a/common/src/com/android/tv/common/flags/CloudEpgFlags.java b/common/src/com/android/tv/common/flags/CloudEpgFlags.java index 824ec71b..ab4c6a17 100755 --- a/common/src/com/android/tv/common/flags/CloudEpgFlags.java +++ b/common/src/com/android/tv/common/flags/CloudEpgFlags.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 The Android Open Source Project + * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,12 +21,8 @@ public interface CloudEpgFlags { /** * Whether or not this feature is compiled into this build. * - * <p>If the macro which generated this code does not have condtional_compilation_enabled as - * true, then this always returns true. - * - * <p>If the macro which generated this code does have conditional_compilation_enabled as true, - * this will return true or false depending on the value of the corresponding - * config_feature_flag controlling this feature. See go/phenotype-compile-time-features. + * <p>This returns true by default, unless the is_compiled_selector parameter was set during + * code generation. */ boolean compiled(); diff --git a/common/src/com/android/tv/common/flags/ConcurrentDvrPlaybackFlags.java b/common/src/com/android/tv/common/flags/ConcurrentDvrPlaybackFlags.java index 7ea74cc4..76e17886 100755 --- a/common/src/com/android/tv/common/flags/ConcurrentDvrPlaybackFlags.java +++ b/common/src/com/android/tv/common/flags/ConcurrentDvrPlaybackFlags.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 The Android Open Source Project + * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,12 +21,8 @@ public interface ConcurrentDvrPlaybackFlags { /** * Whether or not this feature is compiled into this build. * - * <p>If the macro which generated this code does not have condtional_compilation_enabled as - * true, then this always returns true. - * - * <p>If the macro which generated this code does have conditional_compilation_enabled as true, - * this will return true or false depending on the value of the corresponding - * config_feature_flag controlling this feature. See go/phenotype-compile-time-features. + * <p>This returns true by default, unless the is_compiled_selector parameter was set during + * code generation. */ boolean compiled(); diff --git a/common/src/com/android/tv/common/flags/Exoplayer2Flags.java b/common/src/com/android/tv/common/flags/Exoplayer2Flags.java index 03175cfc..4a3956f5 100755 --- a/common/src/com/android/tv/common/flags/Exoplayer2Flags.java +++ b/common/src/com/android/tv/common/flags/Exoplayer2Flags.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 The Android Open Source Project + * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,12 +21,8 @@ public interface Exoplayer2Flags { /** * Whether or not this feature is compiled into this build. * - * <p>If the macro which generated this code does not have condtional_compilation_enabled as - * true, then this always returns true. - * - * <p>If the macro which generated this code does have conditional_compilation_enabled as true, - * this will return true or false depending on the value of the corresponding - * config_feature_flag controlling this feature. See go/phenotype-compile-time-features. + * <p>This returns true by default, unless the is_compiled_selector parameter was set during + * code generation. */ boolean compiled(); diff --git a/common/src/com/android/tv/common/flags/UiFlags.java b/common/src/com/android/tv/common/flags/UiFlags.java index b69411fd..5f82f25b 100755 --- a/common/src/com/android/tv/common/flags/UiFlags.java +++ b/common/src/com/android/tv/common/flags/UiFlags.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 The Android Open Source Project + * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,12 +21,8 @@ public interface UiFlags { /** * Whether or not this feature is compiled into this build. * - * <p>If the macro which generated this code does not have condtional_compilation_enabled as - * true, then this always returns true. - * - * <p>If the macro which generated this code does have conditional_compilation_enabled as true, - * this will return true or false depending on the value of the corresponding - * config_feature_flag controlling this feature. See go/phenotype-compile-time-features. + * <p>This returns true by default, unless the is_compiled_selector parameter was set during + * code generation. */ boolean compiled(); diff --git a/common/src/com/android/tv/common/flags/impl/DefaultBackendKnobsFlags.java b/common/src/com/android/tv/common/flags/impl/DefaultBackendKnobsFlags.java index 1e361a31..53688afe 100644 --- a/common/src/com/android/tv/common/flags/impl/DefaultBackendKnobsFlags.java +++ b/common/src/com/android/tv/common/flags/impl/DefaultBackendKnobsFlags.java @@ -25,6 +25,11 @@ public final class DefaultBackendKnobsFlags } @Override + public boolean enablePartialProgramFetch() { + return false; + } + + @Override public long epgFetcherIntervalHour() { return 25; } |