Conversation
* Insert overlay below the front scrim. Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
…usic logic If message is MSG_L_BT_ACTIVE_DEVICE_CHANGE_EXT, do not mute on bluetooth event if music is playing on a another headset. If usb device is connected after bt device, and music is playing on usb device, dont mute on MSG_L_BT_ACTIVE_DEVICE_CHANGE_EXT. Change-Id: I963da7f69cd971ebb0f181a6b8b1fd0c8e7ccbbf Signed-off-by: chenxin20 <chenxin20@xiaomi.com>
Change-Id: I7aaf57be5d62337f49a5dbbbfdb5ed0a4f187727 Signed-off-by: Rve27 <rve27github@gmail.com> Signed-off-by: Ghosuto <clash.raja10@gmail.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
thank you meta :) million dollar company btw 11-16 12:32:07.427 12602 12602 E ActivityThread: Activity com.facebook.messenger.neue.MainActivity has leaked IntentReceiver X.0Cl@f8f79db that was originally registered here. Are you missing a call to unregisterReceiver()? 11-16 12:32:07.427 12602 12602 E ActivityThread: android.app.IntentReceiverLeaked: Activity com.facebook.messenger.neue.MainActivity has leaked IntentReceiver X.0Cl@f8f79db that was originally registered here. Are you missing a call to unregisterReceiver()? 11-16 12:32:07.427 12602 12602 E ActivityThread: at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1879) 11-16 12:32:07.427 12602 12602 E ActivityThread: at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1621) 11-16 12:32:07.427 12602 12602 E ActivityThread: at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1912) 11-16 12:32:07.427 12602 12602 E ActivityThread: at android.app.ContextImpl.registerReceiver(ContextImpl.java:1871) 11-16 12:32:07.427 12602 12602 E ActivityThread: at android.app.ContextImpl.registerReceiver(ContextImpl.java:1858) 11-16 12:32:07.427 12602 12602 E ActivityThread: at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:784) Change-Id: I4b529c2876c823dc21e4780e6beaa997f7be0425 Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com> Signed-off-by: Ghosuto <clash.raja10@gmail.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I819dee676aca2199fa6d8cda93fd96a773e67971 Signed-off-by: Ghosuto <clash.raja10@gmail.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: Icd07fc5b5d64714b5aef10b1237f5ec5a3756462 Signed-off-by: Ghosuto <clash.raja10@gmail.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Who in their right mind thought making the notifications in landscape mode small was a good idea? Signed-off-by: Ghosuto <clash.raja10@gmail.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Allow proceeding if directory exists despite locked CE storage. Fixes Android/data folder creation on some apps dues to race condition. 02-12 06:42:13.214 2176 17668 W StorageManagerService: Failed to get storage lifetime 02-12 06:42:13.214 2176 17668 I StorageManagerService: Turn off gc_urgent based on checking lifetime and charge status 02-12 06:42:13.214 2176 17668 I StorageManagerService: Set smart idle maintenance: latest write amount: 244, average write amount: 0, min segment threshold: 512, dirty reclaim rate: 0.5, segment reclaim weight: 2.0, period(min): 60, min gc sleep time(ms): 5000, target dirty ratio: 100 02-12 06:51:02.679 18324 18339 W ContextImpl: at android.os.storage.IStorageManager$Stub$Proxy.mkdirs(IStorageManager.java:1305) 02-12 06:51:02.679 18324 18339 W ContextImpl: at android.os.storage.StorageManager.mkdirs(StorageManager.java:1421) 02-12 06:51:02.679 18324 18339 W ContextImpl: at com.android.server.StorageManagerService.mkdirs(StorageManagerService.java:3776) 02-12 06:51:02.679 18324 18339 W ContextImpl: at android.os.storage.IStorageManager$Stub.onTransact(IStorageManager.java:648) Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* This also fixes brightness icons not loading correctly on moving slider.
* Image decoder cannot handle vector XML.
Log:
10-23 00:02:52.472 W/ImageLoader(2485): Failed to load source Resource{name=com.android.systemui:drawable/ic_brightness_medium}
10-23 00:02:52.472 W/ImageLoader(2485): android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'Input contained an error.
10-23 00:02:52.472 W/ImageLoader(2485): at android.graphics.ImageDecoder.nCreate(Native Method)
10-23 00:02:52.472 W/ImageLoader(2485): at android.graphics.ImageDecoder.createFromAsset(ImageDecoder.java:548)
10-23 00:02:52.472 W/ImageLoader(2485): at android.graphics.ImageDecoder.-$$Nest$smcreateFromAsset(Unknown Source:0)
10-23 00:02:52.472 W/ImageLoader(2485): at android.graphics.ImageDecoder$ResourceSource.createImageDecoder(ImageDecoder.java:525)
10-23 00:02:52.472 W/ImageLoader(2485): at android.graphics.ImageDecoder.decodeDrawableImpl(ImageDecoder.java:1750)
10-23 00:02:52.472 W/ImageLoader(2485): at android.graphics.ImageDecoder.decodeDrawable(ImageDecoder.java:1742)
10-23 00:02:52.472 W/ImageLoader(2485): at com.android.systemui.graphics.ImageLoader.loadDrawableSync(go/retraceme fa033e5bae99b59d8477124fa92133edcdefa6c9ebb8507171a3414e8dc9df78:3)
10-23 00:02:52.472 W/ImageLoader(2485): at com.android.systemui.graphics.ImageLoader.loadDrawableSync(go/retraceme fa033e5bae99b59d8477124fa92133edcdefa6c9ebb8507171a3414e8dc9df78:19)
10-23 00:02:52.472 W/ImageLoader(2485): at com.android.systemui.graphics.ImageLoader$loadDrawable$4.invokeSuspend(go/retraceme fa033e5bae99b59d8477124fa92133edcdefa6c9ebb8507171a3414e8dc9df78:25)
10-23 00:02:52.472 W/ImageLoader(2485): at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(go/retraceme fa033e5bae99b59d8477124fa92133edcdefa6c9ebb8507171a3414e8dc9df78:8)
10-23 00:02:52.472 W/ImageLoader(2485): at kotlinx.coroutines.DispatchedTask.run(go/retraceme fa033e5bae99b59d8477124fa92133edcdefa6c9ebb8507171a3414e8dc9df78:112)
10-23 00:02:52.472 W/ImageLoader(2485): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:524)
10-23 00:02:52.472 W/ImageLoader(2485): at java.util.concurrent.FutureTask.run(FutureTask.java:317)
10-23 00:02:52.472 W/ImageLoader(2485): at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:348)
10-23 00:02:52.472 W/ImageLoader(2485): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
10-23 00:02:52.472 W/ImageLoader(2485): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
10-23 00:02:52.472 W/ImageLoader(2485): at java.lang.Thread.run(Thread.java:1119)
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Iterating the mutable listeners list during configuration dispatch causes below crash 12-09 21:15:07.361 D/AndroidRuntime(2214): Shutting down VM 12-09 21:15:07.361 E/AndroidRuntime(2214): FATAL EXCEPTION: main 12-09 21:15:07.361 E/AndroidRuntime(2214): Process: com.android.systemui, PID: 2214 12-09 21:15:07.361 E/AndroidRuntime(2214): java.util.ConcurrentModificationException 12-09 21:15:07.361 E/AndroidRuntime(2214): at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1111) 12-09 21:15:07.361 E/AndroidRuntime(2214): at java.util.ArrayList$Itr.next(ArrayList.java:1064) 12-09 21:15:07.361 E/AndroidRuntime(2214): at kotlin.collections.CollectionsKt.filterNotNull(Unknown Source:16) 12-09 21:15:07.361 E/AndroidRuntime(2214): at com.android.systemui.statusbar.phone.ConfigurationControllerImpl.onConfigurationChanged(go/retraceme d43d4e7a8dd5b2e7eba70ac5852a31df7ec95eb6ed6791527c5ce29550f31e4c:30) 12-09 21:15:07.361 E/AndroidRuntime(2214): at com.android.systemui.SystemUIApplication.onConfigurationChanged(go/retraceme d43d4e7a8dd5b2e7eba70ac5852a31df7ec95eb6ed6791527c5ce29550f31e4c:36) 12-09 21:15:07.361 E/AndroidRuntime(2214): at android.app.ConfigurationController.performConfigurationChanged(ConfigurationController.java:261) 12-09 21:15:07.361 E/AndroidRuntime(2214): at android.app.ConfigurationController.handleConfigurationChangedInner(ConfigurationController.java:235) 12-09 21:15:07.361 E/AndroidRuntime(2214): at android.app.ConfigurationController.handleConfigurationChanged(ConfigurationController.java:154) 12-09 21:15:07.361 E/AndroidRuntime(2214): at android.app.ConfigurationController.handleConfigurationChanged(ConfigurationController.java:129) 12-09 21:15:07.361 E/AndroidRuntime(2214): at android.app.ActivityThread.handleConfigurationChanged(ActivityThread.java:6948) 12-09 21:15:07.361 E/AndroidRuntime(2214): at android.app.servertransaction.ConfigurationChangeItem.execute(ConfigurationChangeItem.java:56) 12-09 21:15:07.361 E/AndroidRuntime(2214): at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:133) 12-09 21:15:07.361 E/AndroidRuntime(2214): at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:103) 12-09 21:15:07.361 E/AndroidRuntime(2214): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:80) 12-09 21:15:07.361 E/AndroidRuntime(2214): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2831) 12-09 21:15:07.361 E/AndroidRuntime(2214): at android.os.Handler.dispatchMessage(Handler.java:110) 12-09 21:15:07.361 E/AndroidRuntime(2214): at android.os.Looper.dispatchMessage(Looper.java:315) 12-09 21:15:07.361 E/AndroidRuntime(2214): at android.os.Looper.loopOnce(Looper.java:251) 12-09 21:15:07.361 E/AndroidRuntime(2214): at android.os.Looper.loop(Looper.java:349) 12-09 21:15:07.361 E/AndroidRuntime(2214): at android.app.ActivityThread.main(ActivityThread.java:9047) 12-09 21:15:07.361 E/AndroidRuntime(2214): at java.lang.reflect.Method.invoke(Native Method) 12-09 21:15:07.361 E/AndroidRuntime(2214): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:596) 12-09 21:15:07.361 E/AndroidRuntime(2214): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929) Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* As listener could be null, apply filterNotNull to avoid it Log: 12-14 17:58:13.733 3663 3663 E AndroidRuntime: FATAL EXCEPTION: main 12-14 17:58:13.733 3663 3663 E AndroidRuntime: Process: com.android.systemui, PID: 3663 12-14 17:58:13.733 3663 3663 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.systemui.statusbar.policy.ConfigurationController$ConfigurationListener.onConfigChanged(android.content.res.Configuration)' on a null object reference 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at com.android.systemui.statusbar.phone.ConfigurationControllerImpl.onConfigurationChanged(ConfigurationControllerImpl.kt:74) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at com.android.systemui.SystemUIApplication.onConfigurationChanged(SystemUIApplication.java:449) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at android.app.ConfigurationController.performConfigurationChanged(ConfigurationController.java:242) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at android.app.ConfigurationController.handleConfigurationChanged(ConfigurationController.java:216) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at android.app.ConfigurationController.handleConfigurationChanged(ConfigurationController.java:128) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at android.app.ActivityThread.handleConfigurationChanged(ActivityThread.java:6520) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at android.app.servertransaction.ConfigurationChangeItem.execute(ConfigurationChangeItem.java:48) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:231) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:152) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:93) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2595) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:232) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at android.os.Looper.loop(Looper.java:317) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8597) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583) 12-14 17:58:13.733 3663 3663 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878) neobuddy89: Ensure these checks for all listeners and during callbacks. Change-Id: I1b5197667f7837dcabd67204ae6b764113dbbcce Co-authored-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I4ea5385caf72336bd8fbc87f85e3e00e85d189d2 Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I4f4087b3b379ba60872c92f62bc4107dfce37f7e Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
- Inspired from Lunaris-AOSP/frameworks_base_old@57f26ed Signed-off-by: Ghosuto <clash.raja10@gmail.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Address a bug where complex resources (Styles, arrays, etc) can use resource references (<item type=...) but at runtime they would not be found. When getting a Bag check for the resource being a reference and recursively resolve the reference. Added tests to AssetManager2_test which verify the functionality. The 2 alias tests failed prior to the change but pass now. Bug: 480904335 Test: AssetManager2_test Change-Id: Ie6b8740558e566056c3a4acbfe9201b3f43bdac8
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: Ib9f9cd63713946004fb0f0e7622de572f1b2431c Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
A malformed event can cause an NPE in CriticalEventLog.saveLogToFileNow() when CriticalEventLogStorageProto.toByteArray() calls computeSerializedSize() on an event with null fields. This leads to a crash system_server and will force a device reboot. Move the toByteArray() call into the try-with-resources block and broaden the catch from IOException to Exception so that any exception during serialization or writing is caught and logged rather than crashing the system_server. Bug: None Test: atest CriticalEventLogTest Change-Id: I57190fc3245f9f03950f0cf7597fa3d4d2a5b550
Change-Id: I25755bded0e38fb5f43f49e70126ee5d73a2856d Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Test: Screen record notification will flicker on expansion. Reason: Override tint color was reset on expansion. Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.