aboutsummaryrefslogtreecommitdiff
path: root/tests/android_support_car_api_test
AgeCommit message (Collapse)Author
2018-05-30Fix setup for test CarAppFocusManagerTest (the other ones)Brad Stenning
The test setup was using a async call that would not finish before the first assert. This will not block until the test environment is ready. Bug:79152037 Test: run the test Change-Id: I3914769b437e44e31b7799c7d28a9a7c5d440bbb
2018-04-12Fix car-support-lib api test in Auto Embedded.Ram Periathiruvadi
SENSOR_TYPE_DRIVING_STATUS is not supported in AAE, hence if the test is running in an AAE environment, don't run testDrivignStatus(). Bug: 77340835 Test: runtest -x CarSensorManagerTest.java Change-Id: Id78b09fbc6bd1a5c35f49753cc8ab29549188e48
2018-02-27packages/services/Car: Set LOCAL_SDK_VERSION where possible.Anton Hansson
This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Test: make relevant packages Bug: 73535841 Change-Id: I1e77ed30aa2b67a6b8640a23fc42c28b0445bf29
2018-02-26Un-hide some of the APIs in relation to nav state API.Dean Harding
Also removed some now-redundant methods. Since these methods were previously @hide, there should be no harm in removing them as we un-@hide onEvent. Test: make update-car-api Change-Id: I28d4621b3bcae01489dceea487d15878bbbeaa6b
2017-12-08Stop statically including legacy-android-testPaul Duffin
Statically including legacy-android-test leads to duplicate classes which causes build time problems (with Proguard) and runtime problems on older SDK versions. This change: * Stops statically including legacy-android-test. * Adds compile time dependencies on andoid.test.base, android.test.mock and android.test.runner where necessary. * Adds <uses-library android:name="android.test.runner"/> to any affected package to ensure that the classes that were included by legacy-android-test are still available at runtime. That also adds a dependency on android.test.base and android.test.mock. The following change descriptions were generated automatically and so may be a little repetitive. They are provided to give the reviewer enough information to check the comments match what has actually been changed and check the reasoning behind the changes. * service/Android.mk Removed legacy-android-test from LOCAL_STATIC_JAVA_LIBRARIES because statically including the classes in CarService results in duplicate classes which leads to build time and compile time issues. * service/AndroidManifest.xml Add uses-library for android.test.runner because otherwise this change would change the set of files available to CarService at runtime. * tests/CarDiagnosticVerifier/Android.mk Removed legacy-android-test from LOCAL_STATIC_JAVA_LIBRARIES because statically including the classes in CarDiagnosticVerifier results in duplicate classes which leads to build time and compile time issues. * tests/CarDiagnosticVerifier/AndroidManifest.xml Add uses-library for android.test.runner because otherwise this change would change the set of files available to CarDiagnosticVerifier at runtime. * tests/EmbeddedKitchenSinkApp/Android.mk Removed legacy-android-test from LOCAL_STATIC_JAVA_LIBRARIES because statically including the classes in EmbeddedKitchenSinkApp results in duplicate classes which leads to build time and compile time issues. It is also unnecessary as EmbeddedKitchenSinkApp targets SDK version 25 which provides all the classes at runtime. * tests/EmbeddedKitchenSinkApp/AndroidManifest.xml Add uses-library for android.test.runner because otherwise this change would change the set of files available to EmbeddedKitchenSinkApp at runtime. * tests/android_car_api_test/Android.mk Removed legacy-android-test from LOCAL_STATIC_JAVA_LIBRARIES because statically including the classes in AndroidCarApiTest results in duplicate classes which leads to build time and compile time issues. Added 'android.test.base' to LOCAL_JAVA_LIBRARIES because AndroidCarApiTest's source depends on its classes and because of these changes they are no longer present on the compilation path. * tests/android_support_car_api_test/Android.mk Removed legacy-android-test from LOCAL_STATIC_JAVA_LIBRARIES because statically including the classes in AndroidSupportCarApiTest results in duplicate classes which leads to build time and compile time issues. It is also unnecessary as AndroidSupportCarApiTest targets SDK version 23 which provides all the classes at runtime. Added 'android.test.base' to LOCAL_JAVA_LIBRARIES because AndroidSupportCarApiTest's source depends on its classes and because of these changes they are no longer present on the compilation path. * tests/carservice_test/Android.mk Removed legacy-android-test from LOCAL_STATIC_JAVA_LIBRARIES because statically including the classes in CarServiceTest results in duplicate classes which leads to build time and compile time issues. Added 'android.test.base' to LOCAL_JAVA_LIBRARIES because CarServiceTest's source depends on its classes and because of these changes they are no longer present on the compilation path. * tests/carservice_unit_test/Android.mk Added 'android.test.base' to LOCAL_JAVA_LIBRARIES because CarServiceUnitTest's source depends on its classes and because of these changes they are no longer present on the compilation path. Removed legacy-android-test from LOCAL_STATIC_JAVA_LIBRARIES because statically including the classes in CarServiceUnitTest results in duplicate classes which leads to build time and compile time issues. * tests/obd2_app/Android.mk Removed legacy-android-test from LOCAL_STATIC_JAVA_LIBRARIES because statically including the classes in Obd2App results in duplicate classes which leads to build time and compile time issues. * tests/obd2_app/AndroidManifest.xml Add uses-library for android.test.runner because otherwise this change would change the set of files available to Obd2App at runtime. * tests/usb/AoapHostApp/Android.mk Removed legacy-android-test from LOCAL_STATIC_JAVA_LIBRARIES because statically including the classes in AoapHostApp results in duplicate classes which leads to build time and compile time issues. * tests/usb/AoapHostApp/AndroidManifest.xml Add uses-library for android.test.runner because otherwise this change would change the set of files available to AoapHostApp at runtime. Bug: 30188076 Test: make checkbuild Change-Id: I97bfbbfe7587e9e4ba6df2102e96e9ed3868cb90
2017-08-31fix sensor type comparison between car lib and support libKeun-young Park
- Handle snesors defined only in car lib while it is reserved in support lib bug: 65125210 Test: the test Change-Id: I002fe8e6fdccdaf2ae85f4d495b4689f0d19b321
2017-07-12Added annotation to test.smaraaosp
Test: Tested running it locally. Change-Id: I45c142d0c3fe4b5984d3d79bc75542ef406f2805
2017-03-27Remove ui resources from car support lib.Rakesh Iyer
Remove the ui resources since all of them have been migrated to car-stream-ui-lib and car-apps-common. Bug: 33210228 Test: Booted and did a sanity pass through all the apps. Change-Id: If8351d849797da6a707529d4d2c910052cdc5c11
2017-01-18Prepare for removal of legacy-test from default targetsPaul Duffin
In preparation for removing junit classes from the Android API the legacy-test target will be removed from the TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit dependencies on junit and/or legacy-android-test to ensure that modules will compile properly once it is removed. Bug: 30188076 Test: make checkbuild Change-Id: I0b573e69af8827d6068ba5217c85d7707597caf5
2016-11-08Api Council updates, largely merging CarConnectionCallback and ↵Jason Tholstrup
ServiceConnectionCallback into one. Test: make -j64 dist (batland) Change-Id: I6037c1cb0fba71e558f70187790cb085289baf17
2016-10-12Minor fixes to Car Support LibJason Tholstrup
Change-Id: Ic24958b06b622f28dc5473e116d1f4c3074c9808
2016-10-07more api clean-upKeun-young Park
- more @IntDef - *Listener to *Callback when multiple methods are there. - replace HvacPropertyId into CarHvacManager.ID_* - replace CabinPropertyId into CarCabinManager.ID_* - hide ValueTypeDef - also fix failing CarNavigationStatusManagerTest bug: 31930987 Change-Id: If8e8304a62f4f5d7d6f2d5d811bd65691370216e
2016-10-06instument cluster api reviewKeun-young Park
- String to CharSequence for event name - @IntDef clean ups - void for set* APIs App will lose app focus and will know it anyway. bug: 31930987 Change-Id: Ic84c0a0bbe2980f51c3c260f5aa1181bf1b9bbe3
2016-10-04Change CarAppFocusManager to be asynchronousVitalii Tomkiv
bug: 31867090 Test: run tests Change-Id: I5ea7719460ee29934efde8aa77c7a367bc86eb12
2016-10-03Many API council fixes.Jason Tholstrup
bug: 31913591 Change-Id: I3a0f9a57ecdccdae6c0b3b98b5bbf9b31733933b
2016-10-03removing extendableParcelable and related changesJason Tholstrup
Change-Id: Ie6cf991cda144fb456da1650d67e146c0003a9cb
2016-09-02Final round of API doc cleanups. Some vestigial methods were removed.Jason Tholstrup
Change-Id: Ia537b4075af5846436a0754481c8622cc7b1dca7
2016-08-31api lint refactorings and renaming of listener add/remove methods.Jason Tholstrup
Change-Id: Id8eceac2322564da8a5fd3f882574041a0b97704
2016-08-31@hiding stuff and misc api lint fixesJason Tholstrup
Change-Id: I88aadf3d80e1da06b976d752912a4cf1682bb257
2016-08-31bringing in code from g3 and updating some name spaces to matchJason Tholstrup
Change-Id: I0baf0d77ba2ec076e2e16849b11944907416066b
2016-07-12removing getActiveApps method. Unused and hard to implement without gmsJason Tholstrup
core changes. Change-Id: I023fda74ae70d48519f22746d8aa182f6e0ee624
2016-06-01Car api review: CarAppContextManager renaming to CarAppFocusManager.Vitalii Tomkiv
Changes include: - rename to CarAppFocusManager - allow multiple client listener for listening and setting. - change name for set / reset to requestAppFocus, abandonAppFocus - rename all APIs to use focus instead of context Bug: 28886557 Change-Id: I5e5285c104435dbd2eea43c4b0e43ae5ead81218
2016-06-01updating CarNavigationManager api to have new signature that mapsJason Tholstrup
requested and renamed to CarNavigationStatusListener. Change-Id: I2e525d716b51a4f418af5e85aa445a0afa0ee1ca
2016-05-16Fix Car app context manager tests.Vitalii Tomkiv
Bug: 28767566 Change-Id: I8e53ccc94fa5f1b5578cbb8bd28629a3bfe2056c
2016-05-11check sensor typeKeun-young Park
- both support.car and android.car should use the same enums. - use reflection to make sure that they are the same. bug: 28677436 Change-Id: Icfb68d62d76e3b1e9cbe2f1dc48e8b72bf1c0fb7
2016-03-24API review: CarAppContextManager.Vitalii Tomkiv
- Separate context change listener from ownership listener. Some apps may just want to monitor the state. Bug: 27598924 Change-Id: I496596b04273e943489e424760fff6764009f959
2016-03-23Add test size annotation to car testsPavel Maltsev
Bug:26873938 Change-Id: Ie0d0cb1ea41d77756ac6f88d27d2487245c7957d
2016-03-15Car support lib changes for shared support libJason Tholstrup
- remove IBinder from onServiceConnected - Add CarNotConnected exceptions to android.car.support methods - various type cleanup bug: 27679766 Change-Id: I58335da8296ec83ad2d6ffe76ba18d54ea8563a0
2016-03-14Revert "Updates to the car-support-lib in support of projected."Jason Tholstrup
This reverts commit 0d3b6b2cefae2927343cb4f80c9ebac628276ea7. Change-Id: I764758d9fd1ffa64b88cb9a2bdffd60a8924623c
2016-03-14Updates to the car-support-lib in support of projected.Jason Tholstrup
Change-Id: I4a4d34de7453bb979831b53fbce6f24bad2f9884
2016-03-07car api review: remove sensor types not relevant for embeddedKeun-young Park
- For embedded, sensor data like GPS, accelerometer, compass should be coming from SensorManager api. - For support lib, embedded wrapper should proxy to SensorManager for these removed sensors - also add support for low fuel warning. - duplicated carapi_test into android_car_apitest and android_support_car_apitest. bug: 27411121 Change-Id: Idf261b0793ed5debd1d0f4ac84372ea2b7614a63