Commit graph

1985 commits

Author SHA1 Message Date
Sanket Padawe
6287508ad3 Merge "Fix test case for setSimCardPower radio api." 2017-04-24 19:39:15 +00:00
Sanket Padawe
5c79ad2bf8 Fix test case for setSimCardPower radio api.
Bug: 35800570
Test: vts
Change-Id: I93e78c46971158cd14666931b527d8e268e0a39e
Merged-in: I93e78c46971158cd14666931b527d8e268e0a39e
2017-04-21 16:58:19 +00:00
Hung-ying Tyan
b422f16e23 Remove dependency of libhardware_legacy
It is not used by bluetooth and nfc services.
Bug: 33241851
Bug: 37305530
Test: built and tested on sailfish

(cherry picked from commit 593eeb7a4b)

Change-Id: I599073296baa5eee72a1fce8caa4eb8352f66218
Merged-In: I599073296baa5eee72a1fce8caa4eb8352f66218
2017-04-19 22:45:32 +00:00
Steven Moreland
1c11c98d5e Move bluetooth test to vendor.
The test is still built in data/nativetest64, but it must be marked as
vendor since it depends on vendor modules.

Also proprietary -> vendor.

Test: build with BOARD_VNDK_VERSION := current
Test: run test on internal marlin, passes
Bug: 33241851
(cherry picked from commit 2cfae52a2e)
Merged-In: I856838fe208a4cd038ea16d47f03f6278224b2ee
Change-Id: I856838fe208a4cd038ea16d47f03f6278224b2ee
2017-04-19 22:15:07 +00:00
Treehugger Robot
f37bea87e8 Merge "Changed the naming scheme for Treble java libraries (both static and dynamic)" 2017-04-14 03:24:07 +00:00
Ningyuan Wang
b0bb01d808 wifi(interface): Add links to APF docs
Bug: 32119512
Test: Compiles
Merged-In: Iadb68a2a649b120b607735e4d88617b11740832f
Change-Id: I32ec491983d1d9e987a19a00b4fd8e60503c9e7f
2017-04-13 15:28:44 -07:00
Andreas Huber
6733baff6c Changed the naming scheme for Treble java libraries (both static and dynamic)
android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java

Bug: 37207894
Test: make
Change-Id: I177f4cfd42f635aaf096107af8309d1a82ed41c0
Merged-In: I8b91881dfaf507c0d852d56ebbb53ff0987e5a34
2017-04-13 15:16:27 -07:00
Treehugger Robot
12d911204f Merge "Mark hidl test libs as vendor." 2017-04-12 23:07:17 +00:00
Steven Moreland
d52e0ff21a Mark hidl test libs as vendor.
They must be on the vendor partition for hidl_test to be able to link to
them when the VNDK is in place.

Test: hidl_test
Bug: 33241851
(cherry picked from commit 00556e0a11)
Merged-In: I23c9e0674aaf33602bc9fde0515eb2f87ce5c60c
Change-Id: I23c9e0674aaf33602bc9fde0515eb2f87ce5c60c
2017-04-12 13:58:10 -07:00
Treehugger Robot
2e7ce4d73f Merge "bluetooth: include what you use" 2017-04-12 19:41:26 +00:00
Treehugger Robot
bbf39eb0b9 Merge "Update makefiles." 2017-04-12 17:13:52 +00:00
Steven Moreland
96510c80f8 bluetooth: include what you use
Helper libraries also now on vendor partition.

Test: links
Test: bluetooth works on internal Marlin
Bug: 33241851

Change-Id: Ie99faf9146ce2ce3df83a2b46acfaa36a54c16c2
2017-04-12 17:12:03 +00:00
Sanket Padawe
f7c337546a Merge "Update Radio and Sap service name in VTS." 2017-04-12 17:08:02 +00:00
Steven Moreland
0dd5ba23fb Update makefiles.
Test: pass
Change-Id: I5cf42c8ff1e11207394e4852ba0bd03e4e3b7d2e
2017-04-11 16:41:07 -07:00
Amit Mahajan
ca59e7f3ca Merge "Add p2 option in OpenLogicalChannel" 2017-04-11 21:25:43 +00:00
Sanket Padawe
bc959a5897 Update Radio and Sap service name in VTS.
Bug: 37164398
Test: VTS tests pass.
Change-Id: I71562e5b9709166695d08a96a04928027dcb4ee7
Merged-in: I71562e5b9709166695d08a96a04928027dcb4ee7
2017-04-11 11:07:25 -07:00
Treehugger Robot
085aca0ee3 Merge "Revert "Weaver HAL"" 2017-04-10 18:59:57 +00:00
Andrew Scull
66d499a26f Revert "Weaver HAL"
This reverts commit 694beec5d7.

Reason for revert: This will not be in O.

Change-Id: I301f265785815689e9cfc8412db1966a4565b561
2017-04-10 16:56:43 +00:00
Jaesoo Lee
e8600fe892 Merge changes from topic 'configstore-utils-log'
* changes:
  print log message for values retrieved from configstore
  Handle hidl transaction errors in ConfigStore
2017-04-07 02:06:44 +00:00
Treehugger Robot
2f5a5e10f7 Merge "Weaver HAL" 2017-04-06 20:31:51 +00:00
Andreas Huber
931ca54208 Merge "Empty interface IQuux which is completely unrelated to IBase and IBaz." 2017-04-06 18:47:16 +00:00
Andrew Scull
694beec5d7 Weaver HAL
Weaver is used to harden the user authentication flow by securely
storing secrets which can only be read by presenting the associated key
secret. The key secret is derived from the user's credential.

Bug: 35628284
Test: Implement HAL, boot and call from system_server
Change-Id: Ia72fd537670c08d27320c944a0fe91243137bf6c
2017-04-06 12:19:42 +01:00
Jaesoo Lee
a8959849ba print log message for values retrieved from configstore
This CL adds a code for printing log messages in clients-side utility
library functions (getXXX) for configstore so that the developer can
figure out which configuration values are actually retrieved from the configstore.

Bug: 36275627
Test: Built and check the log message appears

Change-Id: I7d5d80ca7a0317816c71016e013f9e73ad23ee08
Merged-In: I2c0895f8afbbb2947b62164acaf62a491c451dc0
(cherry picked from commit 0dc72ecbb7)
2017-04-06 11:10:03 +09:00
Pavel Maltsev
1c5704d08c Handle hidl transaction errors in ConfigStore
Test: surface flinger not failing, android now bootsup

Bug: b/36445794
Change-Id: I64cc404bec71f5e4eea2e0034f07b86fb60a3e32
Merged-In: I22fa7aab9fa92bc04333aaa0eef45891ebeba8e7
(cherry picked from commit 076b792ade608a7fdf4e600a42550ad17296a39e)
2017-04-06 11:10:03 +09:00
Treehugger Robot
792ec065e0 Merge "Added protections for RenderScript VTS tests." 2017-04-06 01:45:56 +00:00
Etan Cohen
6ae199efa4 Merge "[AWARE] Legacy HAL update: reduce host wakeup" 2017-04-05 22:09:37 +00:00
Andreas Huber
8410871493 Empty interface IQuux which is completely unrelated to IBase and IBaz.
Used to verify that it's not possible to obtain an IQuux interface from an
IBase/IBaz binder, i.e. IHwBinder.asInterface(...) properly respects the
interfaceChain.

Bug: 36749201
Test: hidl_test_java
Change-Id: I84419e78db22acdfcc7d9972d22d139641469bde
2017-04-05 12:46:13 -07:00
Joel Fernandes
1b8f6f7c77 Bluetooth HAL: Add to foreground schedtune group
EAS (Energy-Aware Scheduler) tends to cluster tasks together unless
they're marked to prefer an idle CPU (prefer-idle) during placement.
This is to save energy however it increases latencies. This is
noticeable when the Binder driver demotes the RT task to CFS and when
we try to do load balance in this path, the selection path still selects
a busy CPU. Add Bluetooth HAL service to the foreground schedtune group
to fix this as its critical for tasks like bluetooth audio playback.

Test: Boot and verify bluetooth HAL is in the foreground stune group
Bug: 36867985

Change-Id: Ib3c43cca4a2049af3700978b58a05989cc20b6ac
Signed-off-by: Joel Fernandes <joelaf@google.com>
2017-04-04 17:37:43 -07:00
Etan Cohen
20925b0f56 [AWARE] Legacy HAL update: reduce host wakeup
Legacy HAL update to add indications when a solicited publisher
receives a match. Not used in current HAL. However, also added a
control bit to turn off host notification which is now enabled.

Bug: 35195773
Test: integration (sl4a) tests
Change-Id: I8ff378abaae11d4feaa42a9901abb1b48069dc4f
2017-04-04 22:13:36 +00:00
Wileen Chiu
beb64d6721 Add p2 option in OpenLogicalChannel
- Adding support for P2 parameter
- Needed to support OMAPI 3.0 defined
  by SIM Alliance

Bug: 27360148
Change-Id: I88134eded001e14c12e1f2a18efd0a2b51bc22fe
2017-04-04 11:30:41 -07:00
Etan Cohen
945fbf8434 Merge "[AWARE] Create true translations between legacy and hidl enums"
am: 24ff2036ce

Change-Id: I00c0d5dce8a57ce76656c8521d93a974308b7c94
2017-04-04 17:48:53 +00:00
Etan Cohen
24ff2036ce Merge "[AWARE] Create true translations between legacy and hidl enums" 2017-04-04 17:40:25 +00:00
Ruchi Kandoi
f372f6ec51 Merge "nfc: vts: Correct parameters going for CoreInitialized"
am: 4133401913

Change-Id: Ie205284f3adcfd7f662c1d26dea1a01eb48a12e8
2017-04-04 00:41:51 +00:00
Treehugger Robot
4133401913 Merge "nfc: vts: Correct parameters going for CoreInitialized" 2017-04-04 00:36:15 +00:00
Etan Cohen
284511779c [AWARE] Create true translations between legacy and hidl enums
Replace implicits translations between legacy and hidl enums (using
casts) with explicit translations.

Bug: 35767620
Test: integration (sl4a) tests
Change-Id: I4ae4cd691226ce29bc0e92f9890fbb343a064505
2017-04-03 16:12:46 -07:00
Ruchi Kandoi
9150025076 nfc: vts: Correct parameters going for CoreInitialized
Core Initialized with parameters 1-3 leads the device into recovery
mode. Which causes the test to fail.

Bug: 36751759
Test: Test passes
Change-Id: I1375546cc66c147f26c315a042ca0afb49f0ce06
2017-04-03 22:44:21 +00:00
Yifan Hong
2699ac5b94 Merge "Test for getHashChain() in IBase."
am: c8c7ab74a1

Change-Id: I6519da67d36565da408240d2f59a547330971c06
2017-04-03 22:12:13 +00:00
Yifan Hong
c8c7ab74a1 Merge "Test for getHashChain() in IBase." 2017-04-03 22:05:25 +00:00
Yuexi Ma
ed25e56551 Merge "Updates bluetooth hal test to use VtsHalHidlTargetTestBase v3"
am: 177171f305

Change-Id: Iafecfba9ace2188d2a21f927b6afe2691ebfcdbc
2017-04-02 07:36:32 +00:00
Yuexi Ma
410d04e44c NFC VTS test use VtsHalHidlCallbackBase for callback wait and notify
am: bfefc5ef10

Change-Id: I0b40ae10c42b0e0a4f0696792c707ba0f990aadf
2017-04-02 07:36:30 +00:00
Treehugger Robot
177171f305 Merge "Updates bluetooth hal test to use VtsHalHidlTargetTestBase v3" 2017-04-02 07:30:45 +00:00
Yuexi Ma
bfefc5ef10 NFC VTS test use VtsHalHidlCallbackBase for callback wait and notify
VtsHalNfcV1_0TargetTest uses VtsHalHidlCallbackBase.
Callback class extends VtsHalHidlCallbackBase and use waitForCallback and notifyFromCallback

The original NFC test contains the following use cases:
  * Callback notify happens before wait
  * Multiple waiting in serial
The modified version added the following use cases:
  * Wait for specific callback function
  * Passing callback arg data along wait and notify functions

Bug: 36036059
Test: make VtsHalNfcV1_0TargetTest, adb push & adb shell
Change-Id: Ic6668a18254661d07c4ff37309cd96ea5f786d29
2017-04-01 23:36:14 -07:00
Yuexi Ma
b8012eb907 Updates bluetooth hal test to use VtsHalHidlTargetTestBase v3
Test: pass
Change-Id: Ia5237a27800010174f2b23a3a4b1157f1c48781f
2017-03-31 23:27:59 +00:00
Yifan Hong
604e8f0da2 Test for getHashChain() in IBase.
Each interface has a getHashChain() method that
returns the hash of all .hal files from the rtti
of the interface up to IBase.

Test: hidl_test

Bug: 36602587
Change-Id: I53a79ba69edd109f169c37dbe0fd10e302eb929c
2017-03-30 17:34:03 -07:00
Michael Butler
b2039ad764 Added protections for RenderScript VTS tests.
Changed many EXPECT_NE to ASSERT_NE for objects that are required later
in the test which would potentially cause a segfault. Additionally updated
a few descriptions.

Bug: 35915961

Test: mm and run on angler
Change-Id: I17c85b2c774688d82b59be2f0b383447e03349e0
2017-03-30 17:20:12 -07:00
Myles Watson
68a27cc5ab Merge "Enable the clang-format pre-submit hook"
am: 3b9e23513e

Change-Id: Idf1651f9e76c8b7e6dfbc70dab8ae567a5f53937
2017-03-30 22:46:39 +00:00
Treehugger Robot
3b9e23513e Merge "Enable the clang-format pre-submit hook" 2017-03-30 22:43:40 +00:00
Myles Watson
1296c1d0d4 Enable the clang-format pre-submit hook
Bug: 36699008
Test: Try to upload a patch with formatting errors.
Change-Id: I4af7d142ccbbaf39eb236547487c59c5ff8f2cd6
2017-03-30 13:26:49 -07:00
Yuexi Ma
d0de215476 Merge "Change sytle of radio and sap tests to clang google"
am: 7441c791b6

Change-Id: I0aa6ad8fcf24862278705a1f0a9b43cb08370c80
2017-03-30 20:10:59 +00:00
Treehugger Robot
7441c791b6 Merge "Change sytle of radio and sap tests to clang google" 2017-03-30 20:04:54 +00:00