Commit Graph

69660 Commits

Author SHA1 Message Date
Tianjie Xu
1b0da0cdfd Merge "Add error/cause code reporting for Non A/B OTA failures" am: 2db2f6d265
am: c2a0d6776c

Change-Id: I2061f6c122f64d9156ca4c17ec3d410eff213a07
2017-05-03 17:51:56 +00:00
Tianjie Xu
2db2f6d265 Merge "Add error/cause code reporting for Non A/B OTA failures" 2017-05-03 17:34:29 +00:00
Tianjie Xu
223edeb272 Add error/cause code reporting for Non A/B OTA failures
Read and report the error_code & cause_code from last_install.

Bug: 36866437
Test: mma & observe the sysui event in logcat -b events
Change-Id: I5357861fc758e14ed3235bfc8cc76d7561ccea58
2017-05-02 23:02:11 -07:00
Hugo Benichi
27b0eebb4d Merge "NsdManager: add test coverage for discoverServices()" am: 3e21b1745c
am: 60182dbe4e

Change-Id: I341cbbfd36b4e849651505c187053115833ca4b0
2017-05-02 08:59:22 +00:00
Treehugger Robot
3e21b1745c Merge "NsdManager: add test coverage for discoverServices()" 2017-05-02 08:44:29 +00:00
Hugo Benichi
9a3e69d9b6 Merge "NsdManager: unit test coverage for servive registration" am: b0e408450c
am: bc57faa1ac

Change-Id: I55a7a1a33cfd30a5c8d5ede67f6a1c602a840e6a
2017-05-02 06:42:44 +00:00
Treehugger Robot
b0e408450c Merge "NsdManager: unit test coverage for servive registration" 2017-05-02 06:27:10 +00:00
Hugo Benichi
93f4591684 NsdManager: add test coverage for discoverServices()
Test: added new tests
Bug: 37013369, 33298084
Change-Id: If6c1113ee1bd4690db90abd5a61c3e229c827aec
2017-05-02 15:26:33 +09:00
Hugo Benichi
8c5eeb0afc NsdManager: unit test coverage for servive registration
This patch adds test coverage for NsdManager#registerService() and
NsdManager#unregisterService(). This test shows a potential defect in
the api: if unregisterService() fails, the associated listener is always
unregistered from NsdManager. If the service initially registered is
still registered, this potentially make it impossible to unregister.

Test: added new unit test
Bug: 37013369, 33298084
Change-Id: Ia089b6d2f2a349907a8b29d9a3acd7f59e177887
2017-05-02 13:31:24 +09:00
Colin Cross
316c9ce694 Add missing symbol
Bug: 35998031
Test: builds
Change-Id: Ie085b4058c5714df9913ceb9fd03fb4658168520
2017-05-01 15:02:50 +00:00
Yifan Hong
5fe979b404 Merge "Add android.os.VintfRuntimeInfo" am: 4f8a375958
am: e0bf06dd9e

Change-Id: Iae968194f2dbaa2effcf19399b1165a233aa32ba
2017-04-29 03:12:52 +00:00
Treehugger Robot
4f8a375958 Merge "Add android.os.VintfRuntimeInfo" 2017-04-29 03:00:08 +00:00
Yifan Hong
1bda67369c Add android.os.VintfRuntimeInfo
This is the Java API for ::android::vintf::RuntimeInfo.
This will be used by CTS for device info report purposes.

Bug: 28656227
Test: cts-tradefed run cts -m CtsEdiHostTestCases --skip-preconditions
Change-Id: Id87c95a17e77d7ec1794a6f850de97edf9ae892d
2017-04-28 17:10:28 -07:00
Jakub Pawlowski
62fc08f684 Merge "Bluetooth: bluetooth.le API fixes" am: cf95973276
am: 6af9bde898

Change-Id: I20d885ee7f12821885767a13cafac6c3dec4ba2d
2017-04-28 21:55:50 +00:00
Jakub Pawlowski
9d4abb5631 Bluetooth: bluetooth.le API fixes
Fix minor spelling problems.
Throw IllegalStateException instead of IllegalArgumentException in
build().

Bug: 37532634
Test: none
Change-Id: I73b6f04aec98f5baffb06a363e2a3f71e8cec3c4
2017-04-28 21:35:53 +00:00
Tomasz Wasilczyk
3329b63b40 Merge "Fix equality method implementation in BandConfig class." am: 30a34ec0e2
am: 5acbf70872

Change-Id: I57e6fa0f946f25048da1524f07fa4eb13fdb2f1c
2017-04-28 20:25:43 +00:00
Tomasz Wasilczyk
30a34ec0e2 Merge "Fix equality method implementation in BandConfig class." 2017-04-28 20:09:04 +00:00
Tomasz Wasilczyk
dd767065fe Fix equality method implementation in BandConfig class.
Test: instrumentation (in master branch)
Bug: b/36863239
Change-Id: I2f3b68ba3fac75b849ee99dc06d0a13478168b7e
2017-04-28 08:19:34 -07:00
Martijn Coenen
5aaf5543e4 Merge "Validate incoming data properly." am: 5718b01b9a
am: 4fcfe05707

Change-Id: I129a3e6c1b401448c075cd63c5396914bfb67fd7
2017-04-28 14:44:47 +00:00
Martijn Coenen
7c00639a68 Validate incoming data properly.
Make sure calls to readBuffer() and readEmbeddedBuffer()
get the correct size, parent and offset passed in, so
these can be validated by libhwbinder.

Modified HwBlob to take a length argument as well,
so it can be validated.

Bug: 30498700
Test: hidl_test, hidl_test_java, Youtube, Maps, Netflix, Camera
Change-Id: I28712db97ae29b46acfe952d3d92d1ce5f666a4d
Merged-In: I28712db97ae29b46acfe952d3d92d1ce5f666a4d
2017-04-27 16:24:26 -07:00
Jakub Pawlowski
493ae0da60 Merge "Bluetooth: Add constants to ScanResult" am: 369a94496c
am: b6656f07e7

Change-Id: I29f06e5c612e29ae25bde0e3e8854bf88213b65d
2017-04-27 22:33:14 +00:00
Jakub Pawlowski
c7c01a2877 Bluetooth: Add constants to ScanResult
Add TX_POWER_NOT_PRESENT and PERIODIC_INTERVAL_NOT_PRESENT

Test: none
Bug: 37536707
Change-Id: Ia48a30f44a961c6e0babd17ecaed0eb93c98ecad
2017-04-27 21:03:46 +00:00
Jakub Pawlowski
3657c398e1 Merge "Fix NPE when accessing mCallback in BluetoothGatt" am: 1be8fb23eb
am: 28f182aa87

Change-Id: I85f4847b7c530bded24dcb27faa851ed9b5ba653
2017-04-27 19:56:09 +00:00
Jakub Pawlowski
0e4ac75f2e Fix NPE when accessing mCallback in BluetoothGatt
This issue was introduced in commit
4eab49652e.

Bug: 37710354
Test: none
Change-Id: I2d985ce97c44d4e096713e156e57437f44ea3ddb
2017-04-27 19:37:35 +00:00
Chen Xu
36b80785a6 Merge "Add getVisualVoicemailPackageName()" am: 998eb212bd
am: 2eae7bfc03

Change-Id: I86cec4ba1f4cbc86fa84dc9d036542bebcc93100
2017-04-27 18:07:30 +00:00
Ajay Panicker
c1da2a0341 Merge "Limit btsnoop file size (3/8)" am: 37cad12cb1
am: e429211064

Change-Id: I9ce4924aba66c45425789dd16e477dfa99e6b74a
2017-04-27 17:48:58 +00:00
Chen Xu
998eb212bd Merge "Add getVisualVoicemailPackageName()" 2017-04-27 17:46:04 +00:00
Ajay Panicker
37cad12cb1 Merge "Limit btsnoop file size (3/8)" 2017-04-27 17:29:37 +00:00
Mukesh Agrawal
864dffcd81 Merge "Log: increase visibility of Log.TerribleFailure" am: 5e253647ad
am: f6328d6943

Change-Id: I171542c4fd7ec40a588e5ae9e6d5cf601a77aeed
2017-04-27 16:56:56 +00:00
Mukesh Agrawal
5e253647ad Merge "Log: increase visibility of Log.TerribleFailure" 2017-04-27 16:40:48 +00:00
Ajay Panicker
731a26666d Limit btsnoop file size (3/8)
Limit btsnoop file size by rotating between snoop files. The rotation occurrs
when a fixed number of packets have been logged and will start overwriting
the older file.

Bug: 35998031
Test: Enable snoop logs from developer options and let logs get large
Merged-In: I40d5da4c1b1c9b45908e5790d130f1c5e804c773
Change-Id: I40d5da4c1b1c9b45908e5790d130f1c5e804c773
2017-04-27 00:05:31 +00:00
Ta-wei Yen
5259d8c9ff Add getVisualVoicemailPackageName()
Make NMR2 voicemail columns public

getVisualVoicemailPackageName() and the IS_OMTP_VOICEMAIL is used by
the voicemail UI to filter out voicemails not from the current visual
voicemail app, for example legacy telephony voicemails or previous
default dialer. These voicmails all represent the same source and are
likely duplicates.

BACKED_UP and RESTORED are used by the system dialer voicemail back
up and restore feature in NMR2. Since there are no API bump, it was
hidden and made public in this CL instead. See ag/1803794

ARCHIVED is used to prevent locally saved voicemails from being
deleted during a sync because it does not exist on the server.

Bug: 34463609
Fixes: 34463609
Bug: 32414216
Test: cts test android.provider.cts.VoicemailContractTest
    android.telephony.cts.VisualVoicemailServiceTest

Change-Id: Iec1e499e763ad92f4a822715b6022e9cbe557c11
Merged-in: Iec1e499e763ad92f4a822715b6022e9cbe557c11
2017-04-26 14:03:30 -07:00
nharold
52dab83f7a Merge "Hide IpSecManager, IpSecTransform, and IpSecAlgorithm" am: 01e368f26d
am: 939528045a

Change-Id: Ic415f9f6d45f8c2477c3708c87af31ef725aa224
2017-04-26 17:31:23 +00:00
Nathan Harold
ac11ccb1f6 Hide IpSecManager, IpSecTransform, and IpSecAlgorithm
These classes, originally planned to be part of the
public API, are not ready for public consumption.
They are planned to be un-hidden in a future release.

Bug: 37681043
Test: make update-api and make
Change-Id: I8caccd3f8455341cb56a2256354eacbadedff047
2017-04-26 06:50:54 +00:00
mukesh agrawal
c2a56b279e Log: increase visibility of Log.TerribleFailure
The Log.setWtfHandler() provides a way to override
the default TerribleFailureHandler, so that we can
test that a piece of code reports as terrible
failure as expected.

Unfortunately, we can't actual use setWtfHandler()
at the moment. The problem is as follows:
1. The Log.setWtfHandler() method requires a
   Log.TerribleFailureHandler instance.
2. The Log.TerribleFailureHandler interface requires
   subclasses to implement a onTerribleFailure()
   method. The method requires a Log.TerribleFailure
   argument.
3. Log.TerribleFailure is a private inner class.

Given the above, classes outside of Log can't create
an appropriate argument to pass to Log.setWtfHandler().

To resolve this, we update the visibility of
Log.TerribleFailure to be the same as that of
Log.setWtfHandler(), and Log.TerribleFailureHandler.

Test: m -j32
Bug: 37425059
Change-Id: Ie646b931869582398d61495e367e0d36e767a3e3
2017-04-26 00:49:34 +00:00
Chen Xu
6c65be4d3e Merge "Add VisualVoicemailService" am: 8c6925a88f
am: ac78d9ae25

Change-Id: I541ad952ccab5a466e9d26c11478cc18fa69ddc0
2017-04-25 22:10:21 +00:00
Chen Xu
8c6925a88f Merge "Add VisualVoicemailService" 2017-04-25 21:54:53 +00:00
Jakub Pawlowski
adc97e1c33 Merge "Bluetooth: expand comments on new PHY constants" am: bdeb8539e8
am: 3e56fdba72

Change-Id: I092b69b4e9f3ebd9a29b5c31e76de37035d20843
2017-04-25 19:56:43 +00:00
Jakub Pawlowski
36ceeb548e Merge "Bluetooth: Add handler parameter to connectGatt" am: 1f4e111808
am: 41eae807ef

Change-Id: I5192fa676a27f6627c94984d5e689dc1ddd1d000
2017-04-25 19:54:54 +00:00
Jakub Pawlowski
6260ea5ab7 Merge "Bluetooth: document status value in PHY read/update" am: 06abc2c404
am: 3d95c68d2e

Change-Id: I765bbeb4e21ef1102f92c708e93a339f928ee5e3
2017-04-25 19:41:54 +00:00
Treehugger Robot
bdeb8539e8 Merge "Bluetooth: expand comments on new PHY constants" 2017-04-25 19:36:37 +00:00
Treehugger Robot
1f4e111808 Merge "Bluetooth: Add handler parameter to connectGatt" 2017-04-25 19:36:22 +00:00
Jakub Pawlowski
60c7dac775 Bluetooth: expand comments on new PHY constants
Bug: 37544152
Test: the all-knowing eyes of the reviewers
Change-Id: I8f5a756a204fe90960700e1dc42f64824d3b844a
2017-04-25 17:46:50 +00:00
Jakub Pawlowski
e55c446977 Bluetooth: document status value in PHY read/update
Bug: 37544152
Test: none
Change-Id: I2bac468f833c73cd282b1dac80b6553917996604
2017-04-25 17:46:40 +00:00
Jakub Pawlowski
4eab49652e Bluetooth: Add handler parameter to connectGatt
Bug: 37544152
Test: sl4a GattReadTest GattWriteTest
Change-Id: I043dfefaafe9f3700418f2c855c52aac3644310f
2017-04-25 17:46:33 +00:00
Etan Cohen
887fd90742 Merge "[AWARE] Add UID checking to WifiAwareNetworkSpecifier" am: 2fd19ffa06
am: 3c6305cc55

Change-Id: I4e2461f68db983292c167a11746b8cfe47995e77
2017-04-25 13:34:06 +00:00
Etan Cohen
2fd19ffa06 Merge "[AWARE] Add UID checking to WifiAwareNetworkSpecifier" 2017-04-25 13:21:36 +00:00
Ta-wei Yen
4a6df3c383 Add VisualVoicemailService
VisualVoicemailService can be implemennted by the default dialer to
provide a visual voicemail client similar to the OMTP visual voicemail
spec.

Other APIs such as the SMS filter and hidden text SMS sending are made
public and consolidated into the service interface.

Test: make. CTS tests in a follow up CL
Change-Id: Ib5e9aa15fc098f4c13b15e5dbecf9ab646e0e400
Merged-in: Ib5e9aa15fc098f4c13b15e5dbecf9ab646e0e400
2017-04-25 01:23:37 +00:00
Jakub Pawlowski
526719a1a2 Merge "Get rid of the IAdvertiserCallabck" am: 7503b11b14
am: 2fb02a252c

Change-Id: Idbdbc555a141b6f231e91cf05525c7812118db49
2017-04-24 19:11:07 +00:00
Hugo Benichi
a80bb82b4e Merge "Move byte logics from ApfFilter into BitsUtil" am: 21b9b3a8ff
am: 12c1074c8b

Change-Id: Ib128cc07e0e9df634a495f50c02dee72d6b1bf9c
2017-04-24 18:58:54 +00:00