Snap for 7263567 from 90f7214a9b
to tm-release
Change-Id: I6d8fc90d0336c7836420012825e123ca88723046
This commit is contained in:
commit
c0838d23be
23 changed files with 322 additions and 1 deletions
|
@ -2,6 +2,7 @@ soong_namespace {
|
||||||
imports: [
|
imports: [
|
||||||
"hardware/google/interfaces",
|
"hardware/google/interfaces",
|
||||||
"hardware/google/pixel",
|
"hardware/google/pixel",
|
||||||
|
"device/google/gs101",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -35,7 +35,7 @@ on fs
|
||||||
# FIXME(b/183223359): Only grant write access to SystemUI.
|
# FIXME(b/183223359): Only grant write access to SystemUI.
|
||||||
chmod 0666 /sys/class/drm/card0/card0-DSI-1/panel/backlight/panel0-backlight/local_hbm_mode
|
chmod 0666 /sys/class/drm/card0/card0-DSI-1/panel/backlight/panel0-backlight/local_hbm_mode
|
||||||
|
|
||||||
on property:mfgapi.touchpanel.permission=1
|
on property:vendor.mfgapi.touchpanel.permission=1
|
||||||
chmod 0600 /sys/devices/virtual/sec/tsp/cmd
|
chmod 0600 /sys/devices/virtual/sec/tsp/cmd
|
||||||
chown system system /sys/devices/virtual/sec/tsp/cmd
|
chown system system /sys/devices/virtual/sec/tsp/cmd
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,9 @@ PRODUCT_COPY_FILES += \
|
||||||
device/google/raviole/tts/es-es/es-es-x-ana-r22.zvoice:product/tts/google/es-es/es-es-x-ana-r22.zvoice\
|
device/google/raviole/tts/es-es/es-es-x-ana-r22.zvoice:product/tts/google/es-es/es-es-x-ana-r22.zvoice\
|
||||||
device/google/raviole/tts/es-es/es-es-x-multi-r22.zvoice:product/tts/google/es-es/es-es-x-multi-r22.zvoice
|
device/google/raviole/tts/es-es/es-es-x-multi-r22.zvoice:product/tts/google/es-es/es-es-x-multi-r22.zvoice
|
||||||
|
|
||||||
|
# PowerStats HAL
|
||||||
|
PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/oriole
|
||||||
|
|
||||||
# Keyboard bottom padding in dp for portrait mode
|
# Keyboard bottom padding in dp for portrait mode
|
||||||
PRODUCT_PRODUCT_PROPERTIES += ro.com.google.ime.kb_pad_port_b=10
|
PRODUCT_PRODUCT_PROPERTIES += ro.com.google.ime.kb_pad_port_b=10
|
||||||
|
|
||||||
|
|
|
@ -93,3 +93,6 @@ PRODUCT_COPY_FILES += \
|
||||||
|
|
||||||
# Display LBE
|
# Display LBE
|
||||||
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1
|
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1
|
||||||
|
|
||||||
|
# PowerStats HAL
|
||||||
|
PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/raven
|
||||||
|
|
|
@ -73,3 +73,6 @@ PRODUCT_COPY_FILES += \
|
||||||
|
|
||||||
DEVICE_MANIFEST_FILE += \
|
DEVICE_MANIFEST_FILE += \
|
||||||
device/google/gs101/nfc/manifest_se_gs101.xml
|
device/google/gs101/nfc/manifest_se_gs101.xml
|
||||||
|
|
||||||
|
# PowerStats HAL
|
||||||
|
PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/slider
|
||||||
|
|
|
@ -54,3 +54,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
||||||
# NFC
|
# NFC
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
device/google/gs101/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf
|
device/google/gs101/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf
|
||||||
|
|
||||||
|
# PowerStats HAL
|
||||||
|
PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/whitefin
|
||||||
|
|
33
powerstats/oriole/Android.bp
Normal file
33
powerstats/oriole/Android.bp
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
// 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.
|
||||||
|
|
||||||
|
soong_namespace {
|
||||||
|
imports: [
|
||||||
|
"hardware/google/pixel",
|
||||||
|
"device/google/gs101",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
cc_binary {
|
||||||
|
name: "android.hardware.power.stats-service.pixel",
|
||||||
|
defaults: ["powerstats_pixel_binary_defaults"],
|
||||||
|
|
||||||
|
srcs: [
|
||||||
|
"*.cpp",
|
||||||
|
],
|
||||||
|
|
||||||
|
shared_libs: [
|
||||||
|
"android.hardware.power.stats-impl.gs101",
|
||||||
|
],
|
||||||
|
}
|
44
powerstats/oriole/service.cpp
Normal file
44
powerstats/oriole/service.cpp
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
/*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "android.hardware.power.stats-service.pixel"
|
||||||
|
|
||||||
|
#include <PowerStatsAidl.h>
|
||||||
|
#include <Gs101CommonDataProviders.h>
|
||||||
|
|
||||||
|
#include <android-base/logging.h>
|
||||||
|
#include <android-base/properties.h>
|
||||||
|
#include <android/binder_manager.h>
|
||||||
|
#include <android/binder_process.h>
|
||||||
|
#include <log/log.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
LOG(INFO) << "Pixel PowerStats HAL AIDL Service is starting.";
|
||||||
|
|
||||||
|
// single thread
|
||||||
|
ABinderProcess_setThreadPoolMaxThreadCount(0);
|
||||||
|
|
||||||
|
std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>();
|
||||||
|
|
||||||
|
addGs101CommonDataProviders(p);
|
||||||
|
|
||||||
|
const std::string instance = std::string() + PowerStats::descriptor + "/default";
|
||||||
|
binder_status_t status = AServiceManager_addService(p->asBinder().get(), instance.c_str());
|
||||||
|
LOG_ALWAYS_FATAL_IF(status != STATUS_OK);
|
||||||
|
|
||||||
|
ABinderProcess_joinThreadPool();
|
||||||
|
return EXIT_FAILURE; // should not reach
|
||||||
|
}
|
33
powerstats/raven/Android.bp
Normal file
33
powerstats/raven/Android.bp
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
// 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.
|
||||||
|
|
||||||
|
soong_namespace {
|
||||||
|
imports: [
|
||||||
|
"hardware/google/pixel",
|
||||||
|
"device/google/gs101",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
cc_binary {
|
||||||
|
name: "android.hardware.power.stats-service.pixel",
|
||||||
|
defaults: ["powerstats_pixel_binary_defaults"],
|
||||||
|
|
||||||
|
srcs: [
|
||||||
|
"*.cpp",
|
||||||
|
],
|
||||||
|
|
||||||
|
shared_libs: [
|
||||||
|
"android.hardware.power.stats-impl.gs101",
|
||||||
|
],
|
||||||
|
}
|
44
powerstats/raven/service.cpp
Normal file
44
powerstats/raven/service.cpp
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
/*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "android.hardware.power.stats-service.pixel"
|
||||||
|
|
||||||
|
#include <PowerStatsAidl.h>
|
||||||
|
#include <Gs101CommonDataProviders.h>
|
||||||
|
|
||||||
|
#include <android-base/logging.h>
|
||||||
|
#include <android-base/properties.h>
|
||||||
|
#include <android/binder_manager.h>
|
||||||
|
#include <android/binder_process.h>
|
||||||
|
#include <log/log.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
LOG(INFO) << "Pixel PowerStats HAL AIDL Service is starting.";
|
||||||
|
|
||||||
|
// single thread
|
||||||
|
ABinderProcess_setThreadPoolMaxThreadCount(0);
|
||||||
|
|
||||||
|
std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>();
|
||||||
|
|
||||||
|
addGs101CommonDataProviders(p);
|
||||||
|
|
||||||
|
const std::string instance = std::string() + PowerStats::descriptor + "/default";
|
||||||
|
binder_status_t status = AServiceManager_addService(p->asBinder().get(), instance.c_str());
|
||||||
|
LOG_ALWAYS_FATAL_IF(status != STATUS_OK);
|
||||||
|
|
||||||
|
ABinderProcess_joinThreadPool();
|
||||||
|
return EXIT_FAILURE; // should not reach
|
||||||
|
}
|
33
powerstats/slider/Android.bp
Normal file
33
powerstats/slider/Android.bp
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
// 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.
|
||||||
|
|
||||||
|
soong_namespace {
|
||||||
|
imports: [
|
||||||
|
"hardware/google/pixel",
|
||||||
|
"device/google/gs101",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
cc_binary {
|
||||||
|
name: "android.hardware.power.stats-service.pixel",
|
||||||
|
defaults: ["powerstats_pixel_binary_defaults"],
|
||||||
|
|
||||||
|
srcs: [
|
||||||
|
"*.cpp",
|
||||||
|
],
|
||||||
|
|
||||||
|
shared_libs: [
|
||||||
|
"android.hardware.power.stats-impl.gs101",
|
||||||
|
],
|
||||||
|
}
|
44
powerstats/slider/service.cpp
Normal file
44
powerstats/slider/service.cpp
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
/*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "android.hardware.power.stats-service.pixel"
|
||||||
|
|
||||||
|
#include <PowerStatsAidl.h>
|
||||||
|
#include <Gs101CommonDataProviders.h>
|
||||||
|
|
||||||
|
#include <android-base/logging.h>
|
||||||
|
#include <android-base/properties.h>
|
||||||
|
#include <android/binder_manager.h>
|
||||||
|
#include <android/binder_process.h>
|
||||||
|
#include <log/log.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
LOG(INFO) << "Pixel PowerStats HAL AIDL Service is starting.";
|
||||||
|
|
||||||
|
// single thread
|
||||||
|
ABinderProcess_setThreadPoolMaxThreadCount(0);
|
||||||
|
|
||||||
|
std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>();
|
||||||
|
|
||||||
|
addGs101CommonDataProviders(p);
|
||||||
|
|
||||||
|
const std::string instance = std::string() + PowerStats::descriptor + "/default";
|
||||||
|
binder_status_t status = AServiceManager_addService(p->asBinder().get(), instance.c_str());
|
||||||
|
LOG_ALWAYS_FATAL_IF(status != STATUS_OK);
|
||||||
|
|
||||||
|
ABinderProcess_joinThreadPool();
|
||||||
|
return EXIT_FAILURE; // should not reach
|
||||||
|
}
|
33
powerstats/whitefin/Android.bp
Normal file
33
powerstats/whitefin/Android.bp
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
// 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.
|
||||||
|
|
||||||
|
soong_namespace {
|
||||||
|
imports: [
|
||||||
|
"hardware/google/pixel",
|
||||||
|
"device/google/gs101",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
cc_binary {
|
||||||
|
name: "android.hardware.power.stats-service.pixel",
|
||||||
|
defaults: ["powerstats_pixel_binary_defaults"],
|
||||||
|
|
||||||
|
srcs: [
|
||||||
|
"*.cpp",
|
||||||
|
],
|
||||||
|
|
||||||
|
shared_libs: [
|
||||||
|
"android.hardware.power.stats-impl.gs101",
|
||||||
|
],
|
||||||
|
}
|
44
powerstats/whitefin/service.cpp
Normal file
44
powerstats/whitefin/service.cpp
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
/*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define LOG_TAG "android.hardware.power.stats-service.pixel"
|
||||||
|
|
||||||
|
#include <PowerStatsAidl.h>
|
||||||
|
#include <Gs101CommonDataProviders.h>
|
||||||
|
|
||||||
|
#include <android-base/logging.h>
|
||||||
|
#include <android-base/properties.h>
|
||||||
|
#include <android/binder_manager.h>
|
||||||
|
#include <android/binder_process.h>
|
||||||
|
#include <log/log.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
LOG(INFO) << "Pixel PowerStats HAL AIDL Service is starting.";
|
||||||
|
|
||||||
|
// single thread
|
||||||
|
ABinderProcess_setThreadPoolMaxThreadCount(0);
|
||||||
|
|
||||||
|
std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>();
|
||||||
|
|
||||||
|
addGs101CommonDataProviders(p);
|
||||||
|
|
||||||
|
const std::string instance = std::string() + PowerStats::descriptor + "/default";
|
||||||
|
binder_status_t status = AServiceManager_addService(p->asBinder().get(), instance.c_str());
|
||||||
|
LOG_ALWAYS_FATAL_IF(status != STATUS_OK);
|
||||||
|
|
||||||
|
ABinderProcess_joinThreadPool();
|
||||||
|
return EXIT_FAILURE; // should not reach
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue