Commit Graph

5 Commits

Author SHA1 Message Date
Ricky Wai
b0558905c5 Merge "Add adb command to force generate network watchlist report for testing" into pi-dev 2018-03-29 00:04:26 +00:00
Ricky Wai
fda8ec0311 Add adb command to force generate network watchlist report for testing
Test: atest com.android.server.net.watchlist
Bug: 76102046
Change-Id: Ie31650f0b8e6d7481eae098c76eac2866b097b67
2018-03-27 15:13:26 +00: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
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
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