Loading data/etc/go_handheld_core_hardware.xml +1 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ <feature name="android.software.print" /> <feature name="android.software.companion_device_setup" /> <feature name="android.software.autofill" /> <feature name="android.software.cant_save_state" /> <!-- Feature to specify if the device supports adding device admins. --> <feature name="android.software.device_admin" /> Loading data/etc/handheld_core_hardware.xml +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ <feature name="android.software.print" /> <feature name="android.software.companion_device_setup" /> <feature name="android.software.autofill" /> <feature name="android.software.cant_save_state" /> <!-- Feature to specify if the device supports adding device admins. --> <feature name="android.software.device_admin" /> Loading data/etc/tablet_core_hardware.xml +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ <feature name="android.software.print" /> <feature name="android.software.companion_device_setup" /> <feature name="android.software.autofill" /> <feature name="android.software.cant_save_state" /> <!-- Feature to specify if the device supports adding device admins. --> <feature name="android.software.device_admin" /> Loading include/android/hardware_buffer_jni.h +5 −3 Original line number Diff line number Diff line Loading @@ -31,9 +31,11 @@ __BEGIN_DECLS /** * Return the AHardwareBuffer associated with a Java HardwareBuffer object, * for interacting with it through native code. This acquires a reference * on the AHardwareBuffer that is returned; be sure to use * AHardwareBuffer_release() when done with it so that it doesn't leak. * for interacting with it through native code. This method does not acquire any * additional reference to the AHardwareBuffer that is returned. To keep the * AHardwareBuffer live after the Java HardwareBuffer object got garbage * collected, be sure to use AHardwareBuffer_acquire() to acquire an additional * reference. */ AHardwareBuffer* AHardwareBuffer_fromHardwareBuffer(JNIEnv* env, jobject hardwareBufferObj); Loading services/surfaceflinger/DisplayHardware/HWComposer.cpp +11 −3 Original line number Diff line number Diff line Loading @@ -596,7 +596,10 @@ status_t HWComposer::setPowerMode(int32_t displayId, int32_t intMode) { ALOGV("setPowerMode: Calling HWC %s", to_string(mode).c_str()); { auto error = hwcDisplay->setPowerMode(mode); LOG_HWC_ERROR(("setPowerMode(" + to_string(mode) + ")").c_str(), error, displayId); if (error != HWC2::Error::None) { LOG_HWC_ERROR(("setPowerMode(" + to_string(mode) + ")").c_str(), error, displayId); } } break; case HWC2::PowerMode::Doze: Loading @@ -605,14 +608,19 @@ status_t HWComposer::setPowerMode(int32_t displayId, int32_t intMode) { { bool supportsDoze = false; auto error = hwcDisplay->supportsDoze(&supportsDoze); if (error != HWC2::Error::None) { LOG_HWC_ERROR("supportsDoze", error, displayId); } if (!supportsDoze) { mode = HWC2::PowerMode::On; } error = hwcDisplay->setPowerMode(mode); LOG_HWC_ERROR(("setPowerMode(" + to_string(mode) + ")").c_str(), error, displayId); if (error != HWC2::Error::None) { LOG_HWC_ERROR(("setPowerMode(" + to_string(mode) + ")").c_str(), error, displayId); } } break; default: Loading Loading
data/etc/go_handheld_core_hardware.xml +1 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ <feature name="android.software.print" /> <feature name="android.software.companion_device_setup" /> <feature name="android.software.autofill" /> <feature name="android.software.cant_save_state" /> <!-- Feature to specify if the device supports adding device admins. --> <feature name="android.software.device_admin" /> Loading
data/etc/handheld_core_hardware.xml +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ <feature name="android.software.print" /> <feature name="android.software.companion_device_setup" /> <feature name="android.software.autofill" /> <feature name="android.software.cant_save_state" /> <!-- Feature to specify if the device supports adding device admins. --> <feature name="android.software.device_admin" /> Loading
data/etc/tablet_core_hardware.xml +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ <feature name="android.software.print" /> <feature name="android.software.companion_device_setup" /> <feature name="android.software.autofill" /> <feature name="android.software.cant_save_state" /> <!-- Feature to specify if the device supports adding device admins. --> <feature name="android.software.device_admin" /> Loading
include/android/hardware_buffer_jni.h +5 −3 Original line number Diff line number Diff line Loading @@ -31,9 +31,11 @@ __BEGIN_DECLS /** * Return the AHardwareBuffer associated with a Java HardwareBuffer object, * for interacting with it through native code. This acquires a reference * on the AHardwareBuffer that is returned; be sure to use * AHardwareBuffer_release() when done with it so that it doesn't leak. * for interacting with it through native code. This method does not acquire any * additional reference to the AHardwareBuffer that is returned. To keep the * AHardwareBuffer live after the Java HardwareBuffer object got garbage * collected, be sure to use AHardwareBuffer_acquire() to acquire an additional * reference. */ AHardwareBuffer* AHardwareBuffer_fromHardwareBuffer(JNIEnv* env, jobject hardwareBufferObj); Loading
services/surfaceflinger/DisplayHardware/HWComposer.cpp +11 −3 Original line number Diff line number Diff line Loading @@ -596,7 +596,10 @@ status_t HWComposer::setPowerMode(int32_t displayId, int32_t intMode) { ALOGV("setPowerMode: Calling HWC %s", to_string(mode).c_str()); { auto error = hwcDisplay->setPowerMode(mode); LOG_HWC_ERROR(("setPowerMode(" + to_string(mode) + ")").c_str(), error, displayId); if (error != HWC2::Error::None) { LOG_HWC_ERROR(("setPowerMode(" + to_string(mode) + ")").c_str(), error, displayId); } } break; case HWC2::PowerMode::Doze: Loading @@ -605,14 +608,19 @@ status_t HWComposer::setPowerMode(int32_t displayId, int32_t intMode) { { bool supportsDoze = false; auto error = hwcDisplay->supportsDoze(&supportsDoze); if (error != HWC2::Error::None) { LOG_HWC_ERROR("supportsDoze", error, displayId); } if (!supportsDoze) { mode = HWC2::PowerMode::On; } error = hwcDisplay->setPowerMode(mode); LOG_HWC_ERROR(("setPowerMode(" + to_string(mode) + ")").c_str(), error, displayId); if (error != HWC2::Error::None) { LOG_HWC_ERROR(("setPowerMode(" + to_string(mode) + ")").c_str(), error, displayId); } } break; default: Loading