Commit Graph

7 Commits

Author SHA1 Message Date
Nicolas Geoffray
b0284fb5de Exempt tests for hidden APIs.
Bug: 64382372
Bug: 74963051
Test: m
Change-Id: I5234dd6230f2bdd6ffccbf12b25a02d929d20161
2018-04-06 14:54:39 +01:00
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
jdesprez
60b0348c3d Update a bunch of AndroidTest for apct suite
Test: build device-tests
Bug: 74440293
Change-Id: I3c64eb8b5b2932632dd5dd46a5894a68a4835790
2018-03-14 10:03:56 -07: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
Ricky Wai
875374a494 Use encoder id as insecure DP encoder random seed
Originally all apps that use insecure DP encoder will generate
the same result in IRR encoder as IRR is purely rely on random generator,
hence all apps will return the same IRR result in encodeBoolean() for
insecure encoder.

Now we change insecure encoder to use encoder id as random generator seed,
so different app will have different deterministic insecure encoder result.

Also, this CL fixes some existing failed tests.

Bug: 63908748
Test: runtest frameworks-services -p com.android.server.net.watchlist PASS
Test: bit FrameworksPrivacyLibraryTests:android.privacy.RapporEncoderTest PASS
Test: bit FrameworksPrivacyLibraryTests:android.privacy.LongitudinalReportingEncoderTest PASS
Change-Id: Iab84a2932d8f84da1dd2f880d2c1567dcbf1e090
2018-01-22 18:55:01 +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