Commit Graph

4 Commits

Author SHA1 Message Date
Ricky Wai
b70d84a68b Use sha256 of a string as seed in RapporEncoder.insecureEncoder
Test: atest android.privacy.LongitudinalReportingEncoderTest
Test: atest android.privacy.RapporEncoderTest
Test: atest android.server.net.watchlist.PrivacyUtilsTests

Bug: 76001602
Change-Id: I42d569f34d29125e7adf898b9553053a42149bd4
2018-03-22 20:12:51 +00:00
Anton Hansson
ab6ec61251 frameworks/base: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: I4233b9091d9066c4fa69f3d24aaf367ea500f760
2018-02-28 15:13:23 +00:00
Peter Visontay
de61120d19 Add AndroidTest.xml for privacy tests.
Test: atest FrameworksPrivacyLibraryTests
Change-Id: I1db3c71a3ceec941dc1c2395868c6a9a449848d1
2018-01-04 19:41:07 +00:00
Ricky Wai
0d1bc33285 Add differential privacy library and algorithms
- Created a differential privacy framework interface
- Added 2 DP algorithms in DP framework:
  -  Rappor, a wrapper based on external/rappor project
  -  Longitudinal Reporting, DP enhancement based on Rappor
- Created Privacy Tests for testing all privacy libraries
- Added original Rappor test case in privacy test
- Created tests to verify Rappor and Longitudinal Reporting result in DP framework

Test: bit FrameworksPrivacyLibraryTests:android.privacy.LongitudinalReportingEncoderTest
Test: bit FrameworksPrivacyLibraryTests:android.privacy.RapporEncoderTest

Change-Id: Id460665059653924434c141686b5cad3fb697046
2017-12-16 19:19:58 +00:00