commit | 4bfbaa6047aa30a124282579a4f16573ca8a2682 | [log] [tgz] |
---|---|---|
author | Lei Yu <jackqdyulei@google.com> | Fri Apr 20 10:51:33 2018 -0700 |
committer | Lei Yu <jackqdyulei@google.com> | Mon Apr 23 13:13:56 2018 -0700 |
tree | 8394c3a9ca18cb6b33f3ee235f599e8df1cffc0d | |
parent | 0fcddc77c7803cfde7876cf25fca2704233d82f3 [diff] |
Update insert method for battery database 1. Add conflict code to ignore the confliction and return -1 when insert fails. 2. Add boolean return value to show whether insert sucessfully 3. Add unit test. We don't write robo test because robolectirc use "update" to shadow "insert" operation, which returns the wrong data. Bug: 77968649 Test: SettingsUnitTest Change-Id: Ibd3b53cdb1796d74ea4a2ca1f067e2b302b939e9