This project is mirrored from https://github.com/LineageOS/android_frameworks_base.git. Updated .
  1. 05 Dec, 2018 1 commit
  2. 10 Aug, 2018 1 commit
    • Felipe Leme's avatar
      Make sure apps cannot forge package name on AssistStructure used for Autofill. · 9e403fa0
      Felipe Leme authored
      Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.VirtualContainerActivityTest#testAppCannotFakePackageName
      Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
      
      Bug: 69981710
      
      Change-Id: Id6036cddb51dd8dd0c9128b7212d573f630d693f
      Merged-In: Id6036cddb51dd8dd0c9128b7212d573f630d693f
      (cherry picked from commit 23e61a90)
      9e403fa0
  3. 20 Jul, 2018 1 commit
    • Felipe Leme's avatar
      Make sure apps cannot forge package name on AssistStructure used for Autofill. · 3f89a390
      Felipe Leme authored
      Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.VirtualContainerActivityTest#testAppCannotFakePackageName
      Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
      
      Bug: 69981710
      
      Change-Id: Id6036cddb51dd8dd0c9128b7212d573f630d693f
      Merged-In: Id6036cddb51dd8dd0c9128b7212d573f630d693f
      (cherry picked from commit 23e61a90)
      3f89a390
  4. 21 Mar, 2018 1 commit
    • Felipe Leme's avatar
      Make sure apps cannot forge package name on AssistStructure used for Autofill. · ae2aada9
      Felipe Leme authored
      Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.VirtualContainerActivityTest#testAppCannotFakePackageName
      Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
      
      Bug: 69981710
      
      Change-Id: Id6036cddb51dd8dd0c9128b7212d573f630d693f
      Merged-In: Id6036cddb51dd8dd0c9128b7212d573f630d693f
      (cherry picked from commit 23e61a90)
      ae2aada9
  5. 08 Feb, 2018 5 commits
    • Michael Plass's avatar
      Metrics wifi.proto for connected wifi score · 433354be
      Michael Plass authored
      (cherry picked from commit bb367b68)
      
      Bug: 67429363
      Bug: 71708302
      Test: Wifi unit tests
      
      Change-Id: I2993a02e7b3199c2b50dc2ddb7704fc5b6364025
      Merged-In: I315613b8ea3aa1d02810ae376c76083d80865d31
      (cherry picked from commit 1b8fe6ef)
      433354be
    • Felipe Leme's avatar
      Fixed AUTOFILL_UI_LATENCY metric. · 7cad2e50
      Felipe Leme authored
      This metric was using the RESERVED_FOR_LOGBUILDER_COUNTER and hence was not
      being picked up.
      
      Bug: 71863561
      Fixes: 72175011
      
      Test: adb shell logcat -b events | grep sysui | grep 1136
      Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
      
      Change-Id: I34f701ff5336a413477fd14172d16d8d1e5403ad
      (cherry picked from commit b659adb3)
      7cad2e50
    • jackqdyulei's avatar
      Add metric for anomaly detection · d88103db
      jackqdyulei authored
      ACTION_APP_STOP_AND_BACKGROUND_CHECK
      FIELD_ANOMALY_ACTION_TYPE
      ANOMALY_TYPE_WAKELOCK
      ANOMALY_TYPE_WAKEUP_ALARM
      ANOMALY_TYPE_UNOPTIMIZED_BT
      
      Bug: 68215016
      Test: Build
      Merged-In: I66f0465a3b89713060948af31c370e9ac894e0ff
      Change-Id: I66f0465a3b89713060948af31c370e9ac894e0ff
      (cherry picked from commit 7d36b386)
      d88103db
    • Etan Cohen's avatar
      [PASSPOINT] Add metrics to determine deployment/avail of Passpoint · 133adf7c
      Etan Cohen authored
      Add metrics which will help determine Passpoint availability in the
      wild. The metrics measure the percentage of time a Passpoint network
      is visible to user - by collecting historgrams of observations per
      scan result.
      
      (cherry-pick of commit c462a7a4)
      
      Bug: 66951771
      Test: unit test
      Merged-In: I8c91f490a533f90a4f0630e1cb461e1d2643358b
      Change-Id: I08367ab2c45900c76b65cea980a9b4a335b3dcdb
      (cherry picked from commit 8c88b5e2)
      133adf7c
    • Jorim Jaggi's avatar
      Fix issues with TRON app transition logging · 8d58c21d
      Jorim Jaggi authored
      There was a case where a app launch started activity A. A step in
      the UI finished A and started B in the same task. Next time A was
      started it immediately finished itself, putting B at the top of
      the task. Now, this launch was considered aborted because A was
      finished during launching, making it invisible.
      
      We fix this by modifying the logic to only abort the launch if the
      full task is not visible anymore after an activity has been set to
      invisible.
      
      There is another case where an app launches A, finishes A, and then
      launches B. In this case the home gets visible in between so we
      don't consider this an app launch anymore, and correctly cancel
      the logging. However it's still useful to know that this is
      happening to expose it to the developer, so we log any cancel
      events, no matter where they are coming from.
      
      Test: Launch Snapchat, click Sign Up, click home, relaunch
      Snapchat from home
      Test: Open slow app and press home quickly to test cancel.
      
      Change-Id: I211636c97fd6785adb3fe443a8ffa1ae766946a4
      Merged-In: I211636c97fd6785adb3fe443a8ffa1ae766946a4
      Fixes: 67094673
      (cherry picked from commit a9d40821)
      8d58c21d
  6. 30 Jan, 2018 1 commit
  7. 26 Jan, 2018 1 commit
    • Felipe Leme's avatar
      Fixed AUTOFILL_UI_LATENCY metric. · 3ddda877
      Felipe Leme authored
      This metric was using the RESERVED_FOR_LOGBUILDER_COUNTER and hence was not
      being picked up.
      
      Bug: 71863561
      Fixes: 72175011
      
      Test: adb shell logcat -b events | grep sysui | grep 1136
      Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
      
      Change-Id: I34f701ff5336a413477fd14172d16d8d1e5403ad
      (cherry picked from commit b659adb3)
      3ddda877
  8. 19 Jan, 2018 1 commit
    • jackqdyulei's avatar
      Add metric for anomaly detection · ce692726
      jackqdyulei authored
      ACTION_APP_STOP_AND_BACKGROUND_CHECK
      FIELD_ANOMALY_ACTION_TYPE
      ANOMALY_TYPE_WAKELOCK
      ANOMALY_TYPE_WAKEUP_ALARM
      ANOMALY_TYPE_UNOPTIMIZED_BT
      
      Bug: 68215016
      Test: Build
      Merged-In: I66f0465a3b89713060948af31c370e9ac894e0ff
      Change-Id: I66f0465a3b89713060948af31c370e9ac894e0ff
      (cherry picked from commit 7d36b386)
      ce692726
  9. 18 Jan, 2018 1 commit
    • Felipe Leme's avatar
      Make sure apps cannot forge package name on AssistStructure used for Autofill. · 5a285e0e
      Felipe Leme authored
      Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.VirtualContainerActivityTest#testAppCannotFakePackageName
      Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
      
      Bug: 69981710
      
      Change-Id: Id6036cddb51dd8dd0c9128b7212d573f630d693f
      Merged-In: Id6036cddb51dd8dd0c9128b7212d573f630d693f
      (cherry picked from commit 23e61a90)
      5a285e0e
  10. 09 Jan, 2018 2 commits
    • Etan Cohen's avatar
      [PASSPOINT] Add metrics to determine deployment/avail of Passpoint · e3715069
      Etan Cohen authored
      Add metrics which will help determine Passpoint availability in the
      wild. The metrics measure the percentage of time a Passpoint network
      is visible to user - by collecting historgrams of observations per
      scan result.
      
      (cherry-pick of commit c462a7a4)
      
      Bug: 66951771
      Test: unit test
      Merged-In: I8c91f490a533f90a4f0630e1cb461e1d2643358b
      Change-Id: I08367ab2c45900c76b65cea980a9b4a335b3dcdb
      (cherry picked from commit 8c88b5e2)
      e3715069
    • Jorim Jaggi's avatar
      Fix issues with TRON app transition logging · e9b5381d
      Jorim Jaggi authored
      There was a case where a app launch started activity A. A step in
      the UI finished A and started B in the same task. Next time A was
      started it immediately finished itself, putting B at the top of
      the task. Now, this launch was considered aborted because A was
      finished during launching, making it invisible.
      
      We fix this by modifying the logic to only abort the launch if the
      full task is not visible anymore after an activity has been set to
      invisible.
      
      There is another case where an app launches A, finishes A, and then
      launches B. In this case the home gets visible in between so we
      don't consider this an app launch anymore, and correctly cancel
      the logging. However it's still useful to know that this is
      happening to expose it to the developer, so we log any cancel
      events, no matter where they are coming from.
      
      Test: Launch Snapchat, click Sign Up, click home, relaunch
      Snapchat from home
      Test: Open slow app and press home quickly to test cancel.
      
      Change-Id: I211636c97fd6785adb3fe443a8ffa1ae766946a4
      Merged-In: I211636c97fd6785adb3fe443a8ffa1ae766946a4
      Fixes: 67094673
      (cherry picked from commit a9d40821)
      e9b5381d
  11. 25 Oct, 2017 1 commit
    • Romain Guy's avatar
      Add color mode setting · 2a9859b5
      Romain Guy authored
      The new setting appears on devices that support color management
      and wide color gamut rendering. The setting allows the user to
      choose between natural (sRGB), boosted (sRGB + 10% saturation)
      and saturated (unmanaged colors; colors are remapped to the device's
      native gamut).
      
      This change adds a metric constant for analytics in Settings
      and uses a persistent system property to know when to suppress
      color management.
      
      Bug: 68159303
      Test: manual
      Change-Id: I83cc972fc3a2290ff106eae0e76a3ee799503813
      (cherry picked from commit 62e8c175)
      2a9859b5
  12. 03 Oct, 2017 1 commit
  13. 26 Sep, 2017 1 commit
    • Felipe Leme's avatar
      FIxed typo. · b4cd6226
      Felipe Leme authored
      Test: grep -i authentiFIcation proto/src/metrics_constants.proto || echo "FIxed"
      FIxes: 66902492
      
      Change-Id: I92e1049839cf53a3ba1486fe6094da36092e9085
      b4cd6226
  14. 23 Sep, 2017 1 commit
  15. 22 Sep, 2017 2 commits
  16. 19 Sep, 2017 1 commit
    • Hugo Benichi's avatar
      Wakeup packet events: addressing a few comments · 0e4b4152
      Hugo Benichi authored
      This patch addresses a few post-submit comment for
      commits f562ac34a51dc and 60c9f63b66921.
      
      Bug: 34901696
      Bug: 62179647
      Test: runtest frameworks-net
      Merged-In: I4abec57e0c6bc869dc57b5eb54582dd977b64c30
      
      (cherry picked from commit 175b574e)
      
      Change-Id: Ied9d0cec98685e5a91ed2ca2c81ad88d7ae8d751
      0e4b4152
  17. 15 Sep, 2017 3 commits
    • Felipe Leme's avatar
      Added more metrics for Autofill: · b22d635d
      Felipe Leme authored
      - AUTOFILL_VALUE_RESET
      - FIELD_AUTOFILL_PREVIOUS_LENGTH
      - AUTOFILL_DATASET_AUTHENTICATED
      - AUTOFILL_INVALID_DATASET_AUTHENTICATION
      - AUTOFILL_INVALID_AUTHENTICATION
      - FIELD_AUTOFILL_SAVE_TYPE
      - AUTOFILL_SAVE_CUSTOM_DESCRIPTION
      - AUTOFILL_SAVE_CUSTOM_SUBTITLE
      - AUTOFILL_SAVE_LINK_TAPPED
      - AUTOFILL_SAVE_VALIDATION
      - AUTOFILL_PENDING_SAVE_UI_OPERATION
      
      Also tagged all metrics with FIELD_AUTOFILL_SERVICE, and added missing
      package name on AUTOFILL_DATASET_APPLIED.
      
      Test: CtsAutoFillServiceTestCases pass
      
      Bug: 65118073
      Bug: 65376559
      Bug: 65697068
      
      Change-Id: I678193c99d9d1b2dac56a62a88dcf20043d1b401
      b22d635d
    • Jan Althaus's avatar
      New metrics fields for selection logs · 019389a6
      Jan Althaus authored
      Changes that affect logging:
      - Switched to new category/actions/fields that are used exclusively by
        selection logging.
      - Action types are now logged in the tron type (the information that was
        previously in the field could be derived from other fields).
      - Entity types are now logged in the tron sub type.
      - Delta time from previous event is now zero for first event (was time
        since epoch).
      - The smart select model version is now written for all events after
        smart select has run. (i.e. better support for analysis based on
        terminal events alone)
      - Restoring the logging removed in ag/2901629.
      
      Internal only changes:
      - Made debug statement conditional on DEBUG_LOG_ENABLED.
      - Reduced logging tag length to fit into 23char limit.
      
      Bug: 64914512
      Test: Manually tested that logs are correct. Will follow up with automated tests.
      Merged-In: If12daa2f206fb42be53587decbe2c4abfd689f41
      Change-Id: Iec0f6cf1f9f2efdc8518133cf8551cd96b095ad8
      019389a6
    • Hugo Benichi's avatar
      Connectivity metrics: add WakeupStats events · a87b15c9
      Hugo Benichi authored
      This patch defines a new WakeupStats event in ipconnectivity.proto and
      populates these events from the NFLOG wakeup events stored in
      NetdEventListenerService.
      
      There is one WakeupStats object per known interface on which ingress
      packets arrive and may wake the system up.
      
      Example from $ adb shell dumpsys connmetrics list:
      
      ...
      WakeupStats(wlan0, total: 58, root: 0, system: 3, apps: 38, non-apps: 0, unrouted: 17, 6111s)
      WakeupEvent(13:36:31.686, iface wlan0, uid -1)
      WakeupEvent(13:38:50.846, iface wlan0, uid -1)
      WakeupEvent(13:39:16.676, iface wlan0, uid 10065)
      WakeupEvent(13:40:32.144, iface wlan0, uid 1000)
      WakeupEvent(13:40:35.827, iface wlan0, uid 1000)
      WakeupEvent(13:40:47.913, iface wlan0, uid 10004)
      WakeupEvent(13:40:52.622, iface wlan0, uid 10014)
      WakeupEvent(13:41:06.036, iface wlan0, uid 10004)
      ...
      
      Bug: 34901696
      Bug: 62179647
      Test: runtest frameworks-net
      Merged-In: Ie2676b20bfb411a1902f4942643df0c20e268d99
      
      (cherry pick from commit 60c9f63b)
      
      Change-Id: I3087f446fc998fc1ca895d975b80c4a1dd029bf3
      a87b15c9
  18. 14 Sep, 2017 1 commit
  19. 12 Sep, 2017 1 commit
  20. 08 Sep, 2017 1 commit
  21. 07 Sep, 2017 1 commit
  22. 06 Sep, 2017 1 commit
  23. 01 Sep, 2017 1 commit
  24. 31 Aug, 2017 1 commit
  25. 21 Aug, 2017 1 commit
  26. 17 Aug, 2017 1 commit
  27. 09 Aug, 2017 1 commit
  28. 31 Jul, 2017 1 commit
    • Glen Kuhne's avatar
      WifiMetrics: add histogram of connectable networks · e2d67c05
      Glen Kuhne authored
      Added histograms tracking the number of networks in range of a scan.
      Histograms are dimensioned on: <SSID|BSSID>*
      <Total|Saved|Open|Saved_or_Open|Passpoint>
      
      Test: Added unit test.
      frameworks/opt/net/wifi/tests/wifitests/runtests.sh
      Bug: 36819798
      Change-Id: If7a6f2bb844394966bd2cc542dd3ebfff42609e8
      e2d67c05
  29. 25 Jul, 2017 1 commit
  30. 20 Jul, 2017 1 commit
  31. 14 Jul, 2017 1 commit
  32. 13 Jul, 2017 1 commit
    • Eino-Ville Talvala's avatar
      CameraServiceProxy: Log camera usage metrics · 31ad8a3d
      Eino-Ville Talvala authored
      - Add new events for camera usage by camera facing
      - Dump stored camera events into metrics logs
      - Shuffle event ordering for privacy
      - Limit history to 100 entries at most
      
      Test: Verify event log collection includes camera events
      Bug: 32449509
      Change-Id: I2e80b84f9bba3691893dca653ac085fef0b6c98c
      31ad8a3d