# Copyright (C) 2025 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. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # proto-file: third_party/android/mediapc_requirements/requirements.proto # proto-message: Requirement id: "7.5/H-1-2" name: "Primary Front Camera Resolution and Frame Rate" description: "Primary front camera resolution and frame rate" test_configs: { key: "" value: { description: "Default test config" proto_field_number: 51 } } measurements: { key: "primary_camera_available" value: { description: "Is the primary camera available" measurement_type: MEASUREMENT_TYPE_BOOL comparison: COMPARISON_EQUAL proto_field_number: 3 } } measurements: { key: "primary_camera_resolution" value: { description: "Resolution of the primary camera" measurement_type: MEASUREMENT_TYPE_LONG comparison: COMPARISON_GREATER_THAN_OR_EQUAL proto_field_number: 4 } } measurements: { key: "primary_camera_video_size_req_satisfied" value: { description: "Video size requirement satisfied" measurement_type: MEASUREMENT_TYPE_BOOL comparison: COMPARISON_EQUAL proto_field_number: 5 } } measurements: { key: "primary_camera_video_fps" value: { description: "Video fps" measurement_type: MEASUREMENT_TYPE_DOUBLE comparison: COMPARISON_GREATER_THAN_OR_EQUAL proto_field_number: 6 } } specs { key: 30 value { mpc: MEDIA_PERFORMANCE_CLASS_11 specification: "MUST have a primary front facing camera with a resolution of at least 4 megapixels supporting video capture at 1080p@30fps. The primary front-facing camera is the front-facing camera with the lowest camera ID." required_values { key: "primary_camera_available" value { bool_value: true } } required_values { key: "primary_camera_resolution" value { long_value: 4000000 } } required_values { key: "primary_camera_video_size_req_satisfied" value { bool_value: true } } required_values { key: "primary_camera_video_fps" value { double_value: 29.9 } } } } specs { key: 31 value { mpc: MEDIA_PERFORMANCE_CLASS_12 specification: "MUST have a primary front facing camera with a resolution of at least 5 megapixels and support video capture at 1080p@30fps. The primary front-facing camera is the front-facing camera with the lowest camera ID." required_values { key: "primary_camera_available" value { bool_value: true } } required_values { key: "primary_camera_resolution" value { long_value: 5000000 } } required_values { key: "primary_camera_video_size_req_satisfied" value { bool_value: true } } required_values { key: "primary_camera_video_fps" value { double_value: 29.9 } } } } specs { key: 33 value { mpc: MEDIA_PERFORMANCE_CLASS_13 specification: "same" required_values { key: "primary_camera_available" value { bool_value: true } } required_values { key: "primary_camera_resolution" value { long_value: 5000000 } } required_values { key: "primary_camera_video_size_req_satisfied" value { bool_value: true } } required_values { key: "primary_camera_video_fps" value { double_value: 29.9 } } } } specs { key: 34 value { mpc: MEDIA_PERFORMANCE_CLASS_14 specification: "MUST have a primary front-facing camera with a resolution of at least 6 megapixels and support video capture at 1080p@30fps. The primary front-facing camera is the front-facing camera with the lowest camera ID." required_values { key: "primary_camera_available" value { bool_value: true } } required_values { key: "primary_camera_resolution" value { long_value: 5000000 } } required_values { key: "primary_camera_video_size_req_satisfied" value { bool_value: true } } required_values { key: "primary_camera_video_fps" value { double_value: 29.9 } } } } specs { key: 35 value { mpc: MEDIA_PERFORMANCE_CLASS_15 specification: "same" required_values { key: "primary_camera_available" value { bool_value: true } } required_values { key: "primary_camera_resolution" value { long_value: 5000000 } } required_values { key: "primary_camera_video_size_req_satisfied" value { bool_value: true } } required_values { key: "primary_camera_video_fps" value { double_value: 29.9 } } } } specs { key: 37 value { mpc: MEDIA_PERFORMANCE_CLASS_17 specification: "same" required_values { key: "primary_camera_available" value { bool_value: true } } required_values { key: "primary_camera_resolution" value { long_value: 5000000 } } required_values { key: "primary_camera_video_size_req_satisfied" value { bool_value: true } } required_values { key: "primary_camera_video_fps" value { double_value: 29.9 } } } }