1/* 2 * Copyright (C) 2024 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"; 18 19option java_package = "com.android.wm.shell.desktopmode.education.data"; 20option java_multiple_files = true; 21 22// Desktop Windowing education data 23message WindowingEducationProto { 24 // Timestamp in milliseconds of when the education was last viewed. 25 optional int64 education_viewed_timestamp_millis = 1 [deprecated=true]; 26 // Timestamp in milliseconds of when the feature was last used. 27 optional int64 feature_used_timestamp_millis = 2 [deprecated=true]; 28 29 // Timestamp in milliseconds of when the app handle hint was last viewed. 30 optional int64 app_handle_hint_viewed_timestamp_millis = 5; 31 // Timestamp in milliseconds of when the app handle hint was last used. 32 optional int64 app_handle_hint_used_timestamp_millis = 6; 33 // Timestamp in milliseconds of when the enter desktop mode hint was last viewed. 34 optional int64 enter_desktop_mode_hint_viewed_timestamp_millis = 7; 35 // Timestamp in milliseconds of when the exit desktop mode hint was last viewed. 36 optional int64 exit_desktop_mode_hint_viewed_timestamp_millis = 8; 37 38 oneof education_data { 39 // Fields specific to app handle education 40 AppHandleEducation app_handle_education = 3; 41 // Fields specific to App-to-Web education 42 AppToWebEducation app_to_web_education = 4; 43 } 44 45 message AppHandleEducation { 46 // Map that stores app launch count for corresponding package 47 map<string, int32> app_usage_stats = 1; 48 // Timestamp of when app_usage_stats was last cached 49 optional int64 app_usage_stats_last_update_timestamp_millis = 2; 50 } 51 52 message AppToWebEducation { 53 // Number of times education is shown 54 optional int64 education_shown_count = 1; 55 } 56}