Compare commits
No commits in common. "6c54b29140d0023b1a2f0d1c5f392efe15276377" and "c6b56cf04d754e0eb3464291297143c3b4617d72" have entirely different histories.
6c54b29140
...
c6b56cf04d
6 changed files with 4 additions and 89 deletions
|
@ -1,7 +1,7 @@
|
|||
From 51deb8e31ca57f19420277cc92b26375233e9050 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Cai <peter@typeblog.net>
|
||||
Date: Thu, 18 Aug 2022 15:44:46 -0400
|
||||
Subject: [PATCH 1/5] APM: Restore S, R and Q behavior respectively for
|
||||
Subject: [PATCH 1/4] APM: Restore S, R and Q behavior respectively for
|
||||
telephony audio
|
||||
|
||||
This conditionally reverts part of b2e5cb (T), 51c9cc (S) and afd4ce (R)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
From 5def9ad1a26e28d517666e34301dc725c1660e36 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Cai <peter@typeblog.net>
|
||||
Date: Wed, 24 Aug 2022 15:42:39 -0400
|
||||
Subject: [PATCH 2/5] APM: Optionally force-load audio policy for system-side
|
||||
Subject: [PATCH 2/4] APM: Optionally force-load audio policy for system-side
|
||||
bt audio HAL
|
||||
|
||||
Required to support our system-side bt audio implementation, i.e.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
From e31fc6f3f79848e6f7e7b1b4abe82aa26571cf7b Mon Sep 17 00:00:00 2001
|
||||
From: Peter Cai <peter@typeblog.net>
|
||||
Date: Thu, 25 Aug 2022 13:30:29 -0400
|
||||
Subject: [PATCH 3/5] APM: Remove A2DP audio ports from the primary HAL
|
||||
Subject: [PATCH 3/4] APM: Remove A2DP audio ports from the primary HAL
|
||||
|
||||
These ports defined in the primary HAL are intended for A2DP offloading,
|
||||
however they do not work in general on GSIs, and will interfere with
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
From 9d5b1f22e00167bd6f75fde20ace1c1d1e964318 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Cai <peter@typeblog.net>
|
||||
Date: Wed, 1 Jun 2022 16:56:46 -0400
|
||||
Subject: [PATCH 4/5] camera: Implement property to override default camera
|
||||
Subject: [PATCH 4/4] camera: Implement property to override default camera
|
||||
|
||||
Complement to the frameworks/base patch.
|
||||
|
||||
|
|
|
@ -1,43 +0,0 @@
|
|||
From d68bf009f5f9065163ae6ece838cdb77784e3595 Mon Sep 17 00:00:00 2001
|
||||
From: Emilian Peev <epeev@google.com>
|
||||
Date: Fri, 5 Aug 2022 17:28:06 -0700
|
||||
Subject: [PATCH 5/5] Camera: Avoid unnecessary close of buffer acquire fence
|
||||
fds
|
||||
|
||||
According to the gralloc lock documentation:
|
||||
The ownership of acquireFence is always transferred to the callee, even
|
||||
on errors.
|
||||
|
||||
Bug: 241455881
|
||||
Test: Manual using camera application
|
||||
Change-Id: Ieec34b54aaa7f0d773eccb593c3daaa3e41bae0b
|
||||
Merged-In: Ieec34b54aaa7f0d773eccb593c3daaa3e41bae0b
|
||||
---
|
||||
.../camera/libcameraservice/device3/Camera3OutputStream.cpp | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/services/camera/libcameraservice/device3/Camera3OutputStream.cpp b/services/camera/libcameraservice/device3/Camera3OutputStream.cpp
|
||||
index 1e20ee0eb8..f23a2de340 100644
|
||||
--- a/services/camera/libcameraservice/device3/Camera3OutputStream.cpp
|
||||
+++ b/services/camera/libcameraservice/device3/Camera3OutputStream.cpp
|
||||
@@ -327,7 +327,7 @@ status_t Camera3OutputStream::fixUpHidlJpegBlobHeader(ANativeWindowBuffer* anwBu
|
||||
status_t res =
|
||||
gbLocker.lockAsync(
|
||||
GraphicBuffer::USAGE_SW_READ_OFTEN | GraphicBuffer::USAGE_SW_WRITE_RARELY,
|
||||
- &mapped, fenceFd.get());
|
||||
+ &mapped, fenceFd.release());
|
||||
if (res != OK) {
|
||||
ALOGE("%s: Failed to lock the buffer: %s (%d)", __FUNCTION__, strerror(-res), res);
|
||||
return res;
|
||||
@@ -1298,7 +1298,7 @@ void Camera3OutputStream::dumpImageToDisk(nsecs_t timestamp,
|
||||
void* mapped = nullptr;
|
||||
base::unique_fd fenceFd(dup(fence));
|
||||
status_t res = graphicBuffer->lockAsync(GraphicBuffer::USAGE_SW_READ_OFTEN, &mapped,
|
||||
- fenceFd.get());
|
||||
+ fenceFd.release());
|
||||
if (res != OK) {
|
||||
ALOGE("%s: Failed to lock the buffer: %s (%d)", __FUNCTION__, strerror(-res), res);
|
||||
return;
|
||||
--
|
||||
2.37.2
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
From 2de099f8a86c02bc74b28beb7fbf8ccc71b17922 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Cai <peter@typeblog.net>
|
||||
Date: Mon, 5 Sep 2022 14:02:37 -0400
|
||||
Subject: [PATCH] SubscriptionController: Do not override default calling
|
||||
account from third-party apps
|
||||
|
||||
When the user has selected a calling account from a third-party app as
|
||||
default, it should not be overridden by the rest of the telephony
|
||||
subsystem (e.g. SIM subcription updates, or default SIM slot selection).
|
||||
|
||||
Otherwise, it creates a somewhat annoying situation where the user has
|
||||
to keep re-selecting the desired calling account after every reboot.
|
||||
|
||||
Test: manual
|
||||
Change-Id: Iccab64e9b3b3ab4773bd8944d47c2006f229d472
|
||||
---
|
||||
.../internal/telephony/SubscriptionController.java | 9 ++++++++-
|
||||
1 file changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/java/com/android/internal/telephony/SubscriptionController.java b/src/java/com/android/internal/telephony/SubscriptionController.java
|
||||
index 7e762d7af0..f2bff8b15f 100644
|
||||
--- a/src/java/com/android/internal/telephony/SubscriptionController.java
|
||||
+++ b/src/java/com/android/internal/telephony/SubscriptionController.java
|
||||
@@ -2846,7 +2846,14 @@ public class SubscriptionController extends ISub.Stub {
|
||||
PhoneAccountHandle currentHandle = telecomManager.getUserSelectedOutgoingPhoneAccount();
|
||||
logd("[setDefaultVoiceSubId] current phoneAccountHandle=" + currentHandle);
|
||||
|
||||
- if (!Objects.equals(currentHandle, newHandle)) {
|
||||
+ String currentPackageName =
|
||||
+ currentHandle == null ? null : currentHandle.getComponentName().getPackageName();
|
||||
+ boolean currentIsSim = "com.android.phone".equals(currentPackageName);
|
||||
+ // Do not override user selected outgoing calling account
|
||||
+ // if the user has selected a third-party app as default
|
||||
+ boolean shouldKeepOutgoingAccount = currentHandle != null && !currentIsSim;
|
||||
+
|
||||
+ if (!Objects.equals(currentHandle, newHandle) && !shouldKeepOutgoingAccount) {
|
||||
telecomManager.setUserSelectedOutgoingPhoneAccount(newHandle);
|
||||
logd("[setDefaultVoiceSubId] change to phoneAccountHandle=" + newHandle);
|
||||
} else {
|
||||
--
|
||||
2.37.2
|
||||
|
Loading…
Add table
Reference in a new issue