Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a75dc0c authored by Yu-Han Yang's avatar Yu-Han Yang
Browse files

Add GnssBatching AIDL HAL (hardware/interfaces)

Bug: 201253590
Test: atest VtsHalGnssTargetTest
Change-Id: Ied71c609dff714de06e2792f51d54a2dbddbb9d8
parent 197924ec
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -247,6 +247,7 @@
    </hal>
    <hal format="aidl" optional="true">
        <name>android.hardware.gnss</name>
        <version>2</version>
        <interface>
            <name>IGnss</name>
            <instance>default</instance>
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ cc_binary {
        "android.hardware.gnss@2.0",
        "android.hardware.gnss@1.1",
        "android.hardware.gnss@1.0",
        "android.hardware.gnss-V1-ndk",
        "android.hardware.gnss-V2-ndk",
    ],
    static_libs: [
        "android.hardware.gnss@common-default-lib",
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ cc_binary {
        "android.hardware.gnss@2.0",
        "android.hardware.gnss@1.1",
        "android.hardware.gnss@1.0",
        "android.hardware.gnss-V1-ndk",
        "android.hardware.gnss-V2-ndk",
    ],
    static_libs: [
        "android.hardware.gnss@common-default-lib",
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ cc_binary {
        "android.hardware.gnss@1.0",
        "android.hardware.gnss@1.1",
        "android.hardware.gnss@2.0",
        "android.hardware.gnss-V1-ndk",
        "android.hardware.gnss-V2-ndk",
    ],
    static_libs: [
        "android.hardware.gnss@common-default-lib",
+57 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2021 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
///////////////////////////////////////////////////////////////////////////////
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE.                          //
///////////////////////////////////////////////////////////////////////////////

// This file is a snapshot of an AIDL file. Do not edit it manually. There are
// two cases:
// 1). this is a frozen version file - do not edit this in any case.
// 2). this is a 'current' file. If you make a backwards compatible change to
//     the interface (from the latest frozen version), the build system will
//     prompt you to update this file with `m <name>-update-api`.
//
// You must not make a backward incompatible change to any AIDL file built
// with the aidl_interface module type with versions property set. The module
// type is used to build AIDL files in a way that they can be used across
// independently updatable components of the system. If a device is shipped
// with such a backward incompatible change, it has a high risk of breaking
// later when a module using the interface is updated, e.g., Mainline modules.

package android.hardware.gnss;
@VintfStability
parcelable GnssLocation {
  int gnssLocationFlags;
  double latitudeDegrees;
  double longitudeDegrees;
  double altitudeMeters;
  double speedMetersPerSec;
  double bearingDegrees;
  double horizontalAccuracyMeters;
  double verticalAccuracyMeters;
  double speedAccuracyMetersPerSecond;
  double bearingAccuracyDegrees;
  long timestampMillis;
  android.hardware.gnss.ElapsedRealtime elapsedRealtime;
  const int HAS_LAT_LONG = 1;
  const int HAS_ALTITUDE = 2;
  const int HAS_SPEED = 4;
  const int HAS_BEARING = 8;
  const int HAS_HORIZONTAL_ACCURACY = 16;
  const int HAS_VERTICAL_ACCURACY = 32;
  const int HAS_SPEED_ACCURACY = 64;
  const int HAS_BEARING_ACCURACY = 128;
}
Loading