Commit Graph

6210 Commits

Author SHA1 Message Date
Treehugger Robot
afa3bd9208 Merge "Prefer = delete in place of DISALLOW_COPY_AND_ASSIGN." am: 73c4e18d80 am: f288999050 am: e86ab75f4e am: 944a9486df
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1407407

Change-Id: Ia2cef8a44dee5258980cc4dc2392ae97674d2d66
2020-08-24 22:12:04 +00:00
Treehugger Robot
e86ab75f4e Merge "Prefer = delete in place of DISALLOW_COPY_AND_ASSIGN." am: 73c4e18d80 am: f288999050
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1407407

Change-Id: Ia3706d2810ebff030d077b91471fd260e16d1025
2020-08-24 20:03:04 +00:00
Stephen Hines
39fa5efb15 Prefer = delete in place of DISALLOW_COPY_AND_ASSIGN.
Clang-tidy expects modernized code to prefer deleting copy constructors
and assignment operators to legacy macros.

/disk/android_trees/aosp-master-plus-llvm/frameworks/base/cmds/idmap2/tests/ResultTests.cpp:263:3: error: prefer deleting copy constructor and assignment operator over using macro 'DISALLOW_COPY_AND_ASSIGN' [modernize-replace-disal low-copy-and-assign-macro,-warnings-as-errors]
  DISALLOW_COPY_AND_ASSIGN(NoCopyContainer);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Bug: http://b/155835175
Test: mm in idmap2
Change-Id: I3bb29b48a478a67cbda959f47b271ccf8543a768
2020-08-22 10:08:56 -07:00
Tom Cherry
94891ea6c6 Include log/log_read.h for reading logs
log/log.h is concerned with writing logs.

Bug: 78370064
Test: build
Merged-In: I3c7719bcbffc6809377e80292b00312b4598bfc2
Change-Id: I3c7719bcbffc6809377e80292b00312b4598bfc2
2020-08-17 18:25:17 +00:00
TreeHugger Robot
bb15e95ee1 Merge "Do not log package name on privacy-indicator logs" into rvc-qpr-dev am: 9f77031d9c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12337598

Change-Id: I6657a4c3c83881a1f1228c6717ad6e1d28218259
2020-08-13 06:45:05 +00:00
Philip P. Moltmann
9334f7aba7 Do not log package name on privacy-indicator logs
as requested by privacy review.

Bug: 162547999
Test: Built
Change-Id: I9333facfdc39cc7a344c5671f487928977f5d82e
2020-08-11 23:50:14 +00:00
Hasini Gunasinghe
d64ab1853d Merge "Add KeystoreKeyEventReported atom for keystore logging." 2020-08-10 15:09:49 +00:00
Jooyung Han
16bac8513e Switch aidl::nullable to std::optional
AIDL's @nullable is represented as std::optional in C++ backend.
The previous aidl::nullable was a temporary solution to avoid
merge-conflicts between rvc-dev and master branches.

Bug: 151275535
Test: m
Change-Id: I8fe5bfc1763087e7ff364b4408f862436492d1db
2020-08-10 08:36:35 +00:00
Treehugger Robot
4aedb4cdad Merge "Use -target 8 for android_uiautomator" 2020-08-04 19:42:02 +00:00
Liz Kammer
8b509e1e0c Merge "Remove create_stubs: false from droiddoc" am: a17375d057 am: 717f08295c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1386551

Change-Id: I83603132cf428137542310d7841fa919aea1983d
2020-08-04 19:14:46 +00:00
Colin Cross
43ffc371f6 Use -target 8 for android_uiautomator
android_uiautomator is distributed as part of the SDK and should use
-target 8 for compatibility with old JDKs.

Bug: 150153790
Bug: 162522383
Test: javap -v -cp out/target/common/obj/JAVA_LIBRARIES/android_uiautomator_intermediates/classes.jar com.android.uiautomator.core.Configurator | grep "major version"
Change-Id: I6871ab5436232ad3bffff6bd26adf2de6b3c06ff
Merged-In: I6871ab5436232ad3bffff6bd26adf2de6b3c06ff
(cherry picked from commit 51387a027d)
2020-08-04 10:38:39 -07:00
Colin Cross
1689f9b01d Merge "Use -target 8 for android_uiautomator" into rvc-dev am: 48666a1abb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12297232

Change-Id: I336f04d7d13ab2687d148138c67ca210243e70df
2020-08-04 16:46:19 +00:00
Colin Cross
48666a1abb Merge "Use -target 8 for android_uiautomator" into rvc-dev 2020-08-04 16:30:51 +00:00
Colin Cross
51387a027d Use -target 8 for android_uiautomator
android_uiautomator is distributed as part of the SDK and should use
-target 8 for compatibility with old JDKs.

Bug: 150153790
Bug: 162522383
Test: javap -v -cp out/target/common/obj/JAVA_LIBRARIES/android_uiautomator_intermediates/classes.jar com.android.uiautomator.core.Configurator | grep "major version"
Change-Id: I6871ab5436232ad3bffff6bd26adf2de6b3c06ff
2020-08-03 18:03:40 -07:00
Liz Kammer
16f2f94b7e Remove create_stubs: false from droiddoc
`create_stubs: false` is the default behavior in soong as of
https://r.android.com/1380730

Test: m docs
Bug: 144248501
Bug: 143136634
Change-Id: If13de5c0a4071b032bc460f5c57e27819b33051d
2020-08-03 14:48:04 -07:00
Treehugger Robot
adb2c1f51b Merge "address use of DummyIME in UI Automator" am: 54bac103d2 am: 4342d200c6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1381318

Change-Id: I54bd0dd55ff753972b145cc626b017068fa1427f
2020-07-31 22:30:31 +00:00
Guang Zhu
6e634c03c6 address use of DummyIME in UI Automator
See https://source.android.com/setup/contribute/respectful-code for reference

Bug: 161896447
Test: compile (code is not active in use)
Change-Id: Ice71490ff09969f229943d6ef952a09f4e283d14
Merged-In: Ice71490ff09969f229943d6ef952a09f4e283d14
2020-07-31 21:10:17 +00:00
Kelly Rossmoyer
ef7eb94977 Merge "Update language to comply with Android's inclusive language guidance" am: 3261ea7b0a am: eeb9df2066
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1378679

Change-Id: I7222d2363d090616d3a27281c9885ba0476da27b
2020-07-30 00:30:22 +00:00
Kelly Rossmoyer
3261ea7b0a Merge "Update language to comply with Android's inclusive language guidance" 2020-07-29 23:45:17 +00:00
Kelly Rossmoyer
6ba33c095c Merge "Update language to comply with Android's inclusive language guidance" am: e859848f9f am: e5da315dd7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1378577

Change-Id: I3463b8081b05f431f95f0477f64558d6c9797615
2020-07-29 23:26:42 +00:00
Kelly Rossmoyer
6f37c919ab Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference


BUG=161896447

Change-Id: I7a081cb7385c6db047c4ba369a91ac409f3ab20f
2020-07-29 21:22:26 +00:00
Kelly Rossmoyer
4c8a97a8f4 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference


BUG=161896447

Change-Id: I8d670c2c1aac98f06de3f714a957b08dfd285a0b
2020-07-29 21:03:05 +00:00
Tom Cherry
9255edfa7d Merge "Delete more unused includes in statsd" 2020-07-29 16:14:17 +00:00
Hall Liu
a125ea21f2 Merge "Run CtsTelecomTestCases in presubmit" am: 1b2995ca3f am: 0022d0dc37
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1334115

Change-Id: I3c242b6e16e6176f398f14f4aca58a7be0b42eae
2020-07-28 21:16:18 +00:00
Tom Cherry
ed93b3f904 Delete more unused includes in statsd
Test: build
Merged-In: Ie639f57f86c2573cd5e06a1fa9397487f4b3f235
Change-Id: Ie639f57f86c2573cd5e06a1fa9397487f4b3f235
2020-07-28 21:12:29 +00:00
Tom Cherry
521bba25c9 Merge "Delete more unused includes in statsd" into rvc-dev-plus-aosp 2020-07-28 21:12:04 +00:00
Hall Liu
1b2995ca3f Merge "Run CtsTelecomTestCases in presubmit" 2020-07-28 20:47:36 +00:00
Liz Kammer
17ab9a9452 Merge "Convert uiautomator-stubs-docs to use metalava" am: 0a35d9f797 am: 2f47f7eca3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1365298

Change-Id: I9d5e389e9ef95ba7d4235713e600e0d4d9a743db
2020-07-28 16:42:40 +00:00
Liz Kammer
0a35d9f797 Merge "Convert uiautomator-stubs-docs to use metalava" 2020-07-28 16:15:06 +00:00
Tom Cherry
fd5b18820c Delete more unused includes in statsd
Test: build
Change-Id: Ie639f57f86c2573cd5e06a1fa9397487f4b3f235
2020-07-27 21:43:27 +00:00
Jeffrey Huang
0f719e7fc4 Delete unused imports in Statsd
Delete libplatformprotos since its not used.

Test: m -j
Bug: 147599928
Merged-In: I80203756d714bf123978d26bbe81351a1abdc967
Change-Id: I80203756d714bf123978d26bbe81351a1abdc967
2020-07-27 13:27:26 -07:00
Liz Kammer
1805305f94 Convert uiautomator-stubs-docs to use metalava
Update current.txt and removed.txt to be created with metalava.

Test: m android_uiautomator
Test: m uiautomator-stubs-docs
Test: m checkapi
Bug: 144248501
Bug: 143136634
Change-Id: Ie1c52530dd03a05e244ebfd47bf9acf4448c5794
2020-07-27 12:42:56 -07:00
TreeHugger Robot
8392b1b8ba Merge changes I7d98ab42,I8753e681 into rvc-dev am: 7368ed7d03
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12166028

Change-Id: I2d6eb9bbc142e7da1a270a9bea22d645b6f54885
2020-07-17 04:03:39 +00:00
junyulai
472144c35a Report NR connected state to provide resolution of 5G NSA mode
Test: adb shell cmd stats pull-source 10082
Test: atest UidAtomTests#testDataUsageBytesTransfer
Bug: 160727498

Change-Id: I7d98ab425852ffa064c68f5dc50bd1f5a4a49ab9
Merged-In: I7d98ab425852ffa064c68f5dc50bd1f5a4a49ab9
(cherry-picked from ag/12167625)
2020-07-16 15:40:38 +08:00
Hall Liu
f75aef41e3 Merge "Add telecom command to stop block suppression" into rvc-dev 2020-07-08 22:15:43 +00:00
Hasini Gunasinghe
68d7e94f6f Add KeystoreKeyEventReported atom for keystore logging.
This is for migrating keystore logging to using statsd.

Test: Adding tests for logging is yet to be decided.
Change-Id: I858ff1fe46fcdd5acbca0c5b7972632f35377002
Merged-In: I66fbc2b8ed98a34f243387f8550b6523b13cb9a2
2020-07-08 19:32:39 +00:00
Hall Liu
b5d4decf24 Add telecom command to stop block suppression
Add a Telecom command to stop the number blocking suppression that
happens after an emergency call.

Bug: 158798240
Fixes: 160667708
Test: atest CtsTelecomTestCases
Change-Id: I122de1962fb6aa48a3092c2aa323dcbdcbb8f42e
2020-07-08 11:09:26 -07:00
Hall Liu
de99d04289 Run CtsTelecomTestCases in presubmit
Run Telecom CTS in presubmit, and include a few fixes to prevent
flakiness in said presubmit.

Fixes: 158798240
Test: presubmit
Change-Id: I9b9e2f2604615e93301bc83be7c3545c6f80cb9c
2020-07-01 14:51:59 -07:00
Shafik Nassar
43275e95d5 Merge "Add atom for general external storage access stats" into rvc-dev am: b1951ee22d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11894164

Change-Id: I8fe2721308efc9ebb019a9de0c8c27093c98b1ce
2020-07-01 16:36:39 +00:00
Shafik Nassar
b1951ee22d Merge "Add atom for general external storage access stats" into rvc-dev 2020-07-01 16:24:18 +00:00
Treehugger Robot
246140a9a3 Merge "Fix edge case in statsd alarms" 2020-06-30 17:10:11 +00:00
Tej Singh
cb396eb711 Fix edge case in statsd alarms
Right now, if an alarm fires exactly on time (within 1 second), or
exactly on a multiple of its period, statsd will reset the alarm for the
same time, which can result a loop of statsd setting an alarm, the alarm
firing, statsd setting an alarm at the same time, etc.

The fix is that if an alarm fires on time, we should move to the next
period.

Test: atest statsd_test (added to a test, which would fail without the
code change)
Bug: 159098080

Change-Id: I150538cb1d3d5a2b943df2a32d92f8f84bb96626
Merged-In: I150538cb1d3d5a2b943df2a32d92f8f84bb96626
2020-06-30 04:46:38 +00:00
Treehugger Robot
8c5ed53fad Merge "Add telecom command to stop block suppression" am: afe114c2f5 am: 533a19175c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1350781

Change-Id: I4cface851f70245a7efc4063e54c2943f2d0e362
2020-06-26 23:11:08 +00:00
Treehugger Robot
afe114c2f5 Merge "Add telecom command to stop block suppression" 2020-06-26 22:45:32 +00:00
Hall Liu
efe7351c7c Add telecom command to stop block suppression
Add a Telecom command to stop the number blocking suppression that
happens after an emergency call.

Bug: 158798240
Test: atest CtsTelecomTestCases
Change-Id: I122de1962fb6aa48a3092c2aa323dcbdcbb8f42e
2020-06-26 13:38:50 -07:00
TreeHugger Robot
3b4893abee Merge "Fix edge case in statsd alarms" into rvc-dev am: ac2c18c314
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12004848

Change-Id: Ib178e5d7f50152478543de24b29854b411567898
2020-06-26 20:06:44 +00:00
TreeHugger Robot
ac2c18c314 Merge "Fix edge case in statsd alarms" into rvc-dev 2020-06-26 20:05:04 +00:00
shafik
bb206054d5 Add atom for general external storage access stats
Define a new pulled atom which will be logged in MediaProvider.
The atom collects general access stats for external storage:
* Total number of accesses
* Total number of file path accesses
* Total number of secondary storage accesses
* List of accesses mime types

Test: build
Test: make statsd_testdrive ; ./out/host/linux-x86/bin/statsd_testdrive \
      -p com.google.android.providers.media.module 10085
Bug: 149669087
Change-Id: Ic0ebb040a05ec06603f1a617f290af6a2f21916d
2020-06-26 19:02:26 +00:00
Sudheer Shanka
c2643d2de4 Merge "Add COUNT_LIMIT_EXCEEDED as reason for BlobCommitted/Leased." into rvc-dev am: 9cd29ba6d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11980358

Change-Id: I47a819564002ae688edcc33b5921b796bcbcf057
2020-06-26 18:50:58 +00:00
Sudheer Shanka
9cd29ba6d6 Merge "Add COUNT_LIMIT_EXCEEDED as reason for BlobCommitted/Leased." into rvc-dev 2020-06-26 18:35:18 +00:00