Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump word-wrap from 1.2.3 to 1.2.5 in /packages/SystemUI/scripts/token_alignment #140

Open
wants to merge 311 commits into
base: thirteen
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
311 commits
Select commit Hold shift + click to select a range
d6f1e5d
SystemUI: AODTile: Use MD2 Icon
SKULSHADY Feb 19, 2020
c8ec82d
SystemUI: Statusbar icon layout improvements
SKULSHADY Apr 8, 2023
26ffc9d
SystemUI: Mark colorBackgroundDrawable as protected
anayw2001 Oct 12, 2022
d5a97a5
SettingsLib: Use framework resource for headline font
ghostrider-reborn Aug 19, 2022
457d8be
Deprioritize important developer notifications
kdrag0n Oct 6, 2020
b6fc84f
ThemedResourceCache: Replace ArrayMap with HashMap for performance
kdrag0n Mar 25, 2021
e8f2296
LocalServices: Replace ArrayMap with HashMap for performance
kdrag0n Apr 6, 2021
e860020
LayoutInflater: Opportunistically create views directly for performance
kdrag0n Apr 6, 2021
72d200d
core: Wipe package cache on upgrade even on user build
krasCGQ Aug 23, 2022
f24362b
CompanionDeviceManager: This uses the MANAGE_COMPANION_DEVICES permis…
sourajitk Mar 28, 2023
82150e9
Improve Transition GC initiation by improving the Frameworks triggering
Mar 9, 2023
98c7bc3
Youtube application when moving to PIP animation was very bad
Mar 7, 2023
351a55a
Fix the pip bounds error when entering pip mode.
Feb 13, 2023
1c6aea2
[BugFix]Fix NPE when pip onAnimationEnd
Oct 8, 2022
d18f7b2
System crash during dismissing split in multi-user scenario
Nov 22, 2022
b8d89cc
Activity not finishing even after pressing back key
Mar 16, 2023
c51f075
Touch is not working
Feb 28, 2023
d94e60a
Shrink by 0.5 for YUV TextViews
jreck Sep 29, 2022
a2c1c25
Only create clip bound object when RenderNode is not quick rejected
zhqin Oct 14, 2022
bd8733a
Fix erroneous self deletion on SkImage creation failure
nscobie Oct 24, 2022
05df549
Add null pointer check to avoid system crash.
HJessie May 10, 2022
0f8b0cc
Do not kill the server process itself
Mar 22, 2023
b3f9efc
[WMS][Bugfix] Fix hang when dumping local window.
Jan 18, 2023
efa801c
[WMS][Bugfix] Catch exception when dump local window.
Feb 22, 2023
1ce4fd8
WindowProcessController: Fix potential memory leak
adrianroos Mar 14, 2023
27d50f5
[Bugfix]check whitelisted packages exclude nonsystem app
Mar 14, 2023
59393fb
Cleanup and consistency around system server profiling.
May 10, 2022
857fc54
Treat failure to create a process group as fatal
surenbaghdasaryan Apr 1, 2022
883a784
Screenshot: Add delete action chip intent
ganeshi4u Oct 19, 2020
1b8dcac
Screenshot: Remove text from expanded screenshot chip
33bca Feb 22, 2022
626e0b5
[SQUASH] base: Add option to cycle through ringer modes [1/2]
ritujb Sep 3, 2022
c7621b0
SystemUI: Add delete action to screen recorder notification
sourajitk Dec 29, 2020
45ca23f
SystemUI: Dismiss screenshot window on touch outside
libxzr Apr 8, 2022
44d335b
SystemUI: Dismiss existing screenshot window before new
libxzr Apr 8, 2022
9b4aa26
Update various corner radiuses to align with AOSP apps
edsj-sony Mar 25, 2022
ae0454a
Revert "Add an option to force pre-O apps to use full screen aspect r…
SKULSHADY Apr 15, 2023
e1d32db
fwb: [1/2] Implement cutout force full screen
jhenrique09 Jan 18, 2022
071ccd8
TwilightService: Use temporary TwilightState when location is not ava…
ritujb Jul 25, 2020
cf594da
TwilightService: Save and use last fetched location
idoybh Aug 21, 2021
172c348
BatteryStatsService: limit logspam
Oct 29, 2022
3ad3117
Logspam: Properly handle optional app widgets service
Oct 29, 2022
6ecd5b1
AppOpsService: Don't log stack traces for isolated processes
Oct 30, 2022
022d8a1
SystemUI: Update Brightness slider UI
SKULSHADY Apr 15, 2023
a48a6ec
fwb: Incall vibration options [1/3]
Beanstown Sep 5, 2017
1c36437
SystemUI: Implement lockscreen quick unlock
mdmower Oct 13, 2021
ade9c34
FeatureFlags: Enable systemui volume panel by default
mydongistiny Jan 3, 2023
b0ceb5a
SystemUI: Grant READ_PHONE_STATE permission
tincho5588 Mar 17, 2017
b9e9953
Set navbar color for device default settings theme
neobuddy89 Aug 9, 2022
506da70
Show Ambient instead of lockscreen on wake gestures [1/2]
ezio84 Nov 8, 2020
15d7ef8
base: use a double click effect for charging if there is no amplitude…
jhonboy121 Sep 11, 2021
d1414b4
Fix action bar font family on material themes
jhenrique09 Feb 6, 2019
18a8fbf
SystemUI: CastTile: Open cast settings on long click
idoybh Jul 12, 2022
0534e99
Add button to AppErrorDialog to upload crash information to dogbin
nyancrimew Jun 5, 2018
ff00118
stop enforcing camera sound for certain carriers
thestinger Feb 11, 2022
73f3326
Calm down attention service logspam
poad42 Jun 27, 2020
613ff7d
core: Switch to Hastebin for copying crash logs
AshutoshSundresh Jul 8, 2021
b444339
Camera: Don't crash when trying to disable shutter sound
jhenrique09 Aug 20, 2018
5c0fe43
DEBUG: Turn off some debugging we don't need.
mydongistiny Sep 26, 2015
df2b73c
base: Delete media tests
evan-a-a Nov 6, 2013
89b142d
base: Remove unnecessary videos
temasek Nov 29, 2014
beed207
Add "android.permission.READ_PHONE_STATE" to manifest
temasek Dec 14, 2015
675490f
Add missing INTERACT_ACROSS_USERS_FULL permission
AdrianDC Jan 1, 2016
2e388d7
Add missing STORAGE_INTERNAL permission for BackupRestoreConfirmation
Jul 11, 2016
196cafe
KernelCpuUidTimeReader: Decrease log level on non-debug builds
aviraxp Sep 13, 2019
6d819d6
SystemUI: Show battery level for all devices
idoybh Jul 11, 2021
372ec53
fix error com.google.android.gms.persistent
rc420head Nov 13, 2019
1eb5d28
SettingsLib: Fix nav bar color on certain apps
neobuddy89 Aug 10, 2022
4dba134
Change the default value of sync mode to NORMAL
Sep 13, 2022
cf294d8
fwb: Link more elements to `config_dialogCornerRadius `
minaripenguin Jul 20, 2022
c40403d
SystemUI: Link style elements to config_dialogCornerRadius
neobuddy89 Aug 29, 2022
5051bef
Permissions: Grant Mediascanner access permissions to external storage
eyosen Dec 13, 2018
f3fbbfb
SettingsProvider: Resolve package name that requires permission
neobuddy89 Mar 21, 2021
b70f7fe
libs: PipTaskOrganizer: do not start fade out animation for pip if su…
jhonboy121 Nov 10, 2021
0be55bc
SettingsProvider: Handle WRITE_DEVICE_CONFIG permission denial for gms
cjh1249131356 Apr 11, 2022
06dae68
QSPanel: Fix NPE in updateViewPositions()
neobuddy89 Mar 29, 2022
939763e
SystemUI: Fix SystemUI Crash
Jul 7, 2017
5aa45e5
SystemUI: Fix issue that log can't be enabled in MobileSignalController
WeijieWanng Apr 11, 2022
492264f
SystemUI: Don't force small clock when media isn't allowed on keyguard
idoybh Jan 13, 2023
4acd052
UI: Follow Monet and light/dark theme in user 1 icon
AndyCGYan Oct 2, 2022
c136da6
LockscreenCharging: squashed (1/3)
xyyx Aug 16, 2018
170f6b3
SystemUI: keyguard show charging watt
maxwen Feb 12, 2019
539d5bc
Lockscreen charging info: show decimal in battery temperature
Lucchetto Dec 11, 2019
9693a39
KeyguardIndication: fix fc on lockscreen charging info
rohanpurohit Jul 16, 2020
c184a6b
SystemUI: Add current divider config for lockscreen charging
neobuddy89 Jul 1, 2022
115de2e
SystemUI: Limit keyguard charging stats updates
xNombre Aug 27, 2021
79f7433
Frameworks: Enable VoNR by default
johnmart19 Mar 8, 2023
4846324
KeyguardIndication: Fix glitchy charging info on AOD
neobuddy89 Dec 29, 2022
f09238e
Fix list style alert dialog to use system font
maxwen Jan 16, 2020
533af2e
Set alert dialog message to use system font
maxwen Jan 16, 2020
a417059
SystemUI: write initial value of SHOW_QR_CODE_SCANNER_SETTING on firs…
maxwen Dec 14, 2022
28663e4
core: Remove default aspect ratio limit for old apps
kdrag0n Nov 4, 2020
85a750c
SystemUI: Implement burn-in protection for status/navbar
arter97 Mar 8, 2023
4566552
SystemUI: Enable statusbar burn-in protection by default
ghostrider-reborn Feb 19, 2022
418459d
SystemUI: BurnInProtectionController: offset less aggressively
jhonboy121 Sep 11, 2022
7a31d25
base: Allow APK signature scheme v1 for API 30+ apps
kdrag0n Sep 18, 2020
3e40cd5
StrictMode: Don't enable extra features for userdebug builds
kerneltoast Apr 3, 2021
25ca781
SystemUI: Fix heads up text alignment on status bar
SKULSHADY Apr 18, 2023
8d2fdfe
SystemUI: Use new privacy indicators for location
kdrag0n Oct 11, 2021
b2701f2
base: Export bodyFontFamily and bodyFontFamilyMedium symbols
neobuddy89 Oct 7, 2020
347de69
Wire up default fonts with font engine
neobuddy89 Dec 29, 2019
6e7e972
base: Use font configs instead hardcoded fonts
neobuddy89 Jun 4, 2022
698100f
base: styles: Use user fonts for Material UI themes
kdrag0n Sep 10, 2022
9e557a1
styles: Use user fonts for Material UI themes
kdrag0n Jul 8, 2021
f210f01
graphics: Override system fonts with user-selected overlays
kdrag0n Jul 8, 2021
255ffaf
We need know which font leads to system_server crash.
Feb 17, 2023
a52cc18
SystemUI: Speed up actions expansion animation
kdrag0n Oct 6, 2021
be99d90
Fixed a crash in settings in tts engine selection screen.
deveee Apr 21, 2021
3cd325e
SystemUI: buttons should no longer be textAllCaps
maxwen Mar 31, 2022
832b8eb
aapt: Speed up the style pruning
crpalmer Jan 4, 2016
7ce7344
aapt: Use a std::map instead of a SortedVector
crpalmer Jan 5, 2016
d82e978
Cache KeyStoreService
nyancrimew Jun 5, 2018
3f5e461
(Point) Only calculate sin and cos once
nyancrimew Aug 24, 2018
f96e33e
Cache pin algorithms in PinSet
nyancrimew Jun 4, 2018
94844f9
core: PinSet: fixup and improve code
jhonboy121 Oct 29, 2021
6b26207
NetworkPolicyManagerService: turn this into just a warning
xdevs23 Feb 20, 2021
aebfbc9
Link dialog radius to config_dialogCornerRadius
Lucchetto Aug 30, 2018
b379a35
neko/Cat: Mark FLAG_IMMUTABLE PendingIntent with FLAG_MUTABLE
PainKiller3 Dec 30, 2021
c36d473
libs: hwui: Build using ThinLTO
mydongistiny Sep 29, 2019
56f4b9e
EventLog: Disable event writing in production builds
kdrag0n Apr 6, 2021
6fb0e7c
Allow disabling qs on secure lockscreen [1/2]
jhonboy121 Jan 11, 2022
c0073c8
base: Introduce app lock [1/4]
jhonboy121 Feb 1, 2022
557d40e
AppLock: Allow locking all apps visible in launcher
neobuddy89 Feb 26, 2023
22ebcbd
AppLock: Update API
neobuddy89 Mar 4, 2023
21e0cbc
AppLock: Fix hidden apps reset after reboot
neobuddy89 Apr 1, 2023
41e37de
SystemUI: add edge light customizations [1/2]
jhonboy121 Jan 9, 2022
2265233
Ambient Music Ticker - Allow to pulse on new tracks [1/2]
ezio84 Nov 2, 2019
1ac37bd
EdgeLight: Fix up applying custom color
neobuddy89 Mar 28, 2023
5ac2f07
Fix: Firewall: NMS inverts default rule behavior
t-m-w Feb 16, 2023
5d7f8bc
Fix viewing app info dashboard of hidden work app
t-m-w Mar 27, 2023
7e8ab1d
SystemUI: Enable session-based media actions for all apps
ghostrider-reborn Aug 20, 2022
1f4d716
DisplayPowerController: Disable log spam
TheHardGamer Apr 5, 2023
48362d5
SystemUI: Enable Partial Screensharing
joeyhuab Apr 6, 2023
d38e28e
SystemUI: Reduce keyguard indication text padding
minaripenguin Jan 2, 2023
719a7d0
SystemUI: Use better icon for camera keyguard affordance
ghostrider-reborn Apr 2, 2023
85e2341
VolumePanel: Add long click for expand icon
prochy-exe Apr 21, 2022
6defe87
VolumePanel: Change bg tint for inactive rows
ArianK16a Jul 27, 2022
d21eb6a
SystemUI: Enable media player surface ripple on button press
timocapa Apr 9, 2023
ae38ae8
wm: Prevent NPE for springanimation
neobuddy89 Apr 19, 2023
f47f9f1
KeyguardIndication: Set wakelock on doze only when required
neobuddy89 Jan 8, 2023
4f95e58
Fonts: Add regular / light font config
neobuddy89 Jan 5, 2020
8a06c1d
hwui: Prevent systemui crash caused by segfault
minaripenguin Mar 10, 2023
5fa20bf
Fixed process can't start because of mPendingStart is true problem
Mar 24, 2023
c7990fb
SystemUI: Fix carrier text margin on keyguard
SKULSHADY Apr 19, 2023
f2c198c
SystemUI: Implement Bluetooth dialog
ghostrider-reborn Oct 27, 2022
347959c
SystemUI: Cleanup bluetooth dialog impl
jhonboy121 Nov 14, 2022
1c0be39
base: Remove more hardcoded fonts
neobuddy89 Apr 15, 2023
73afb77
Paint: Enable subpixel text positioning by default
kdrag0n Oct 6, 2021
02ce931
base: Wi-Fi timeout feature (1/2)
Uldiniad Feb 25, 2021
a1c0da4
base: Bluetooth timeout feature (1/2)
Uldiniad Oct 2, 2020
6914001
SystemUI: QSAnimator: Hide secondary label in QQS
ghostrider-reborn May 25, 2022
5a5144c
SystemUI: Remove disconnect icon from Bluetooth Dialog
SKULSHADY Apr 20, 2023
e2cac64
SystemUI: Require unlocking to use Bluetooth tile
SKULSHADY Apr 20, 2023
3366de4
AppProfiler: dont be so hectic on cpu battery stats
Dec 23, 2022
7ccf644
Fix the problem of slow exit of boot animation
Dec 23, 2022
61fcd99
base: support per-app volume [2/3]
cjybyjk Sep 5, 2022
59833f5
base: make per-app work with multi audio focus
eldainosor Aug 3, 2022
7f6a0fb
SystemUI: Update App volume icon
SKULSHADY Apr 8, 2023
d552b74
SystemUI: Remove excess margin in few statusbar icons
ghostrider-reborn Feb 24, 2021
c184fad
StatusBarSignalPolicy: Set initialized to false on destroy
neobuddy89 Jun 13, 2023
33f83f6
SystemUI: Enable charger plug-in statusbar chip
ghostrider-reborn Jun 22, 2023
1ccac14
SystemUI: add haptics to brightness slider
mvaisakh Jan 25, 2023
ced2721
SystemUI: Improve brighness slider haptics
SKULSHADY Jun 28, 2023
3f43a8e
SystemUI: Enable revamped_wallpaper_ui flag
SKULSHADY Jun 28, 2023
c76014e
SystemUI: Add null check for vibrator in brightness controller
neobuddy89 Jun 26, 2023
d00927c
Sometimes Screen does not wake up while receiving whatsapp video call
Jun 12, 2023
5809be2
Fix system reboot in systm_server caused by SensorPrivacyService
shawnlinboy Jun 26, 2023
60caa9b
SystemUI: Blurs: allow blur even when GFX acceleration is disabled
Pulkit077 Jan 1, 2022
baa04aa
SystemUI: Blur the power menu
elluzion Sep 7, 2022
160d4c3
SystemUI: Also blur power sub-menus
neobuddy89 Jan 31, 2023
e1197d2
SystemUI: Use color accent for charging animation
Genkzsz11 Apr 15, 2022
ee90a17
SystemUI: Use lighter material you shades for charging animation
minaripenguin May 29, 2022
642a930
Pause is getting scheduled 2 times
Feb 27, 2023
b27e2f1
SystemUI: Prevent edge lightning from pulsing outside keyguard/doze
minaripenguin May 29, 2023
94f7685
SystemUI: Prevent edge lights from being directly shown by screen on …
minaripenguin May 30, 2023
c03cc86
SystemUI: Flags: Enable lockscreen clock customisation
aswin7469 Jun 15, 2023
2987514
SystemUI: Enable font scaling QS tile
aswin7469 Jun 15, 2023
2b5a428
SystemUI: Flags: Enable media explicit indicator
aswin7469 Jun 15, 2023
85582a9
KeyguardIndication: Fix glitchy charging info on lockscreen
neobuddy89 Jan 30, 2022
c930bc4
SystemUI: Align keyguard carrier text with status bar
AndyCGYan Apr 13, 2023
a9e2664
KeyguardStatusBarView: Clean up cruft
neobuddy89 Apr 29, 2023
52b6b99
SystemUI: Follow status bar battery style in QS
neobuddy89 Mar 31, 2023
d565951
SystemUI: Improve statusbar mobile type icons padding
ghostrider-reborn Sep 18, 2022
bfc8e51
SystemUI: Scale mobile data type icon with font size
ghostrider-reborn Nov 22, 2022
e86111f
SystemUI: Enable Lock screen long-press to open wallpaper picker
aswin7469 Jun 16, 2023
1c0ffbc
SystemUI: Enable new back affordance
timocapa May 1, 2023
6e3d255
SystemUI: Hide notification icon area if headsup is visible
minaripenguin May 12, 2023
e34544c
SystemUI: Make date clickable
someone5678 Jun 25, 2023
35b7135
SystemUI: flags: Enable media player wave/shimmering effects
aswin7469 Apr 5, 2023
81cf9c8
SystemUI: Enable monochromatic monet theme style
aswin7469 Mar 15, 2023
6830599
BluetoothControllerImpl: Synchronize mConnectedDevices access
jhonboy121 Mar 18, 2022
17a5902
SystemUI: Fetch bluetooth battery level from any device
jhonboy121 Mar 22, 2022
066c62c
base: Rearrange bluetooth icon on statusbar
ghostrider-reborn Sep 17, 2021
c40444d
SystemUI: Remove excess margin in few statusbar icons
ghostrider-reborn Feb 24, 2021
fa4f2f5
Allow to suppress notifications sound/vibration if screen is ON [1/2]
ezio84 Jan 4, 2018
6b5a9af
Revert "SystemUI: Network Traffic [1/3]"
neobuddy89 Sep 29, 2022
afa9983
SystemUI: Squash import NetworkTraffic
Haus1 Jan 4, 2017
d7125b1
NetworkTraffic: General improvements
libxzr Jun 13, 2022
27c6d5d
NetworkTraffic: Fix excessively high reading on screen wakeup
libxzr Jun 18, 2022
e979d1b
NetworkTraffic: Make sure tint is updated on decor color change
libxzr Jun 19, 2022
d4d4e6d
NetworkTraffic: Follow status bar texts' text appearance
ReallySnow Jun 15, 2022
0463129
SystemUI: NetworkTraffic: Minor refinements
ghostrider-reborn Feb 13, 2021
ce44b3a
NetworkTrafficSB: Adjust onDarkChanged
joeyhuab Aug 22, 2022
8685442
SystemUI: Add statusbar NFC icon
xyyx Oct 4, 2020
a84a5b6
SystemUI: Reload theme only if black theme is enabled
ghostrider-reborn Nov 21, 2022
2c747b3
base: Add support for window ignore secure [1/2]
libxzr Mar 18, 2022
e5fbbcf
Trace: Disable debug tracing on production builds
kdrag0n Apr 6, 2021
157d9c6
Revert "Pre-emptively take a snapshot when finishing an activity befo…
kdrag0n Apr 6, 2021
2e589ff
InsetsStateController: Replace ArrayMap with HashMap for performance
kdrag0n Oct 6, 2021
8753c66
SystemServiceRegistry: Replace ArrayMap with HashMap for performance
kdrag0n Apr 6, 2021
549d951
core/jni/libandroid_runtime: Use ThinLTO
RealJohnGalt Oct 6, 2022
c1c12c9
libandroid_defaults: Use ThinLTO
RealJohnGalt Oct 6, 2022
63f751d
AbsListView: Improve scrolling cache
pawitp Nov 17, 2014
cd0fd7a
ViewConfiguration: Set scroll friction to 0.012
TheCrazyLex Mar 16, 2017
a84b16f
base: Set scrolling friction to 0.006f
xboxfanj Oct 14, 2016
6477e0e
base: Add support for strict standby policy
libxzr Jun 11, 2022
ab3f40a
am: Block MEDIA_MOUNTED broadcast for restricted apps
libxzr Aug 26, 2022
3b54b74
StrictStandby: Offload force stop onto lock-free context
libxzr Jul 11, 2022
3e96f0b
PowerUI: Mute logcat spam.
spezi77 Aug 24, 2021
1f02302
base: Introduce PowerOffAlarmService
idoybh Apr 15, 2023
3da1d40
base: PowerOffAlarmService: Add a notification
idoybh Apr 16, 2023
0a8896e
fixup! QuickUnlock: Avoid saving pin/password length as in a sql db
StyloGey Dec 13, 2022
4b680d1
libhwui: Enable O3 when compiling with LTO
mvaisakh Apr 19, 2023
cb95ca1
core: Initial SenseProvider for FaceSense service
Sirhc95 Nov 1, 2022
2fbcad6
SystemUI: Hide camera chip when using face unlock
Sirhc95 Nov 2, 2022
7496b98
SystemUI: Improve network traffic layout and add back unit support
SKULSHADY Jul 5, 2023
1c3b1d8
SystemUI: Fix keyguard affordance icon tint in light theme
SKULSHADY Jul 4, 2023
e5276e4
Squashed Import of PixelPropsUtils
jhenrique09 Jul 2, 2023
be4768b
base: ApplicationPackageManager: Block Tensor features for Recorder
someone5678 Jul 9, 2023
edf1191
base: ApplicationPackageManager: Exclude PE 2021 Midyear from tensor …
someone5678 Jul 9, 2023
5ae0d4b
core: Port CLO's Framework Boost
markakash Oct 25, 2022
d401cd2
perf: Add lock protection for initialization in ScrollOptimizer
Nov 22, 2022
8ebbe34
Filter multi-layer cases for pre-rendering
Nov 10, 2022
3960183
OverScroller: Import BoostFramework.ScrollOptimizer
CHRISL7 Jan 12, 2023
9ec89b2
AuthRippleView: Allow disabling ripple unlock animation using overlay
jhenrique09 Feb 12, 2023
a65a680
BoostFramework: Guard it with overlay
jhenrique09 Feb 12, 2023
612add2
core: Set default value for config_displayLightSensorType
jhenrique09 Mar 22, 2023
4e394bb
Perf:Fix the issue that activity boost duration abnormal.
Dec 20, 2022
e9ecec5
CachedAppOptimizer : Fix compaction configuration being ignored
Dec 21, 2022
5ad94ca
CachedAppOptimizer : Pageout File pages during system compaction
Dec 28, 2022
963448f
hwui: renderthread/CanvasContext: Reduce the timeout for dequeueing b…
Dec 29, 2022
11bb3e1
Fix an issue that the FoldStateListener induces a memory leak
kk48-park Aug 12, 2022
f1bd7f4
SystemUI: Refactor lockscreen charging info for Adaptive charging
SKULSHADY Jul 12, 2023
04f7bff
ApplicationPackageManager: Conditionally enable tensor features
SKULSHADY Jul 12, 2023
c11dd1c
SystemUI: VolumeDialog: add support for unlinked ringer streams
StyloGey Apr 14, 2023
a35d804
base: Add switch to unlink ringtone and notifications volume [1/2]
neobuddy89 Apr 18, 2023
3b52ada
policy: Add support for device alert sliders
May 15, 2018
377863d
SystemUI: Introduce user interface for Alert Sliders
Sep 30, 2019
5ab081b
SystemUI: Improve alert slider dialog
SKULSHADY Nov 12, 2019
619170f
SystemUI: Make tri-state SystemUI dialog dimensions conditional
ZVNexus Jan 24, 2020
1fcf19e
Bump word-wrap in /packages/SystemUI/scripts/token_alignment
dependabot[bot] Aug 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -1165,6 +1165,9 @@ public boolean areAlarmsRestricted(int uid, @NonNull String packageName) {
return false;
}
synchronized (mLock) {
if (isAppRestricted(uid, packageName)) {
return true;
}
final int appId = UserHandle.getAppId(uid);
if (ArrayUtils.contains(mPowerExemptAllAppIds, appId)) {
return false;
Expand Down Expand Up @@ -1210,6 +1213,9 @@ public boolean areJobsRestricted(int uid, @NonNull String packageName,
return false;
}
synchronized (mLock) {
if (isAppRestricted(uid, packageName)) {
return true;
}
final int appId = UserHandle.getAppId(uid);
if (ArrayUtils.contains(mPowerExemptAllAppIds, appId)
|| ArrayUtils.contains(mTempExemptAppIds, appId)) {
Expand Down Expand Up @@ -1332,6 +1338,15 @@ public boolean isUidTempPowerSaveExempt(int uid) {
}
}

/**
* @return whether the app is restricted battery usage
*/
public boolean isAppRestricted(int uid, String packageName) {
return mAppOpsManager.checkOpNoThrow(
AppOpsManager.OP_RUN_ANY_IN_BACKGROUND,
uid, packageName) != AppOpsManager.MODE_ALLOWED;
}

/**
* Dump the internal state to the given PrintWriter. Can be included in the dump
* of a binder service to be output on the shell command "dumpsys".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1797,7 +1797,7 @@ private void setAppStandbyBucket(String packageName, int userId, @StandbyBuckets
// shouldn't be surprising.
// Exclude REASON_SUB_FORCED_USER_FLAG_INTERACTION since the RESTRICTED bucket
// isn't directly visible in that flow.
if (Build.IS_DEBUGGABLE
if (Build.IS_ENG
&& (reason & REASON_SUB_MASK)
!= REASON_SUB_FORCED_USER_FLAG_INTERACTION) {
Toast.makeText(mContext,
Expand Down
17 changes: 13 additions & 4 deletions cmds/bootanimation/BootAnimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ namespace android {
using ui::DisplayMode;

static const char OEM_BOOTANIMATION_FILE[] = "/oem/media/bootanimation.zip";
static const char PRODUCT_BOOTANIMATION_DARK_FILE[] = "/product/media/bootanimation-dark.zip";
static const char PRODUCT_BOOTANIMATION_FILE[] = "/product/media/bootanimation.zip";
static const char SYSTEM_BOOTANIMATION_FILE[] = "/system/media/bootanimation.zip";
static const char APEX_BOOTANIMATION_FILE[] = "/apex/com.android.bootanimation/etc/bootanimation.zip";
Expand Down Expand Up @@ -107,6 +106,7 @@ static const char PROGRESS_PROP_NAME[] = "service.bootanim.progress";
static const char DISPLAYS_PROP_NAME[] = "persist.service.bootanim.displays";
static const char CLOCK_ENABLED_PROP_NAME[] = "persist.sys.bootanim.clock.enabled";
static const int ANIM_ENTRY_NAME_MAX = ANIM_PATH_MAX + 1;
static const int MAX_CHECK_EXIT_INTERVAL_US = 50000;
static constexpr size_t TEXT_POS_LEN_MAX = 16;
static const int DYNAMIC_COLOR_COUNT = 4;
static const char U_TEXTURE[] = "uTexture";
Expand Down Expand Up @@ -741,9 +741,8 @@ void BootAnimation::findBootAnimationFile() {
}
}

const bool playDarkAnim = android::base::GetIntProperty("ro.boot.theme", 0) == 1;
static const std::vector<std::string> bootFiles = {
APEX_BOOTANIMATION_FILE, playDarkAnim ? PRODUCT_BOOTANIMATION_DARK_FILE : PRODUCT_BOOTANIMATION_FILE,
APEX_BOOTANIMATION_FILE, PRODUCT_BOOTANIMATION_FILE,
OEM_BOOTANIMATION_FILE, SYSTEM_BOOTANIMATION_FILE
};
static const std::vector<std::string> shutdownFiles = {
Expand Down Expand Up @@ -1691,7 +1690,17 @@ bool BootAnimation::playAnimation(const Animation& animation) {
checkExit();
}

usleep(part.pause * ns2us(frameDuration));
int pauseDuration = part.pause * ns2us(frameDuration);
while(pauseDuration > 0 && !exitPending()){
if (pauseDuration > MAX_CHECK_EXIT_INTERVAL_US) {
usleep(MAX_CHECK_EXIT_INTERVAL_US);
pauseDuration -= MAX_CHECK_EXIT_INTERVAL_US;
} else {
usleep(pauseDuration);
break;
}
checkExit();
}

if (exitPending() && !part.count && mCurrentInset >= mTargetInset &&
!part.hasFadingPhase()) {
Expand Down
2 changes: 2 additions & 0 deletions core/api/current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ package android {
field public static final String DUMP = "android.permission.DUMP";
field public static final String EXPAND_STATUS_BAR = "android.permission.EXPAND_STATUS_BAR";
field public static final String FACTORY_TEST = "android.permission.FACTORY_TEST";
field public static final String FAKE_PACKAGE_SIGNATURE = "android.permission.FAKE_PACKAGE_SIGNATURE";
field public static final String FOREGROUND_SERVICE = "android.permission.FOREGROUND_SERVICE";
field public static final String GET_ACCOUNTS = "android.permission.GET_ACCOUNTS";
field public static final String GET_ACCOUNTS_PRIVILEGED = "android.permission.GET_ACCOUNTS_PRIVILEGED";
Expand Down Expand Up @@ -222,6 +223,7 @@ package android {
field public static final String CALL_LOG = "android.permission-group.CALL_LOG";
field public static final String CAMERA = "android.permission-group.CAMERA";
field public static final String CONTACTS = "android.permission-group.CONTACTS";
field public static final String FAKE_PACKAGE_SIGNATURE = "android.permission-group.FAKE_PACKAGE_SIGNATURE";
field public static final String LOCATION = "android.permission-group.LOCATION";
field public static final String MICROPHONE = "android.permission-group.MICROPHONE";
field public static final String NEARBY_DEVICES = "android.permission-group.NEARBY_DEVICES";
Expand Down
6 changes: 6 additions & 0 deletions core/java/android/app/Activity.java
Original file line number Diff line number Diff line change
Expand Up @@ -5954,6 +5954,12 @@ public void startActivity(Intent intent) {
*/
@Override
public void startActivity(Intent intent, @Nullable Bundle options) {
if (intent != null && intent.getComponent() != null){
if (intent.getComponent().flattenToString().equals("com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.ManagePermissionsActivity")){
intent = intent.setComponent(
ComponentName.unflattenFromString("com.android.permissioncontroller/com.android.permissioncontroller.permission.ui.ManagePermissionsActivity"));
}
}
getAutofillClientController().onStartActivity(intent, mIntent);
if (options != null) {
startActivityForResult(intent, -1, options);
Expand Down
3 changes: 3 additions & 0 deletions core/java/android/app/ActivityManagerInternal.java
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,9 @@ public abstract PendingIntent getPendingIntentActivityAsApp(
*/
public abstract @TempAllowListType int getPushMessagingOverQuotaBehavior();

// Starts a process as empty.
public abstract int startActivityAsUserEmpty(Bundle options);

/**
* Return the startForeground() grace period after calling startForegroundService().
*/
Expand Down
74 changes: 62 additions & 12 deletions core/java/android/app/ActivityThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
import android.telephony.TelephonyFrameworkInitializer;
import android.util.AndroidRuntimeException;
import android.util.ArrayMap;
import android.util.BoostFramework;
import android.util.DisplayMetrics;
import android.util.EventLog;
import android.util.Log;
Expand Down Expand Up @@ -3427,8 +3428,13 @@ public void updateProcessState(int processState, boolean fromIpc) {
if (mLastProcessState == processState) {
return;
}
// Do not issue a transitional GC if we are transitioning between 2 cached states.
// Only update if the state flips between cached and uncached or vice versa
if (ActivityManager.isProcStateCached(mLastProcessState)
!= ActivityManager.isProcStateCached(processState)) {
updateVmProcessState(processState);
}
mLastProcessState = processState;
updateVmProcessState(processState);
if (localLOGV) {
Slog.i(TAG, "******************* PROCESS STATE CHANGED TO: " + processState
+ (fromIpc ? " (from ipc" : ""));
Expand All @@ -3437,12 +3443,16 @@ public void updateProcessState(int processState, boolean fromIpc) {
}

/** Update VM state based on ActivityManager.PROCESS_STATE_* constants. */
// Currently ART VM only uses state updates for Transitional GC, and thus
// this function initiates a Transitional GC for transitions into Cached apps states.
private void updateVmProcessState(int processState) {
// TODO: Tune this since things like gmail sync are important background but not jank
// perceptible.
final int state = processState <= ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND
? VM_PROCESS_STATE_JANK_PERCEPTIBLE
: VM_PROCESS_STATE_JANK_IMPERCEPTIBLE;
// Only a transition into Cached state should result in a Transitional GC request
// to the ART runtime. Update VM state to JANK_IMPERCEPTIBLE in that case.
// Note that there are 4 possible cached states currently, all of which are
// JANK_IMPERCEPTIBLE from GC point of view.
final int state = ActivityManager.isProcStateCached(processState)
? VM_PROCESS_STATE_JANK_IMPERCEPTIBLE
: VM_PROCESS_STATE_JANK_PERCEPTIBLE;
VMRuntime.getRuntime().updateProcessState(state);
}

Expand Down Expand Up @@ -6494,6 +6504,8 @@ private String getInstrumentationLibrary(ApplicationInfo appInfo, Instrumentatio

@UnsupportedAppUsage
private void handleBindApplication(AppBindData data) {
long st_bindApp = SystemClock.uptimeMillis();
BoostFramework ux_perf = null;
// Register the UI Thread as a sensitive thread to the runtime.
VMRuntime.registerSensitiveThread();
// In the case the stack depth property exists, pass it down to the runtime.
Expand Down Expand Up @@ -6612,10 +6624,17 @@ private void handleBindApplication(AppBindData data) {
/**
* Switch this process to density compatibility mode if needed.
*/
if ((data.appInfo.flags&ApplicationInfo.FLAG_SUPPORTS_SCREEN_DENSITIES)
if ((data.appInfo.flags & ApplicationInfo.FLAG_SUPPORTS_SCREEN_DENSITIES)
== 0) {
mDensityCompatMode = true;
Bitmap.setDefaultDensity(DisplayMetrics.DENSITY_DEFAULT);
} else {
int overrideDensity = data.appInfo.getOverrideDensity();
if(overrideDensity != 0) {
Log.d(TAG, "override app density from " + DisplayMetrics.DENSITY_DEVICE + " to " + overrideDensity);
mDensityCompatMode = true;
Bitmap.setDefaultDensity(overrideDensity);
}
}
mConfigurationController.updateDefaultDensity(data.config.densityDpi);

Expand Down Expand Up @@ -6713,6 +6732,15 @@ private void handleBindApplication(AppBindData data) {
Trace.traceEnd(Trace.TRACE_TAG_ACTIVITY_MANAGER);
}

if (!Process.isIsolated()) {
final int old_mask = StrictMode.allowThreadDiskWritesMask();
try {
ux_perf = new BoostFramework(appContext);
} finally {
StrictMode.setThreadPolicyMask(old_mask);
}
}

if (!Process.isIsolated()) {
final int oldMask = StrictMode.allowThreadDiskWritesMask();
try {
Expand Down Expand Up @@ -6839,6 +6867,33 @@ private void handleBindApplication(AppBindData data) {
throw e.rethrowFromSystemServer();
}
}
long end_bindApp = SystemClock.uptimeMillis();
int bindApp_dur = (int) (end_bindApp - st_bindApp);
String pkg_name = null;
if (appContext != null) {
pkg_name = appContext.getPackageName();
}
if (ux_perf != null && !Process.isIsolated() && pkg_name != null) {
String pkgDir = null;
try
{
String codePath = appContext.getPackageCodePath();
pkgDir = codePath.substring(0, codePath.lastIndexOf('/'));
}
catch(Exception e)
{
Slog.e(TAG, "HeavyGameThread () : Exception_1 = " + e);
}
if (ux_perf.board_first_api_lvl < BoostFramework.VENDOR_T_API_LEVEL &&
ux_perf.board_api_lvl < BoostFramework.VENDOR_T_API_LEVEL) {
ux_perf.perfUXEngine_events(BoostFramework.UXE_EVENT_BINDAPP, 0,
pkg_name,
bindApp_dur,
pkgDir);
} else {
ux_perf.perfEvent(BoostFramework.VENDOR_HINT_BINDAPP, pkg_name, 2, bindApp_dur, 0);
}
}
}

private void handleSetContentCaptureOptionsCallback(String packageName) {
Expand Down Expand Up @@ -7082,11 +7137,6 @@ public final IContentProvider acquireProvider(
}
}
if (holder == null) {
if (UserManager.get(c).isUserUnlocked(userId)) {
Slog.e(TAG, "Failed to find provider info for " + auth);
} else {
Slog.w(TAG, "Failed to find provider info for " + auth + " (user not unlocked)");
}
return null;
}

Expand Down
19 changes: 19 additions & 0 deletions core/java/android/app/AppLockData.aidl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (C) 2022 FlamingoOS 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.
*/

package android.app;

parcelable AppLockData;
109 changes: 109 additions & 0 deletions core/java/android/app/AppLockData.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
/*
* Copyright (C) 2022 FlamingoOS 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.
*/

package android.app;

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.os.Parcel;
import android.os.Parcelable;

/**
* Class to hold package level information about an
* application for app lock.
*
* @hide
*/
public final class AppLockData implements Parcelable {

public static final Parcelable.Creator<AppLockData> CREATOR =
new Parcelable.Creator<AppLockData>() {

@Override
public AppLockData createFromParcel(Parcel in) {
return new AppLockData(in);
}

@Override
public AppLockData[] newArray(int size) {
return new AppLockData[size];
}
};

private final String mPackageName;
private final boolean mShouldProtectApp;
private final boolean mShouldRedactNotification;
private final boolean mHideFromLauncher;

/** @hide */
public AppLockData(
@NonNull final String packageName,
final boolean shouldProtectApp,
final boolean shouldRedactNotification,
final boolean hideFromLauncher
) {
mPackageName = packageName;
mShouldProtectApp = shouldProtectApp;
mShouldRedactNotification = shouldRedactNotification;
mHideFromLauncher = hideFromLauncher;
}

private AppLockData(final Parcel in) {
mPackageName = in.readString();
mShouldProtectApp = in.readBoolean();
mShouldRedactNotification = in.readBoolean();
mHideFromLauncher = in.readBoolean();
}

@NonNull
public String getPackageName() {
return mPackageName;
}

public boolean getShouldProtectApp() {
return mShouldProtectApp;
}

public boolean getShouldRedactNotification() {
return mShouldRedactNotification;
}

public boolean getHideFromLauncher() {
return mHideFromLauncher;
}

@Override
public int describeContents() {
return 0;
}

@Override
public void writeToParcel(final Parcel parcel, final int flags) {
parcel.writeString(mPackageName);
parcel.writeBoolean(mShouldProtectApp);
parcel.writeBoolean(mShouldRedactNotification);
parcel.writeBoolean(mHideFromLauncher);
}

@Override
@NonNull
public String toString() {
return "AppLockData[ packageName = " + mPackageName +
", shouldProtectApp = " + mShouldProtectApp +
", shouldRedactNotification = " + mShouldRedactNotification +
", hideFromLauncher = " + mHideFromLauncher + " ]";
}
}