summaryrefslogtreecommitdiff
path: root/core/java/android/privacy
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add adb command to force generate network watchlist report for ↵Ricky Wai2018-03-291-1/+12
|\ | | | | | | testing" into pi-dev
| * Add adb command to force generate network watchlist report for testingRicky Wai2018-03-271-1/+12
| | | | | | | | | | | | Test: atest com.android.server.net.watchlist Bug: 76102046 Change-Id: Ie31650f0b8e6d7481eae098c76eac2866b097b67
* | Use sha256 of a string as seed in RapporEncoder.insecureEncoderRicky Wai2018-03-221-1/+16
|/ | | | | | | | | Test: atest android.privacy.LongitudinalReportingEncoderTest Test: atest android.privacy.RapporEncoderTest Test: atest android.server.net.watchlist.PrivacyUtilsTests Bug: 76001602 Change-Id: I42d569f34d29125e7adf898b9553053a42149bd4
* Use encoder id as insecure DP encoder random seedRicky Wai2018-01-221-3/+2
| | | | | | | | | | | | | | | | | | 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
* Add differential privacy library and algorithmsRicky Wai2017-12-166-0/+601
- 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