OSDN Git Service
Mike xdnax [Fri, 4 Dec 2015 06:34:49 +0000 (01:34 -0500)]
SystemUI: Enable three icon switching within QS DND tile
This expands the QS DND tile to use three states instead of two.
Java commits by @nicholaschum
What this does:
- Removes the two states (true/false) clause {? XXX:YYY;} and uses an
switch(mZen) instead for the two cases and the default. If in the
future, we want to add another tile, just add another case.
- Adds two vector drawables originally by Cataclysm dev @atl4ntis,
modified and reformatted - this allows for themers to theme this
resource as well by adding the two new drawables.
PS1: Uses if/elsif/else clause
PS2: Update to use switch(mZen) clause
Change-Id: If34e225bdc81e944a12ffd764a521de934aca3b3
Zhao Wei Liew [Fri, 7 Oct 2016 02:09:04 +0000 (10:09 +0800)]
SystemUI: statusbar: Fix status bar brightness control feature
Bring in the missing fixes from CM 13.
This commit squashes the following commits from CM 13.0:
6397527ca0c430671503cecb69d74554dea1d399 SystemUI: fix status bar brightness slider eating events
bbef42271cbba0eda91d214186ff2be31eb3b608 SystemUI : fix brightness slider for automatic brightness
Change-Id: I85e0b99dc33468b36222128660707fe481cf8b33
Zhao Wei Liew [Fri, 7 Oct 2016 03:24:14 +0000 (11:24 +0800)]
Revert "SystemUI: Add support for charging animation"
No thanks. Stick with Google's decision to save power.
This reverts commit
5fce2f7e00a1e2b4ef86f7ee1b15d567216ac831.
Change-Id: Ie56126016a87bcbc907734bbe37e26e79efc4f3c
Zhao Wei Liew [Thu, 6 Oct 2016 16:08:37 +0000 (00:08 +0800)]
SystemUI: statusbar: Fix QS quick pulldown feature
Bring in the fixes from CM 13.
This commit squashes the following patches from CM 13.0:
68c40f32470d66e0f8973d33a4124a2181754fb0 SystemUI: fix QS quick pull down
477f58dc1413943926f2b4428f5873c0bb04dab8 SystemUI: hook up settings observer in notificationpanel
d2bec52c76a3bb2c9a7fa3533e40f782fa592826 SystemUI: Fix quick-quick settings pulldown settings
eb10bc20db37978413362250c8546ae7ed865077 Add left QS quick pulldown (1/3)
Change-Id: Ie122477261d96499c80640cf274d22fba6642a01
Zhao Wei Liew [Thu, 6 Oct 2016 16:42:56 +0000 (00:42 +0800)]
SystemUI: tuner: Fix up button navigation in activity
The up button needs to navigate backwards when pressed.
This fixes the up button when status bar tuner is launched from CMParts.
Change-Id: Ic8ecc4d110ba4da185886aa9b82d5a3b68523f20
Roman Birg [Fri, 17 Jul 2015 22:18:28 +0000 (15:18 -0700)]
SystemUI: attach a queue to media player notifications
Extend media player notificatoins to attach a queue below them, set via
the MediaController.setQueue() API, when available.
Long pressing on the notificaiton will reveal an option to disable the
queue.
The queue is currently hardcoded to be limited to 3 items.
(cyanogen: Port to CM14)
Ticket: CYNGNOS-217
Change-Id: I3b8503cb47af2d36f031d06aefc1bfbe7ed80010
Signed-off-by: Roman Birg <roman@cyngn.com>
DvTonder [Sun, 29 Mar 2015 18:13:51 +0000 (14:13 -0400)]
Frameworks: Allow/Prevent notification light in Zen mode (1 of 3)
This allows the user to prevent the notification lights from showing during Zen mode
Change-Id: I831c475204c8647d8ee281094aca837ee9594eb4
Steve Kondik [Thu, 24 Sep 2015 18:27:59 +0000 (11:27 -0700)]
lights: Automatically generate an LED color for notifications
* When an app doesn't specify a color for the LED, as is the usual
case, we currently just show the default color. This is boring.
It's also a pain in the ass to manually map all your apps to
colors.
* Use our new helpers to generate this color based on the application's
icon color. Keep a cache to avoid wasting cycles.
Change-Id: I7288e52499819a6a6c75ed9d9ba7cfa1b13c5669
nms: Only generate LED colors if the device has a multicolored LED
* Check the overlay value before doing any of this stuff.
Change-Id: Iedfceba6bfc86b2761d8af57ecab51026bfa4c19
Roman Birg [Wed, 23 Dec 2015 22:02:52 +0000 (14:02 -0800)]
NotificationManager: always restore identity on notification error
Change-Id: I3fb369c34098c366c3c943da0d7c7c64127387c8
Signed-off-by: Roman Birg <roman@cyngn.com>
Alexander Martinz [Wed, 5 Oct 2016 10:04:25 +0000 (12:04 +0200)]
batteryservice: remove unneeded catch clause and fix build
The IOException clause already catches the FNF one.
Also in
9f8e600815fc46924063b3a8ed6c98edee10fd30 the import for
FNF got removed, fix the build.
Change-Id: Iaa8bc77b5191ca6abb62e2ea51fd54614ab3c53b
Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
Michael Bestas [Fri, 22 Jan 2016 18:53:09 +0000 (20:53 +0200)]
batteryservice: Avoid exception if device doesn't support HVDCP
E BatteryService: Failure in reading charger type
E BatteryService: java.io.FileNotFoundException: /sys/class/power_supply/usb/type: open failed: ENOENT (No such file or directory)
E BatteryService: at libcore.io.IoBridge.open(IoBridge.java:452)
E BatteryService: at java.io.FileInputStream.<init>(FileInputStream.java:76)
E BatteryService: at java.io.FileReader.<init>(FileReader.java:42)
E BatteryService: at com.android.server.BatteryService$Led.isHvdcpPresent(BatteryService.java:792)
E BatteryService: at com.android.server.BatteryService$Led.updateLightsLocked(BatteryService.java:849)
E BatteryService: at com.android.server.BatteryService.processValuesLocked(BatteryService.java:501)
E BatteryService: at com.android.server.BatteryService.update(BatteryService.java:330)
E BatteryService: at com.android.server.BatteryService.-wrap4(BatteryService.java)
E BatteryService: at com.android.server.BatteryService$BatteryListener.batteryPropertiesChanged(BatteryService.java:870)
E BatteryService: at android.os.IBatteryPropertiesListener$Stub.onTransact(IBatteryPropertiesListener.java:58)
E BatteryService: at android.os.Binder.execTransact(Binder.java:453)
E BatteryService: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
E BatteryService: at libcore.io.Posix.open(Native Method)
E BatteryService: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
E BatteryService: at libcore.io.IoBridge.open(IoBridge.java:438)
E BatteryService: ... 10 more
Change-Id: I3ed4d8959a7e492e483fab365cf09612b5302908
(cherry picked from commit
64deb448b8ac50587bc90e3506e639e4e1a066ed)
Joey Rizzoli [Tue, 4 Oct 2016 19:54:42 +0000 (21:54 +0200)]
base: cm-iy adb notification icon
Change-Id: I241d09a605cd1d62c61f40e1e20f89f8eec8f352
Signed-off-by: Joey Rizzoli <joey@cyanogenmoditalia.it>
Roman Birg [Fri, 5 Feb 2016 18:53:12 +0000 (10:53 -0800)]
SystemUI: add volume tones back
During the move from VolumePanel to the new VolumeController/Dialog
setup, the volume tone logic got removed.
Ref: CYNGNOS-1891
Change-Id: I2860819e83507ef01948d1adb53840feecfa622d
Signed-off-by: Roman Birg <roman@cyngn.com>
Alexander Wuerstlein [Thu, 1 Sep 2016 12:23:02 +0000 (14:23 +0200)]
connectivity-service: fix/improve unique hostname
ConnectivityService should set the net.hostname property to either
the current DEVICE_HOSTNAME or android-ANDROID_ID or leave net.hostname
unchanged if already set. However, the logic was flawed such that if
DEVICE_HOSTNAME was empty but net.hostname was not, net.hostname would
always be set to an empty string, leading to DHCP breakage later on.
The logic has been fixed, clarified and improved such that:
net.hostname will only be changed if it is empty. If net.hostname is
empty, it will be set to either (in order): the nonempty value of
DEVICE_HOSTNAME, android-ANDROID_ID or android-r-RANDOM_NUMBER. The last
option is an addition to have a sensible fallback in case both
DEVICE_HOSTNAME and ANDROID_ID are empty.
The random number is generated by java.util.Random, because I consider
cryptographically strong randomness unnecessary here and think possible
blocking in SecureRandom might be undesirable.
Thanks to stargo for pointing me to the right place to edit.
Thanks to Ethan Chen for his stylistic advice.
Change-Id: I603ab4d6a265456bf4fa310939965cfa677fc881
Alexander Wuerstlein [Mon, 29 Aug 2016 13:41:10 +0000 (15:41 +0200)]
Ensure DHCP requests have nonempty hostnames
If the net.hostname property is empty or not found, Android issues
DHCP requests with an empty hostname field (option 12). RFC2132 section
3.14 prescribes a minimum length of 1 byte for the hostname.
To fix this, a generic 'android-dhcp' hostname is used as a fallback.
Change-Id: I7a92e7295f72b3255e4fba6498fb4039906eb702
Steve Kondik [Tue, 4 Oct 2016 20:20:16 +0000 (13:20 -0700)]
Merge tag 'android-7.0.0_r14' of https://android.googlesource.com/platform/frameworks/base into cm-14.0
Android 7.0.0 Release 14 (NBD90Z)
Change-Id: I8d0e0e94280931448e9a99f3c22e9f56f5d2fae5
qqzhou [Tue, 17 Dec 2013 06:10:08 +0000 (14:10 +0800)]
Download: Add support to manually pause/resume download
Add the pause and resume APIs here so that applications can
pause and resume downloads manually through DownloadManager.
This patch consists of 2 changes:
1. Add pause and resume download APIs
2. Add another paused reason for this download status
Change-Id: I606b48ca20f43bcc6c119683818c2ab6ff03bfe5
Michael Bestas [Fri, 3 Apr 2015 21:33:37 +0000 (14:33 -0700)]
Forward port CM Screen Security settings (1/2)
* Variable size pattern lockscreen
* Toggle dots/error pattern visibility
Change-Id: Ie109e82c1fb2fd96b07e977e1cd76ae3acb865ff
Fix pattern visibility settings (1/2)
Change-Id: Ic627953c5df854c442671a98b5da539b994da18b
LockPatternUtils: Use the actual user id to set pattern size
Ticket: CYNGNOS-2462
Change-Id: Ia68e26ec2dfc23317135d933bc25204c1380bb02
LockSettings: fix build
Change-Id: Ic65b1a2af398faffb83776ee4013d47f79ab6619
Signed-off-by: Roman Birg <roman@cyngn.com>
Steve Kondik [Mon, 2 May 2016 11:01:43 +0000 (04:01 -0700)]
keyguard: Allow disabling fingerprint wake-and-unlock
* When the fingerprint sensor is embedded in the power key,
wake-and-unlock is total chaos. Add an option to disable it.
* The default behavior is unchanged.
Change-Id: I50c0a857daba92c17470d8089aca94099c792956
Steve Kondik [Mon, 3 Oct 2016 06:21:41 +0000 (23:21 -0700)]
camera: Tolerate errors in getHorizontal/VerticalViewAngle
* Don't try to parse "nan"
Change-Id: I5fdfc3055b0c8514c3848ae3c26788478bfda9ae
Maunik Shah [Thu, 15 Aug 2013 11:37:59 +0000 (17:07 +0530)]
Screenshots info is not updated when device is plugged in MTP mode
When device is connected as MTP mode and user opens folder
/sdcard/Pictures/Screenshots/ in windows system and captures new
screenshot, image information is always shown as 0 KB
Issue: https://code.google.com/p/android/issues/detail?id=56204
Change-Id: I46f3d72d275e164e40e305a3b5aafe685e6905f2
takuya,souma [Tue, 13 Sep 2016 07:58:08 +0000 (16:58 +0900)]
Reset mCurrentUserId when fingerprintd died
A template fingerprint data is not loaded in fingerprintd when
fingerprintd is died and restarted.
FigerprintService tries to set userId after a restart of fingerprintd,
but it's skipped because the service tries to set same userId already
set to mCurrentUserId.
To load correct template fingerprint data, reset mCurrentUserId
when fingerprintd died.
Bug:
31734514
Change-Id: I0d3452fc6c1f82bb2a2af10f61d3f3a47df9dec6
AdrianDC [Wed, 18 Nov 2015 18:15:29 +0000 (19:15 +0100)]
MountService: Prevent NPE with DropBoxManager
* "java.lang.NullPointerException: Attempt to invoke virtual
method 'void android.os.DropBoxManager.addText(java.lang.String,
java.lang.String)' on a null object reference"
Change-Id: I418ba99caa4f55b184fabee4ad610ca3e5e7c66f
Signed-off-by: AdrianDC <radian.dc@gmail.com>
Steve Kondik [Thu, 29 Sep 2016 12:25:28 +0000 (05:25 -0700)]
Revert "SystemUI: Fix no emergency call button on lock screen"
This reverts commit
2ce7d20b3ab0b044be3bedc3e19f615386ca5843.
Revert "Keyguard: Replace "Emergency" to "Emergency call""
This reverts commit
e9b89c1191e7df8632552ae9d2a910309e11f68f.
Change-Id: I4438d76de8589037eb47775131ed786d8090d25a
Steve Kondik [Thu, 29 Sep 2016 12:24:45 +0000 (05:24 -0700)]
Merge branch 'android-framework.lnx.2.0.r5-rel' of git://codeaurora.org/platform/frameworks/base into cm-14.0
Change-Id: I4536b7added1c85b3301fcdabd9aca9ead7a2c8a
Gabriele M [Sun, 25 Sep 2016 22:43:08 +0000 (00:43 +0200)]
Fix volume keys wakeup status handling
The same status flag is used for the three different volume keys,
however nothing prevents users from pressing multiple keys at the
same time. This allows to set the status flag with one volume key
and clear it with the other volume key.
Use one flag per key so that we never end up in an inconsistent
state. This fixes the seldom power button issues that happen when
the "volume wake" feature is enabled.
Change-Id: I08f5f9ff696bef3dd840cff97d570e44ebe03e4e
LuK1337 [Sun, 25 Sep 2016 21:33:19 +0000 (23:33 +0200)]
SystemUI: Remove nav bar and status bar options from SystemUI Tuner
* We have them in CMPArts thus there's no need
of having them duplicated here.
Change-Id: I67f90bce73296f02f2eaaa0d564492490573383a
LuK1337 [Sun, 25 Sep 2016 19:58:47 +0000 (21:58 +0200)]
SystemUI: Disable SystemUI tuner toggle
* Currently we use SystemUI Tuner for /Status Bar icons/
link in CMParts. Disabling it simply makes CMParts crash
when trying to switch to that preference.
Change-Id: Id2e3d31a75a097e0a92029eb61803699d9c51308
Pawit Pornkitprasan [Fri, 28 Nov 2014 13:24:02 +0000 (20:24 +0700)]
KeyguardSimPinView: don't send dummy request to get remaining pin
I'm not sure of the behavior on QCOM RILs, but on Broadcom RILs
(and probably other RILs), this will eat into the user's PIN
remaining tries. Given that the user is only given ~3 tries, this
is a very bad idea.
In addition, if onAttachedToWindow is called multiple times before
the RIL replies, this can completely delete the retry quota leading
straight to the PUK screen.
Change-Id: I339f1b6d79d543ae8930a7bb95acf823fd5ae20e
Zhao Wei Liew [Sat, 24 Sep 2016 16:11:18 +0000 (00:11 +0800)]
Revert "SystemUI: Show percentage of battery"
CM has its own battery customization options.
Revert the original CAF commit as it is unnecessary.
This reverts commit
296a682a69a4be8fb99fa6c3e82cd5833d594b80.
Change-Id: I1e806d89cfa56ff18f91cc8ae7b7f65954f5f92b
Zhao Wei Liew [Sat, 24 Sep 2016 07:45:10 +0000 (15:45 +0800)]
Revert "Support to show long or short name in SystemUI."
This config option introduced by CAF seems pretty pointless.
Revert the original CAF commit to reduce deviation from AOSP.
This essentially reverts commit
9bb392c0fcdb41870cd7b1c004250e92bbf0672f.
Change-Id: I8439467f26ae1d612146f1213dfa90e8c0fecc7e
Linux Build Service Account [Sat, 24 Sep 2016 15:53:41 +0000 (08:53 -0700)]
Merge "Add bound checks to utf16_to_utf8"
Linux Build Service Account [Sat, 24 Sep 2016 15:53:33 +0000 (08:53 -0700)]
Merge "Fix time and ringtone issue of power off alarm"
Linux Build Service Account [Sat, 24 Sep 2016 15:53:30 +0000 (08:53 -0700)]
Merge "SystemUI: Fix SystemUI Force Close"
Fang Yunong [Wed, 21 Sep 2016 05:20:29 +0000 (13:20 +0800)]
DNM:SystemUI: System UI force close when switch font size
SystemUI force close as the ClassCastException occured when typecasting, use
the parameters of the parent class instead of typecasting.
Change-Id: I63d88d54d9b30363b20076354ea0edddef8fd8cd
CRs-Fixed:
1064417
mqi [Fri, 23 Sep 2016 02:12:45 +0000 (10:12 +0800)]
SystemUI: Fix SystemUI Force Close
SystemUI Force close due to missing 4g plus data activity in array.
Add 4g plus data activity in array.
Change-Id: I83586dfad6c45117215c0b0db934438519a721dd
CRs-Fixed:
1069866
Mao Jinlong [Mon, 19 Sep 2016 05:39:20 +0000 (13:39 +0800)]
Fix time and ringtone issue of power off alarm
Timezone property's value will be reset when system is in encryption
mode like trigger_restart_min_framework. Because only tempfs is mounted
on data partition. So store timezone value in persist alarm folder when
device reboot or shutdown and set the value to timezone when it is
encryption mode.
ExternalStorageProvider and DownloadProvider are necessary for power
off alarm. They are for external storage document content and download
document content. These contents can be set to power off alarm's ringtone.
The original purpose to send alarm action when activity manager service is
ready is that start alarm activity as quickly as possible. But there are
some resources like media contents for power off alarm will be ready only
after boot complete. Remove sending alarm action and start alarm activity
in AlarmInitReceiver when boot is complete. This will have little
effect(less than 2s) to the timestamp when starting alarm activity. The
effect is acceptable.
And add check of mIsPowerOffAlarmSet to avoid writing persist partition
frequently.
Change-Id: I6d662832f05393ddf65f1593ffea2f12da9c4eb8
CRs-Fixed:
1050321,
1046238
Sergio Giro [Tue, 28 Jun 2016 17:26:10 +0000 (18:26 +0100)]
Add bound checks to utf16_to_utf8
Test: ran libaapt2_tests64
Bug:
29250543
Change-Id: I1ebc017af623b6514cf0c493e8cd8e1d59ea26c3
(cherry picked from commit
4781057e78f63e0e99af109cebf3b6a78f4bfbb6)
(cherry picked from commit
866dc26ad4a98cc835d075b627326e7d7e52ffa1)
Steve Kondik [Fri, 23 Sep 2016 16:27:26 +0000 (09:27 -0700)]
systemui: Disable the charging animation
* QCOM turned this back on for some reason. It's pretty ugly
and eats power. Disable it by default to be on par with AOSP.
Change-Id: Idd22ec89a9ceb2391d39f97f645dcdb016d18831
Steve Kondik [Tue, 20 Sep 2016 09:38:08 +0000 (02:38 -0700)]
perf: Add boostage
* Boost the CPU during app launches and button presses.
Change-Id: Ic417f1c11428ff5f7f11405c28dac79b2b2ba6e0
Scott Mertz [Tue, 2 Aug 2016 18:06:46 +0000 (11:06 -0700)]
bootanimation: add multithreaded decode
Some devices can't keep up on a single thread trying
to decode & display the frames at a high frame rate. This is
observed if the sleep delay between frames is negative:
01-02 04:29:25.114 530 542 D BootAnimation: 63, -22
01-02 04:29:25.176 530 542 D BootAnimation: 61, -20
01-02 04:29:25.248 530 542 D BootAnimation: 72, -30
01-02 04:29:25.315 530 542 D BootAnimation: 66, -24
01-02 04:29:25.381 530 542 D BootAnimation: 66, -24
To mitigate this, take advantage of multiple cores by decoding on
n cores and caching up to m images. This keeps the memory footprint
small(ish) while still giving the best chance to maintain a
constant frame rate.
I measured boot time and fps for each animation part before
and after the change on an msm8909 with 1.5 GB RAM:
single thread:
01-02 04:40:45.826 540 556 I BootAnimation: fps = 22.40
01-02 04:40:49.457 540 556 I BootAnimation: fps = 13.22
01-02 04:40:51.464 540 556 I BootAnimation: fps = 23.92
01-02 04:41:19.375 540 556 I BootAnimation: fps = 22.89
01-02 04:41:23.942 540 556 I BootAnimation: fps = 15.55
boot time: 51.05s
multi thread:
01-02 04:38:55.148 526 551 I BootAnimation: fps = 22.56
01-02 04:38:57.205 526 551 I BootAnimation: fps = 23.39
01-02 04:38:59.249 526 551 I BootAnimation: fps = 23.92
01-02 04:39:29.196 526 551 I BootAnimation: fps = 23.16
01-02 04:39:32.186 526 551 I BootAnimation: fps = 23.79
boot time: 50.50s
Need to test the affect on boot time with an animation that doesn't
cache the textures as much as this to see the real effect.
Change-Id: If7464dc063b08a0bc33ee3f094028247b39650c1
Maria Yu [Tue, 14 Jan 2014 05:56:53 +0000 (13:56 +0800)]
bootanimation: performance/speedup enhancements
Bootanimation: Fix the low memory device oom when run boot animation
Low memory device is easily to be oom when run boot animation. Here
we do optimize the boot animation GL Texture only one frame needed.
That is free timely and re-init it again. When in boot animation,
the fps=15, so it is ok to do the delete and re-init.
CRs-Fixed: 572325
Change-Id: I1e81c3d0f3600ac895f9bd7bd00a284f3d4b7d4c
bootanimation: Fix compilation warnings
Change-Id: Iaf7e66811f3cecf8b5b1fa690941489a7a07f7fd
bootanimation: performance/speedup enhancements (squashed from CM11)
bootanim: Don't cache textures if they're expected to use a lot of VRAM (rmcc)
https://github.com/CyanogenMod/android_frameworks_base/commit/
14f9eecd3f543a25c4a2053d6155a9396a777a3a#cmds/bootanimation
bootanimation: performance enhancements (turl)
https://github.com/CyanogenMod/android_frameworks_base/commit/
e6b54405aa70d7503a114d9c90ef7518abdd7133#cmds/bootanimation
bootanimation: fix usage of LOGW (intervigilium)
https://github.com/CyanogenMod/android_frameworks_base/commit/
e45cf7d232490f44aecf8f2447220a8b5ace4c10#cmds/bootanimation
bootanimation: allow using RGB565 instead of ARGB8888 (tpruvot)
https://github.com/CyanogenMod/android_frameworks_base/commit/
204282870a9c69b04ad5ddecd73fafbd7996cbc0#cmds/bootanimation
Change-Id: I203fa23f77d1349fb822a7662e2cd3998ba4c814
bootanimation: Do not free frame map
The frame map is reused when needSaveMem==true, resulting in a double
free and segfault.
The only side effect would seem to be failure to cleanup all resources
at exit. That's acceptable, as the kernel will do it anyway.
Note that in 12.1, the frame map release commit was reverted by CAF in
commit I535330edb636f9457beed0849147168eaa6ae2ec, which results in the
same behavior.
Change-Id: I4ea66dccd1f5c9d784701242fba8700bce271579
bootanimation: Switch to readahead
Change-Id: I287132e311e96c0437df67c76b86bb47b8f8380e
[mikeioannina]: Adjust for cm-14.0
Change-Id: I203fa23f77d1349fb822a7662e2cd3998ba4c814
Chiou-Hao Hsu [Tue, 14 Oct 2014 00:55:42 +0000 (17:55 -0700)]
BootAnimation: Play boot/shutdown animation and music
Add support to show customized boot and shut down animation, as
well as music.
Change-Id: I69c87640175a96a18833a763a34afd362bbfb487
Conflicts:
cmds/bootanimation/Android.mk
cmds/bootanimation/BootAnimation.cpp
bootanimtion: fix no boot sound due to error file descriptor
-wrong file descriptor passed to setDataSource(fd, offset, length)
API and causes no sound
-use the default setDataSource(httpService,url,header) to parse
the file of boot sound
CRs-Fixed: 731547
Change-Id: I437e7d797cd13b7f8f8e0fbf81d5de99c55c27d1
bootanimation: Only try to shutdown the mediaplayer if it was prepared
The bootanimation tries to shutdown the mediaplayer gracefully by waiting
on an asynchronous shutdown event for 5 seconds.
If, however, there is no boot sound, that asynchronous shutdown event will
never happen and the animation will be stopped for 5 seconds before shutting
down.
Visibly, this fixes the issue where the bootanimation would simply stop near
the end for exactly 5 seconds.
Change-Id: I77f5631368c7d9b9fef7941a6278af9c36032044
bootanimation: Fix compilation warnings
Change-Id: Iaf7e66811f3cecf8b5b1fa690941489a7a07f7fd
bootanimation: Move the bootanimation playaudio code
Move the bootanimation playaudio code, so that the audio plays
after the boot animation, because the audio manager is not ready and races
with the boot animation, if they the audio and boot animation play
together and makes the boot animation stutter.
SAMOSA-10
Change-Id: I56ab19ec06a4af2de84916cdc330e646dd5a8695
(cherry picked from commit
9ccd025499bb36c27d1a9b0c5d20d1cc86beb167)
bootanimation: Use CLOCK_MONTONIC for pthread
Use CLOCK_REALTIME can mess up the pthread timed
wait if system clock changes.
Change-Id: I7e14958460ccd1ecd8c9aa3cdfa4e60dd2a083ec
[mikeioannina]: Adjust for cm-14.0
Change-Id: I437e7d797cd13b7f8f8e0fbf81d5de99c55c27d1
Linux Build Service Account [Thu, 22 Sep 2016 12:14:52 +0000 (05:14 -0700)]
Merge
9e56490378491dc93d139b446785256cf3d07b70 on remote branch
Change-Id: I329d327b5700edb3614b6c9a491e5e8e6d40783c
Michael Bestas [Sat, 7 Nov 2015 21:52:26 +0000 (23:52 +0200)]
Fix reboot dialog messages
* Fix mismerge
* Fix wrong messages being displayed when rebooting to recovery
Change-Id: I09a04cc82d48539e8086fd55c30d6160c292bc08
Zhao Wei Liew [Thu, 8 Sep 2016 06:05:06 +0000 (14:05 +0800)]
core: Remove QCOM BoostFramework and ActivityTrigger
These rely on a bunch of proprietary libs that not
all devices support. CM has its own boosting solution
anyway, rendering these additions unnecessary.
One small, but important change has been omitted from the revert,
that is the addition of ro.sys.fw.bg_apps_limit in the file
services/core/java/com/android/server/am/ProcessList.java.
This reverts the following commits:
c35293c3be2b5a0eaf1986b6772040a19f2d828a Framework for LaunchBoost v2 and Frequency aggr during launch.
91338fb35fcc9a155345d284bc24fad86f4d33a8 frameworks: Add custom boost for scroll/fling
911884e18f8e7ec76bf9db5ea9a91e6f0d65ba6b Perf: Adding hooks for IO prefetcher into framework
f56206d659dd686db3f7bf3c2660609917e9777d BoostFramework to enhance performance during critical scenarios
d841ef6271723021a663243ff34284a33a15cebf add network related API into ActivityTrigger
2f1b28122493a80448f3af499d660a5b7cbaa879 Set animation scale values for specific activity.
4ea9a4ec7fac2bf280a72149277b74a53d222cbc frameworks/base: activity pause/stop event triggers
015851c69698ff9558f3f0c7208a06083728cdad frameworks/base: Tap process start event to trigger perf lib.
e14378bf325f07b9133156ff82a18bb15f3f3716 frameworks/base: Add support for low resolution rendering
4d9ec1350434aa71540801e7fa42cee82c06beed ActivityTrigger: New class to invoke when activity starts/resumes
Change-Id: Iafdc3866c39d4e0d51ca2d40931ea9a5baba7de5
Utkarsh Gupta [Tue, 18 Aug 2015 06:57:39 +0000 (12:27 +0530)]
SystemUI: use new visualizer from Eleven
Change-Id: I4441440868cac71caa32c91a0875f00a630fe596
Signed-off-by: Utkarsh Gupta <utkarsh.eminem@gmail.com>
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: fix NPE crash when Visualizer is not initialized
Change-Id: Ic3774011acfae0312f1642d88c7f5bf2abc9f5a7
SystemUI: hide visualizer when keyguard is occluded
Change-Id: Ia943fd829f7a379fee0f657bb08c34b8c6f36caa
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: Make lockscreen visualizer battery friendly
In case of offloaded playback, the device is allowed to sleep.
However, if the lockscreen visualizer is enabled, the device
hardly enters deep sleep, even if the screen is off. To prevent
this, enable the visualizer only when the lockscreen is shown.
Change-Id: I484270694b734c9b53e61a7c0ad74391b54fe8cd
SystemUI: more consistent visualizer logic
- only call setVisible from screen on and screen off methods
- eagerly unregister self to make sure we don't get added twice as a
listener
- Add some debugging under the DEBUG flag
Change-Id: Iada13058f87d4c8d8c8b60f6eebf055652ff2c8d
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: show visualizer in shade-locked view
This brings back the behavior we had in 12.1 - visualizer would still be
visible in the shade locked state.
Also with the following improvements:
* use less alpha
* always attach/detach in a background thread (Async task)
* use the statusbar state instead keyguard view state listener
Change-Id: I6b8a57f9f0bba6ba0591de0cb1f94a0eb904cc1c
Signed-off-by: Roman Birg <roman@cyngn.com>
Visualizer: Let visualizer fill the entire available screen
* This will allow it to be more dynamic (landscape lock screen for instance)
Change-Id: I2ffd6b0ca8832812faaa4cc0ec4cdd6071fbec8c
Danny Baumann [Wed, 1 Apr 2015 06:44:37 +0000 (08:44 +0200)]
Increase brightness faster if ambient light is brightening quickly.
The point of doing this is when going from indoors to bright sunlight,
the brightness adjustment currently leaves one with looking at an
unreadable display for a couple of seconds. Increase responsiveness in
that scenario to ramp up brightness faster.
Change-Id: Idf8ca8ebcdcea06746b0c4f3ab94d2ddddafb32e
Steve Kondik [Sun, 3 Apr 2016 19:58:09 +0000 (12:58 -0700)]
audio: Don't play sound effects if stream is muted
* Stop turning on the audio hardware and playing silence.
* Kind of annoying with certain types of Bluetooth headphones
that don't actually play silence very well (hissssssssss).
Not to mention power usage.
Change-Id: I6985db8710f8b0f61619ac57e8efb9e4e01cc31a
Cristoforo Cataldo [Fri, 31 Jan 2014 06:36:29 +0000 (07:36 +0100)]
GlobalActions: Set the initial status of airplane mode toggle
Actually, the initial status of airplane mode toggle is set to false
when the power menu dialog is initialized.
This causes an issue if you set airplane mode and then reboot.
After the reboot, the dialog displays the wrong airplane mode status,
eg. "Airplane mode is not active", and if you toggle that option, a wrong
intent is sent again to put ON the airplane mode, instead of OFF, the
toggle (that is in transition state) will be set disabled.
This commit fixes this issue.
Change-Id: Id30355c1e090355645c437086c79ab59093c27a8
LuK1337 [Tue, 6 Sep 2016 12:37:56 +0000 (14:37 +0200)]
SystemUI: Fix NPE when setting network name
Change-Id: I124f86493e013d0b30d520cf988c5804a39d8a0a
Roman Birg [Fri, 5 Feb 2016 00:28:00 +0000 (16:28 -0800)]
framework: move device key handler logic, fix gesture camera launch
In order to make device camera gestures behave the same way as launching
the camera by double tapping the power button, route DeviceKeyHandler
logic through the GestureLauncherService.
A callback is used in order to avoid publishing the
GestureLauncherService into the System service registry, because the
KeyHandler code cannot directly access services local to the system
process.
OPO-427
Change-Id: I2a8860b278f65ccf31bfee151513d8a23ab746c5
Signed-off-by: Roman Birg <roman@cyngn.com>
KeyHandler: don't break old interfaces
Causing bootloops on devices, don't break old interfaces in the
framework.
OPO-427
Change-Id: I49473b057bc4ed4710e9092c76e41c6a8134d2de
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: handle camera launch gesture from keyhadler
Includes partial reverts:
Revert "KeyHandler: don't break old interfaces"
This reverts commit
31ecbdc5fcc1263e9028107858565d951798fd93.
Revert "framework: move device key handler logic, fix gesture camera launch"
This reverts commit
db1b4e6e4880be1828342be9bc468d36565a2ef0.
Ref: OPO-427
Change-Id: Ic15543a8f63ad4521ab0ab536d00224b0bd70f8c
Signed-off-by: Roman Birg <roman@cyngn.com>
Danesh M [Sun, 18 Jan 2015 08:33:00 +0000 (00:33 -0800)]
SystemUI: Lockscreen shortcut customization
Change-Id: I4abf1deed0a342e111453516fa7820191a55ffc4
Revert "SystemUI: recalculate clock position on removing empty shade views"
This reverts commit
023d3365524584de91acf4716822553f38aa507b.
Change-Id: I79bde45cd57e2523dbfa3211c5971c4b82a240c0
Lockscreen : Only animate targets if launched via swipe
If launching via gesture or double tap of power button, showing the
reveal doesn't make much sense and creates visual jank. Only animate
for swipes.
Change-Id: I69e1d06c77c12fe39b5ddb01bcc22ed2fff2a9d0
Keyguard : Ensure we expand onIconClicked
Not doing so shows visible clipping when the notification
panel is expanded mainly due to the limited height of the bar.
Change-Id: I50a35b186b3efb8a0e4ba0ae18ff915aebe236c6
SystemUI: fix double tap power launching custom lockscreen icon
Ticket: RM-232
Change-Id: I2ddf9fce55e9deb9cdf70416f0ed2ee5ce6ce225
Signed-off-by: Roman Birg <roman@cyngn.com>
Fix leftAffordanceView visibility bug
When you disable the left bottom lockscreen target, is suppose to be completely disabled like the right target.
While the icon itself disappears, the preview and hint are still present. This fixes that :-)
See images to see bug:
http://i.imgur.com/WhBvZkc.jpg & http://i.imgur.com/otyOn6m.png
Change-Id: If5b30f03649d5081409a98dbd36c49b99a5095d7
Ensure camera is launched if doing screen off gesture
Currently it launches whatever the right affordance is set to, which is
incorrect. Ensure screen off gesture always launches camera.
Change-Id: I251d37ccc85d014ff46714b222b9074b2092f6e1
SystemUI : Ensure previous camera preview is removed
For lockscreen shortcuts, ensure if the camera intent changes,
we remove the previous view.
Change-Id: I7c44353d25ddc47c3d986acf32dd9a3e85915c82
Hendrik Hagendorn [Mon, 19 Sep 2016 20:18:04 +0000 (22:18 +0200)]
SystemUI: Use AndroidManifest_cm.xml
* Fixes navigation bar settings crash
Change-Id: I3834b6fe4e2865964d2bcfcd583ca30a3c5b76d0
Steve Kondik [Mon, 19 Sep 2016 17:34:42 +0000 (10:34 -0700)]
lights: Really make sure the lights are out
* Fix mismerge which didn't consider the additional condition.
Change-Id: I12d8d31b2e1650762eb09ed46d90150c2e5dd97b
LuK1337 [Mon, 19 Sep 2016 15:27:59 +0000 (17:27 +0200)]
SystemUI: Enable TunerActivity
* Fixes 'Status bar icons' link in CMParts.
Change-Id: If0a26ce58f845f122da78f1f5b7d071d699995dd
Dhruva Krishnamurthy [Sat, 17 Sep 2016 20:11:23 +0000 (13:11 -0700)]
Fix build on MacOS due to use of deprecated APIs using Xcode 8
Change-Id: I99f6e5c2d5e323ae3e7afef6c86d62e34256ad7b
Arne Coucheron [Thu, 15 Sep 2016 04:41:49 +0000 (06:41 +0200)]
Revert "Telephony: Update cdma_chocies and world_phone config values."
This reverts commit
290ced8b21f3b5514eadeeb29a7117a8fe2ee92d.
Change-Id: I81682b1fc7a159136d549608975117cb9e019758
Danny Baumann [Mon, 12 Sep 2016 09:38:58 +0000 (11:38 +0200)]
Allow adjusting screen density to smaller sizes.
Accomodates for 6" 1080x1920 devices that run at 480dpi by default, but
those physical resolution is ~360dpi.
Change-Id: I82973b097612f1e7d26af9fdbb3ac2ae28c6b93b
Tom Marshall [Tue, 24 Nov 2015 23:28:43 +0000 (15:28 -0800)]
storage: Do not notify for volumes on non-removable disks
Change-Id: Ia353ab43fbeba42d7d9c21d926f638f550a3dbbe
Michael Bestas [Tue, 14 Jul 2015 13:55:04 +0000 (16:55 +0300)]
Fix mounting of non-FAT formatted SD cards (1/2)
Change-Id: I77fe9e09b523bcba68dd2409def68acb715ca33c
Linux Build Service Account [Thu, 15 Sep 2016 09:08:33 +0000 (03:08 -0600)]
Promotion of android-framework.lnx.2.0-00009.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1056112 I12c662876ee8dfc7caab8a29fced62c06fdd2525 Update the default usb config
1037558 I4578e91764e4f4d4a387ac2bdc851a391acc7986 frameworks: Added listener for NETSTATS_GLOBAL_ALERT_BYT
1056033 Ia0a7b06112dde1c925ec3232f50bf4d90b17b5e5 Check uid for notification policy access.
1063539 Idb480eb33f697687296b4257bd2ffa8fea0f8516 IMS: Arrange data, VoLTE icons in correct order.
1019030 If367ea7781732db34c71d45fd667c6c062ffc709 Fix 4g plus icon issue in quick settings
1042831 I8630b2a369f7e3cb21f50b2483cb9c91bd8ad74c Do not display No SIM when sim info not available
1059100 Id9748ea39a8fa03b67d3fa6f91da530dd5cf9409 Don't allow enable/disable of tuner on lockscreen
963192 I823ca081bfa887e7c0fa9d3ef66a500023cf1d32 SystemUI: Fix no emergency call button on lock screen
1064438 I55009c56b951d49e738f262877008df8ec00922c Frameworks: Add CHN-CT to String Mapping Table
1063320 Ia383ce3ecc7fb5051c00211b007acd7123124a4c Don't remove preferred activities when in power off alar
1041552 I5ca4fbaf654ced73e14260b27fbb2bdc4f23d334 Bluetooth: Fix broadcast receiver leak issue
1059102 I38cc9d0e584c3f2674c9ff1d91f77a11479d8943 Disallow shell to mutate always-on vpn when DISALLOW_CON
1056697 Id3a75d44e25ee8744e0551bae046876880909650 Frameworks: fix living wallpaper exception when reboot
1056112 I05f9c73c0d1c151461fe17b9dde6771e46993849 Update the customize date format
1055325 I09430e5ac838e8f5e642d4479dd459e7e5f39e6a Fix: Layout children again when padding changed in AbsLi
1055953 Id3b4472b59ded2c7c29762ddf008ee8486009dbb Block user from setting safe boot setting via adb
1059104 I92da498110db49f7a523d6f775f191c4b52a4ad6 Pre-setup restrictions
1059109 I899f13898773483ee627a974d70173b5aa962e9a Allow apps with CREATE_USERS permission to call UM.getPr
1065882 Iedd16b1693b20ec39e7e6290cb7ed9f9e7b828a8 ShutdownThread: Call into oem shutdown function
1063317 I0c3cb964af2044235c13c17f38994f5318d26a6b Don't start wallpaperManagerService when in power off al
991999 I78fe3a1128494fb2822cfa0c5326d20ad33ab374 SettingsLib: the time is wrong in battery info view.
Change-Id: I68690636efc5287cc0bf814a3aa2b8d1f49213e9
CRs-Fixed:
1059100,
1059102,
1064438,
1056033,
1059109,
1056112,
1056697, 991999,
1037558,
1059104,
1042831,
1041552,
1019030,
1063539,
1063317,
1055325,
1063320,
1065882, 963192,
1055953
Steve Kondik [Wed, 14 Sep 2016 12:08:02 +0000 (05:08 -0700)]
systemui: Fix a few issues with Tuner
* Allow launching PreferenceScreens directly by setting the
"tuner" extra to a valid key.
* Remove the silly warning. There are no dragons here.
* Move CM stuff to CM manifest.
* Fix the ActionBar title when navigating.
Change-Id: Ideac31dbfd71d7c0aa7fc3c20395c24128c598fc
Linux Build Service Account [Wed, 14 Sep 2016 08:52:59 +0000 (01:52 -0700)]
Merge "SystemUI: Fix no emergency call button on lock screen"
Linux Build Service Account [Wed, 14 Sep 2016 08:52:58 +0000 (01:52 -0700)]
Merge "SettingsLib: the time is wrong in battery info view."
Danesh M [Thu, 22 Oct 2015 17:51:02 +0000 (10:51 -0700)]
SystemUI : Clock position support + am/pm styles
Based on Dave Kessler's work from cm-12.0
Change-Id: I88e630fcfcffd8a795f1abbeecd71a258d0e8e81
SystemUI: recalculate clock position on removing empty shade views
Change-Id: I70cc2dd3e1da99d4467cd43fc81018ccf135cd77
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit
4f965c58bcfb8c657cf9bd26a30fe3eeb9c058ef)
SystemUI: fix clock jumping when expanding QS from lockscreen
commit
4f965c5 fixed recalculating clock position from shade_locked but
it didn't account for other scenarios such as when the QS is expanding,
causing the clock to jump when expanding QS from lockscreen.
Change-Id: I0e4f473fbc500f7dcdfa015cbedda07761c3cdb2
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit
6831615aa4db003fc7b3a64e22083c6cb69f3fa4)
SystemUI : Fix left/center clock visibility
Change-Id: I5bee0927ceaf93ea4cc0751bcb866aaaed64356b
SystemUI : Make clock/navigation multi-user compatible
Change-Id: Ie6a1552aeb31e138221143d548f7cd4cbb5bde7e
Steve Kondik [Wed, 14 Sep 2016 06:46:34 +0000 (23:46 -0700)]
systemui: Allow using tuner API for CMSettings
* Use the prefix "cm:" on the key supplied and it will redirect
to CMSettings.
Change-Id: Id4266a568deb8fb32857136990711b5d9d487721
Linux Build Service Account [Tue, 13 Sep 2016 22:21:09 +0000 (15:21 -0700)]
Merge "ShutdownThread: Call into oem shutdown function"
Linux Build Service Account [Tue, 13 Sep 2016 22:21:07 +0000 (15:21 -0700)]
Merge "Allow apps with CREATE_USERS permission to call UM.getProfiles."
Linux Build Service Account [Tue, 13 Sep 2016 22:21:05 +0000 (15:21 -0700)]
Merge "Bluetooth: Fix broadcast receiver leak issue"
Danesh M [Sat, 12 Mar 2016 04:20:46 +0000 (20:20 -0800)]
Move keyDisabled and gamma to service
This allows us to keep track of user changes, and
update preferences.
CYNGNOS-1166
Change-Id: I8809c346c748e39e5d64b9e56a2b7623a0d0131b
CMSettings : Move force_show_navbar to global
Keep feature inline with 12.1, only allow owner to
control the feature and mirror across users.
Also add additional checks for moved settings.
OPO-696
Change-Id: I81c942ab106fead12020107b99c0795a5b9aac98
Settings: defer DEV_FORCE_SHOW_NAVBAR query to CMSettings
Some apps were using Settings.System.DEV_FORCE_SHOW_NAVBAR to determine
whether the device was forcing a nav bar. It was then moved to
Settings.Secure, and then to CMSettings.Secure.
So some apps check against Settings.System, and some may check against
Settings.Secure. The real value lives in CMSettings.Secure right now.
We could not intercept the setting because MOVED_TO_SECURE would return
the already-cached value from Settings.Secure, not allowing us to
intercept the call in CMSettings.
With this removal, we can handle the logic for this key in
CMSettingsProvider.
Ticket: CYNGNOS-2480
Change-Id: I7485c0d0acf90df365e5ed5ebdb42596d148de62
Signed-off-by: Roman Birg <roman@cyngn.com>
Utkarsh Gupta [Sat, 4 Apr 2015 09:43:00 +0000 (15:13 +0530)]
Allow screen unpinning on devices without navbar
Change-Id: Iedfc08f4d95bbee3c8578c0d2450b90739e63603
Screen Pinning: Show correct text for on screen nav.
Similar to I09c2ef661bff272cb4f7ca43bac0e45f4b20a4d4,
we're not getting an instance of PhoneWindowManager which
we can rely on to update dynamically.
TICKET: OPO-393
Change-Id: Iacf8221066461fb6940dd88432e665812545c3ff
Alexander Martinz [Mon, 12 Sep 2016 15:47:25 +0000 (17:47 +0200)]
systemui: fix NPE when opening now on tap
Change-Id: Id99396c826f7fe3e10c29964df0699014811db07
Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
Keith Mok [Mon, 16 Nov 2015 21:48:36 +0000 (13:48 -0800)]
DeviceKeyHandler: Fix suspend gesture not working
A function for handling DeviceKey is mis-placed in
PhoneWindowManager.java when merging from cm-12.1
Change-Id: I5a5421c88216b70defaac69b732d99d506e1a2a6
Steve Kondik [Tue, 13 Sep 2016 16:25:52 +0000 (09:25 -0700)]
Merge tag 'android-7.0.0_r6' of https://android.googlesource.com/platform/frameworks/base into cm-14.0
Android 7.0.0 release 6
Linux Build Service Account [Tue, 13 Sep 2016 14:23:32 +0000 (07:23 -0700)]
Merge "IMS: Arrange data, VoLTE icons in correct order."
Danny Baumann [Mon, 5 Aug 2013 08:32:19 +0000 (10:32 +0200)]
Allow adjusting progress on touch events.
Change-Id: Ide0a7ae057a62f3631a32eeaa63f3e04dec5bf54
Steve Kondik [Mon, 12 Sep 2016 19:49:59 +0000 (12:49 -0700)]
systemui: Enable navbar tuner
* And add an action for it.
Change-Id: I23a51cc8e33f3498deec9ed60281423c66bbc4ca
Tom Giordano [Tue, 24 Jan 2012 11:51:01 +0000 (22:51 +1100)]
framework: fix screenshot and rotation animation for devices with abnormal hw rotation
Change-Id: I42694931cb1a754aa6c7652c0a96304ef1f88492
Adnan Begovic [Mon, 4 Nov 2013 00:58:57 +0000 (00:58 +0000)]
Port over linked volumes from 12.1
Implement linked volumes and add upgrade path.
Change-Id: Ibbeff656fcaaa4a2ff79de530b48b216df271b21
frameworks: read VOLUME_LINK_NOTIFICATION from proper table
Change-Id: I15e9caa18f307a51a732c7a59013bbbb234a7477
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit
1b7cfa1716017e0d03c9693428c21d8e11c5dc0a)
fix Notification volume slider linking
Change-Id: I0f74485f5c8c2aa7698cf9ba1c60c2c8c967798d
Signed-off-by: Roman Birg <roman@cyngn.com>
Improve SeekBarVolumizer behavior with unlinked streams
- Fix notification stream enabling at 0 volume
- Fix the notification slider being set when moving ringer stream
Change-Id: If3705cc833c07f726f8ad7b1ec79a42e86e8ff22
Signed-off-by: Roman Birg <roman@cyngn.com>
base: Fix notification sounds for wifi only devices
The linking of voice & notification doesn't take into account the
fact that a device may not actually have voice capabilities. Whenever
checking whether or not to link notification and ring volumes, also
verify that the device really is voice capable.
Change-Id: Iae49302d3b5934d36b182e289e4975f5dd85b834
frameworks: fix setting up linked notification stream on boot
updateStreamVolumeAlias() was previously responsible for checking the
linked notification variable and mapping the notification stream, but
the setting to read whether the notifications were linked was read in
after that method had run which was responsible for linking them.
Extract the logic and re-run it again after reading the persisted
settings.
Change-Id: Ia62bf3ca072def54ec6ebf4f9e865d9c913e3bc4
Signed-off-by: Roman Birg <roman@cyngn.com>
fixup volume stream linking
- Make the SeekBarVolumizer move notification and ringer streams when
linked and moving ringer.
- Fix initial state causing volume stream seek bar to be set to 0
initially
- Clean up AudioService initialization code
Change-Id: Ia11a7a392e5eb3ef862147843e365d5f20eaf90a
Signed-off-by: Roman Birg <roman@cyngn.com>
Steve Kondik [Sun, 11 Sep 2016 11:37:41 +0000 (04:37 -0700)]
dpm: Fix crash when invoked by system
* ApplicationInfo will be null in this case, skip the legacyApp
check to avoid crashing of system_server.
Change-Id: Ifcbc2528a6d0e9e6bd5df1ad4fcd8d65341ce052
Andrew Sutherland [Sun, 1 Dec 2013 09:29:19 +0000 (03:29 -0600)]
allow forcing HighEndGfx mode
people have already started fipping the lomRam prop to enable
transparent status bar, this will enable it with fewer
repercussions
Change-Id: Ied6de65276425fa1e7db0bf9da35f1932a355172
LuK1337 [Sun, 11 Sep 2016 08:48:27 +0000 (10:48 +0200)]
Add missing imports after
bde12cc
Change-Id: I5427c3018d6e2ab6a944f3f391b2eb92a4030496
Steve Kondik [Sun, 11 Sep 2016 11:10:07 +0000 (04:10 -0700)]
telecomm: Fix broken javadoc
* Unbreak the API
Change-Id: I7be8ab3fc0b9fb892fab48d9e2a13ae335b77ce3
Steve Kondik [Sun, 11 Sep 2016 07:49:41 +0000 (00:49 -0700)]
policy: Use PathClassLoader for loading the keyhandler
* Fix crash on start due to getCacheDir throwing an exception.
* We can't do this anymore due to the new storage/crypto in N.
Change-Id: I28426a5df824460ebc74aa19068192adb00d4f7c
Dan Pasanen [Mon, 2 May 2016 14:34:21 +0000 (09:34 -0500)]
SystemUI: fix toggling lockscreen rotation [1/3]
Change-Id: I28fea0124c91b8efc206a940761e77fa61d1fefc
Zhao Wei Liew [Sat, 10 Sep 2016 10:07:27 +0000 (18:07 +0800)]
Revert "UsbManager: Add the support of USB charging only function"
This change is bogus and breaks the USB connection mode UX.
There is no reason to change the current USB connection
behaviour, hence revert to AOSP behaviour for this.
This commit also depends on the Settings commit with
the change-id Iad7d0811b7dcffe78c734c073dceb6c054fcea11.
This reverts commit
a694b103f43a3570fb18a92614d6d6585ac3c493.
Change-Id: Ia61b341d5cd403f165d24257bab4148b1d9f4193
Matthias Yzusqui [Sat, 10 Sep 2016 11:04:19 +0000 (13:04 +0200)]
Revert "Emergency call button on Swipe lock Screen."
This feature is (1) buggy and thus perma enabled on MSIM and (2)
UX wise poorly implemented. Kill this CAF feature and the padding
introduced along with it to return to the AOSP look.
This reverts commit
e7b6415c010c269e34cce09277148f7b2f91bcf5.
Change-Id: I7abb68ad20bdca949ab8aa2af99b94d15e83802c
ghepeu [Sun, 14 Jul 2013 19:01:49 +0000 (21:01 +0200)]
Add support for Samsung extended AGPS
The AGPS implementation in the GPS chipset used in some Samsung devices
(i9100, i9300) can make use of the Psc field. Adapt the relevant
functions hiding the changes incompatible with other devices under the
AGPS_USE_PSC #define.
Credit to Qaweck from xda-developers forum for finding the meaning
of the field.
This commit also squashes the following build fixes from CM 13:
88d7eb005e02280d6393e9da7e51f1c00c97b406 location: Fix building under 64bit
0e63b4d3721bc838bc0cdc3eb7789fda4b4f0917 location: Fix incorrect unused argument workaround
Change-Id: Ie4691c79ca379a1f5c0a87500c1b06b56ae7ac0d
Roman Birg [Wed, 27 Jan 2016 23:00:55 +0000 (15:00 -0800)]
SystemUI: add flashlight notification reminder
CM13 port of change-id I3689ff6498b97b813ccc10dc7dca3527fc8455aa.
We now only post a notification when the user initiated the flashlight
via the QS tiles (or "V" gesture) since there is a common API for flashlight apps to hook
into (and possibly place their own notification, which we don't want to
ever double up on).
Ref: CYNGNOS-1670
Change-Id: Id532e8449932fefb216c10798aab6241f6e491ea
Signed-off-by: Roman Birg <roman@cyngn.com>
Danny Baumann [Thu, 13 Nov 2014 13:28:53 +0000 (14:28 +0100)]
Proper supplementary service notification handling (1/5).
Change-Id: I4fa94d4ba68a1570d3f822be569ae124882c0e66
Luca Stefani [Wed, 7 Sep 2016 14:17:56 +0000 (07:17 -0700)]
core: Add support for more webviews
* Extracted from seed factory image
Change-Id: Ibd9e6d36995db3b4dda09ef224962fc5e7117e1b
Michael Bestas [Sat, 28 Nov 2015 13:51:22 +0000 (15:51 +0200)]
core: Don't enable qualcomm location overlay by default
Change-Id: Iac0c5c2d41759e63706db1cf7cdbb7256756499f
Steve Kondik [Tue, 6 Sep 2016 17:38:24 +0000 (10:38 -0700)]
systemui: Add CMSettings permissions
Change-Id: I7f1505f72413d86ac9386f4d20b6b3f0e3abdd7e
Matt Garnes [Tue, 10 May 2016 22:30:22 +0000 (15:30 -0700)]
Add hotword AudioService null check
If an application tries to start recording with the HOTWORD input before
AudioService is ready, the interface is not available to call
handleHotwordInput on. Check for null and only log if AudioService is
not available.
Change-Id: I2e693c5aed7cdce6299d8ff16341c1af8dd5b54f
Issue-Id: FOR-257
Keith Mok [Thu, 4 Aug 2016 18:10:30 +0000 (11:10 -0700)]
Revert "Adding back pdf_printer_media_sizes for values-zh-rCN to accomodate mediasize_default"
CYNGNOS-3238, HAM-1384
This reverts commit
10a63e4e3bb26ff0bc82de303e74628ae23eab3e.
Change-Id: Ic13bdd51e059b4e66674fdbe6e6da3c2779f6a38
(cherry picked from commit
583e76db8e2d119ec12578625edc22acbd1e61fa)
Keith Mok [Wed, 13 Jul 2016 21:45:16 +0000 (14:45 -0700)]
Fix random crash in libhwui
On some cases (noticed from log) that there is a crash in
libhwui.so, future debug log shows that the light center position
values are nan, causing an out of bound access in hull function
in SpotShadow.cpp for parameter retPoly which assume to be of
maximum length of pointsLength only but not the case when all
points are nan.
More log shows that a Snapshot was created (new) without
mRelativeLightCenter begin set, and Layer.cpp trying to
use it by calling updateLightPosFromRenderer. Those values
are random values in stack which causing math calc based on
that value returning nan also.
Initialize mRelativeLightCenter to 0 in Snapshot.cpp to avoid the
problem.
Change-Id: I9e24f6f1f856d053d09db1b1aae100f219f2a6de
(cherry picked from commit
de7ee4c9efb8ba1cddc6bd79122b4a4a4bda6866)
Zhao Wei Liew [Tue, 6 Sep 2016 13:33:57 +0000 (21:33 +0800)]
core: Import some string improvements from CM 13.0
This commit partially squashes the following commits:
c682ba59897babbaef606a8c7dafbe2ca7202989
core: String improvements from cm-12.1
7450f84953cf5aaf6b17a7d36be37e625a17f4de
String update, change wording from "Mobile" to "Cellular"
Change-Id: I0616eb06f48813814b4005e9b60358669f69b0c8
Scott Mertz [Thu, 19 May 2016 19:45:23 +0000 (12:45 -0700)]
Fix isComponentProtected calls in package manager tests
b9304f9e9abe09a6bfeeaa00ae52d446170bd68a changed the method
signatures. Update the tests to match.
Fixes build issues when building using 'make' only.
TICKET: PAELLA-216 FEIJ-160 FEIJ-177
Change-Id: Ice6bbcd9a953edf3806d80e2669232f627a249e7
Gabriele M [Wed, 6 Jan 2016 17:27:32 +0000 (18:27 +0100)]
Align checkbox and description in permission confirmation dialog
Change-Id: I9a9ab3a3f59e3d56fc774174ba37d9e191698fe5