launcher_trace.proto 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Copyright (C) 2019 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. syntax = "proto2";
  17. package com.android.launcher3.tracing;
  18. option java_multiple_files = true;
  19. message LauncherTraceProto {
  20. optional TouchInteractionServiceProto touch_interaction_service = 1;
  21. }
  22. message TouchInteractionServiceProto {
  23. optional bool service_connected = 1;
  24. optional OverviewComponentObserverProto overview_component_obvserver = 2;
  25. optional InputConsumerProto input_consumer = 3;
  26. }
  27. message OverviewComponentObserverProto {
  28. optional bool overview_activity_started = 1;
  29. optional bool overview_activity_resumed = 2;
  30. }
  31. message InputConsumerProto {
  32. optional string name = 1;
  33. optional SwipeHandlerProto swipe_handler = 2;
  34. }
  35. message SwipeHandlerProto {
  36. optional GestureStateProto gesture_state = 1;
  37. optional bool is_recents_attached_to_app_window = 2;
  38. optional int32 scroll_offset = 3;
  39. // Swipe up progress from 0 (app) to 1 (overview); can be > 1 if swiping past overview.
  40. optional float app_to_overview_progress = 4;
  41. }
  42. message GestureStateProto {
  43. optional GestureEndTarget endTarget = 1 [default = UNSET];
  44. enum GestureEndTarget {
  45. UNSET = 0;
  46. HOME = 1;
  47. RECENTS = 2;
  48. NEW_TASK = 3;
  49. LAST_TASK = 4;
  50. }
  51. }