1/* 2 * Copyright (C) 2017 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 17syntax = "proto2"; 18package android.service.restricted_image; 19 20option java_multiple_files = true; 21option java_outer_classname = "RestrictedImage"; 22 23import "frameworks/base/core/proto/android/privacy.proto"; 24 25// Restricted Image proto is for collecting images from the user with their 26// permission for the purpose of debugging photos. 27message RestrictedImagesDumpProto { 28 option (android.msg_privacy).dest = DEST_EXPLICIT; 29 30 repeated RestrictedImageSetProto sets = 1; 31} 32 33message RestrictedImageSetProto { 34 option (android.msg_privacy).dest = DEST_EXPLICIT; 35 36 // Name of the service producing the data. 37 optional string category = 1; 38 39 // The images 40 repeated RestrictedImageProto images = 2; 41 42 // Additional metadata 43 optional bytes metadata = 3; 44} 45 46message RestrictedImageProto { 47 option (android.msg_privacy).dest = DEST_EXPLICIT; 48 49 // Type of image data 50 optional string mime_type = 1; 51 52 // The image data 53 optional bytes image_data = 2; 54 55 // Metadata about the image. Typically this has another proto schema, 56 // but it is undefined exactly what that is in AOSP code. 57 optional bytes metadata = 3; 58} 59