1# Copyright (C) 2024 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# 15# Feature Configuration Test Data 16# 17# proto-file: services/gpuservice/feature_override/proto/feature_config.proto 18# proto-message: FeatureOverrideProtos 19 20# The 'feature_name' entries correspond to the FeatureOverrideParserTest() unit test name. 21global_features [ 22 { 23 feature_name: "globalOverrides1" 24 enabled: False 25 }, 26 { 27 feature_name: "globalOverrides2" 28 enabled: True 29 gpu_vendor_ids: [ 30 VENDOR_ID_TEST, # Match every GPU Vendor ID, so the feature isn't dropped when parsed. 31 VENDOR_ID_ARM 32 ] 33 }, 34 { 35 feature_name: "globalOverrides3" 36 enabled: True 37 gpu_vendor_ids: [ 38 VENDOR_ID_TEST, # Match every GPU Vendor ID, so the feature isn't dropped when parsed. 39 VENDOR_ID_INTEL 40 ] 41 } 42] 43 44# The 'package_name' and 'feature_name' entries correspond to the 45# FeatureOverrideParserTest() unit test name. 46package_features [ 47 { 48 package_name: "com.gpuservice_unittest.packageOverrides1" 49 feature_configs: [ 50 { 51 feature_name: "packageOverrides1" 52 enabled: True 53 } 54 ] 55 }, 56 { 57 package_name: "com.gpuservice_unittest.packageOverrides2" 58 feature_configs: [ 59 { 60 feature_name: "packageOverrides2" 61 enabled: False 62 gpu_vendor_ids: [ 63 VENDOR_ID_TEST, # Match every GPU Vendor ID, so the feature isn't dropped when parsed. 64 VENDOR_ID_INTEL 65 ] 66 } 67 ] 68 }, 69 { 70 package_name: "com.gpuservice_unittest.packageOverrides3" 71 feature_configs: [ 72 { 73 feature_name: "packageOverrides3_1" 74 enabled: False 75 gpu_vendor_ids: [ 76 VENDOR_ID_TEST, # Match every GPU Vendor ID, so the feature isn't dropped when parsed. 77 VENDOR_ID_ARM 78 ] 79 }, 80 { 81 feature_name: "packageOverrides3_2" 82 enabled: True 83 gpu_vendor_ids: [ 84 VENDOR_ID_TEST, # Match every GPU Vendor ID, so the feature isn't dropped when parsed. 85 VENDOR_ID_INTEL 86 ] 87 } 88 ] 89 } 90] 91