OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge remote-tracking branch 'cm/cm-14.0' into cm-14.0-x86 cm-14.0-x86
Jaap Jan Meijer [Wed, 12 Oct 2016 17:12:01 +0000 (19:12 +0200)]
Merge remote-tracking branch 'cm/cm-14.0' into cm-14.0-x86

7 years agoLockscreen: Introduce window type TYPE_KEYGUARD_PANEL
d34d [Thu, 10 Dec 2015 02:29:42 +0000 (18:29 -0800)]
Lockscreen: Introduce window type TYPE_KEYGUARD_PANEL

This window type will be used by third party keyguard components
so that they can be layered within the keyguard while running in
their own process.  This window type will use the same Z ordering
as TYPE_STATUS_BAR_SUB_PANEL, which is currently unused.

Note from SHM:
 * This also fixes the following errors while compiling for the emulator:

ERROR: vendor/cmsdk/tests/src/org/cyanogenmod/tests/externalviews/keyguardexternalviews/KeyguardExternalProviderTest.java:199: TYPE_KEYGUARD_PANEL cannot be resolved or is not a field
ERROR: vendor/cmsdk/tests/src/org/cyanogenmod/tests/externalviews/keyguardexternalviews/KeyguardExternalProviderTest.java:200: TYPE_KEYGUARD_PANEL cannot be resolved or is not a field

Change-Id: Ie18caf12a55ba79a5c56a36ca79b3a6e377d7529

7 years agoMerge remote-tracking branch 'cm/cm-14.0' into cm-14.0-x86
Jaap Jan Meijer [Mon, 10 Oct 2016 19:38:36 +0000 (21:38 +0200)]
Merge remote-tracking branch 'cm/cm-14.0' into cm-14.0-x86

7 years agoinput: Add option to toggle pointer icon when using stylus
Steve Kondik [Mon, 2 Feb 2015 21:20:35 +0000 (16:20 -0500)]
input: Add option to toggle pointer icon when using stylus

* The visible pointer icon when hovering or drawing with the stylus is
  quite annoying when trying to actually draw with it. Turn it off by
  default and add an option to turn it on.

Change-Id: I26ba2ca8b92511799033759ca85c36f4ba2b7833

7 years agoGlobalActions: Use circular user avatars
Michael Bestas [Sat, 31 Jan 2015 04:06:38 +0000 (06:06 +0200)]
GlobalActions: Use circular user avatars

* Use circular & smaller avatars, logic copied from SystemUI
* Improve current user indication (thanks to maxwen)

Change-Id: I81e6c4afd604f5cb8b22e2c4db9b174bbe7fb3f0
Ticket-Id: OPO-456, CYNGNOS-1901

7 years agoMove high touch sensitivity and hovering to InputService
Danesh M [Wed, 9 Mar 2016 19:48:43 +0000 (11:48 -0800)]
Move high touch sensitivity and hovering to InputService

Doing so allows us to keep track of user changes and restore
preferences.

This commit is squash of the following commits from CM 13.0:
7348be747940afe7c3ec6a2b133b5473bc18573a Move high touch sensitivity and hovering to InputService
f9a9d50491dc583ea568a4f12e57a2f97b9baacb InputMethodManager : Move registration to systemReady

Change-Id: I5a6af73129acefa6530ceb3f73cc4cd83a19a676
Ticket-Id: CYNGNOS-1166

7 years agostatusbar: fix overlapping backgrounds when expanded
KhasMek [Tue, 29 Dec 2015 17:15:15 +0000 (10:15 -0700)]
statusbar: fix overlapping backgrounds when expanded

  Previous to this patch time, date, and weather all
  had double backgrounds causing a really unpleasant
  animation when pressed or long pressed. This removes
  the overlap and fixes the aesthetics.

Change-Id: If664c1892212bfaf4d53b00729f0c5613272b66c
Signed-off-by: KhasMek <Boushh@gmail.com>
7 years agoKeyguard: Get your weather on... the lock screen [1/3]
d34d [Tue, 24 May 2016 03:38:41 +0000 (20:38 -0700)]
Keyguard: Get your weather on... the lock screen [1/3]

Change-Id: Ieed59aa488a0a26fa9fc27bd77cbdc6156baac68

7 years agoAdd Weather Content Provider [5/5]
Luis Vidal [Thu, 24 Mar 2016 03:03:18 +0000 (20:03 -0700)]
Add Weather Content Provider [5/5]

Use the Weather Content Provider in the cmsdk to pull the
weather data.

However, SystemUI will rely on LockClock to force weather
updates via the new Weather Service, which in turn will
send a broadcast when new weather data is available.

Change-Id: I3c65ea5f4cc297a7944fcdef33f496cdf2d68d0a

SystemUI: Expose weather text colors

Weather text colors in the expanded status bar are hardcoded to
white. Expose these via cm_colors so that themes can color them
however they'd like.

A martini. Shaken, not stirred.

Change-Id: I5e5a738c8b97f556562114a66d102fcb924a0493

SystemUI: Update cached weather data when temperature unit changes

Register an observer to keep track of the temperature unit
selected in settings to update the cached data accordingly

TICKET: CYNGNOS-2694

Change-Id: I92adec20835bcd6d6476d793564300611bcba4a1

7 years agoSystemUI: Enable three icon switching within QS DND tile
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

7 years agoSystemUI: statusbar: Fix status bar brightness control feature
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

7 years agoRevert "SystemUI: Add support for charging animation"
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

7 years agoSystemUI: statusbar: Fix QS quick pulldown feature
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

7 years agoSystemUI: tuner: Fix up button navigation in activity
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

7 years agoremove duplicate file types caused by merge
Jaap Jan Meijer [Thu, 6 Oct 2016 18:06:10 +0000 (20:06 +0200)]
remove duplicate file types caused by merge

7 years agoSystemUI: attach a queue to media player notifications
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>
7 years agoMerge remote-tracking branch 'cm/cm-14.0' into cm-14.0-x86
Jaap Jan Meijer [Wed, 5 Oct 2016 22:55:21 +0000 (00:55 +0200)]
Merge remote-tracking branch 'cm/cm-14.0' into cm-14.0-x86

Conflicts:
core/java/android/app/ActivityManager.java

7 years agoMerge tag 'android-7.0.0_r7' into nougat-x86
Chih-Wei Huang [Wed, 5 Oct 2016 15:46:44 +0000 (23:46 +0800)]
Merge tag 'android-7.0.0_r7' into nougat-x86

Android 7.0.0 Release 7 (NRD91D)

7 years agoFrameworks: Allow/Prevent notification light in Zen mode (1 of 3)
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

7 years agolights: Automatically generate an LED color for notifications
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

7 years agoNotificationManager: always restore identity on notification error
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>
7 years agobatteryservice: remove unneeded catch clause and fix build
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>
7 years agobatteryservice: Avoid exception if device doesn't support HVDCP
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)

7 years agobase: cm-iy adb notification icon
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>
7 years agoSystemUI: add volume tones back
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>
7 years agoconnectivity-service: fix/improve unique hostname
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

7 years agoEnsure DHCP requests have nonempty hostnames
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

7 years agoMerge tag 'android-7.0.0_r14' of https://android.googlesource.com/platform/frameworks...
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

7 years agoDownload: Add support to manually pause/resume download
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

7 years agoForward port CM Screen Security settings (1/2)
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>
7 years agokeyguard: Allow disabling fingerprint wake-and-unlock
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

7 years agocamera: Tolerate errors in getHorizontal/VerticalViewAngle
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

7 years agoScreenshots info is not updated when device is plugged in MTP mode
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

7 years agoReset mCurrentUserId when fingerprintd died
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

7 years agoMountService: Prevent NPE with DropBoxManager
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>
7 years agoRevert "SystemUI: Fix no emergency call button on lock screen"
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

7 years agoMerge branch 'android-framework.lnx.2.0.r5-rel' of git://codeaurora.org/platform...
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

7 years agoFix volume keys wakeup status handling
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

7 years agoSystemUI: Remove nav bar and status bar options from SystemUI Tuner
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

7 years agoSystemUI: Disable SystemUI tuner toggle
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

7 years agoKeyguardSimPinView: don't send dummy request to get remaining pin
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

7 years agoRevert "SystemUI: Show percentage of battery"
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

7 years agoRevert "Support to show long or short name in SystemUI."
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

7 years agoMerge "Add bound checks to utf16_to_utf8"
Linux Build Service Account [Sat, 24 Sep 2016 15:53:41 +0000 (08:53 -0700)]
Merge "Add bound checks to utf16_to_utf8"

7 years agoMerge "Fix time and ringtone issue of power off alarm"
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"

7 years agoMerge "SystemUI: Fix SystemUI Force Close"
Linux Build Service Account [Sat, 24 Sep 2016 15:53:30 +0000 (08:53 -0700)]
Merge "SystemUI: Fix SystemUI Force Close"

7 years agoDNM:SystemUI: System UI force close when switch font size
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

7 years agoSystemUI: Fix SystemUI Force Close
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

7 years agoFix time and ringtone issue of power off alarm
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: 10503211046238

7 years agoAdd bound checks to utf16_to_utf8
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)

7 years agosystemui: Disable the charging animation
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

7 years agoperf: Add boostage
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

7 years agobootanimation: add multithreaded decode
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

7 years agobootanimation: performance/speedup enhancements
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

7 years agoBootAnimation: Play boot/shutdown animation and music
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

7 years agoFix improper Chinese translation
Chih-Wei Huang [Wed, 21 Sep 2016 16:01:28 +0000 (00:01 +0800)]
Fix improper Chinese translation

7 years agoDetect HDMI audio by switch events
Chih-Wei Huang [Tue, 13 Sep 2016 09:43:11 +0000 (17:43 +0800)]
Detect HDMI audio by switch events

If detect SW_VIDEOOUT_INSERT, assume HDMI is plugged.

7 years agoMerge 9e56490378491dc93d139b446785256cf3d07b70 on remote branch
Linux Build Service Account [Thu, 22 Sep 2016 12:14:52 +0000 (05:14 -0700)]
Merge 9e56490378491dc93d139b446785256cf3d07b70 on remote branch

Change-Id: I329d327b5700edb3614b6c9a491e5e8e6d40783c

7 years agoFix reboot dialog messages
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

7 years agocore: Remove QCOM BoostFramework and ActivityTrigger
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

7 years agoSystemUI: use new visualizer from Eleven
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

7 years agoIncrease brightness faster if ambient light is brightening quickly.
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

7 years agoaudio: Don't play sound effects if stream is muted
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

7 years agoGlobalActions: Set the initial status of airplane mode toggle
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

7 years agoSystemUI: Fix NPE when setting network name
LuK1337 [Tue, 6 Sep 2016 12:37:56 +0000 (14:37 +0200)]
SystemUI: Fix NPE when setting network name

Change-Id: I124f86493e013d0b30d520cf988c5804a39d8a0a

7 years agoframework: move device key handler logic, fix gesture camera launch
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>
7 years agoSystemUI: Lockscreen shortcut customization
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

7 years agoSystemUI: Use AndroidManifest_cm.xml
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

7 years agolights: Really make sure the lights are out
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

7 years agoSystemUI: Enable TunerActivity
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

7 years agoFix build on MacOS due to use of deprecated APIs using Xcode 8
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

7 years agoRevert "Telephony: Update cdma_chocies and world_phone config values."
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

7 years agoAllow adjusting screen density to smaller sizes.
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

7 years agostorage: Do not notify for volumes on non-removable disks
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

7 years agoFix mounting of non-FAT formatted SD cards (1/2)
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

7 years agoPromotion of android-framework.lnx.2.0-00009.
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: 1059100105910210644381056033105910910561121056697, 991999, 1037558105910410428311041552101903010635391063317105532510633201065882, 963192, 1055953

7 years agosystemui: Fix a few issues with Tuner
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

7 years agoMerge "SystemUI: Fix no emergency call button on lock screen"
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"

7 years agoMerge "SettingsLib: the time is wrong in battery info view."
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."

7 years agoSystemUI : Clock position support + am/pm styles
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

7 years agosystemui: Allow using tuner API for CMSettings
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

7 years agoMerge "ShutdownThread: Call into oem shutdown function"
Linux Build Service Account [Tue, 13 Sep 2016 22:21:09 +0000 (15:21 -0700)]
Merge "ShutdownThread: Call into oem shutdown function"

7 years agoMerge "Allow apps with CREATE_USERS permission to call UM.getProfiles."
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."

7 years agoMerge "Bluetooth: Fix broadcast receiver leak issue"
Linux Build Service Account [Tue, 13 Sep 2016 22:21:05 +0000 (15:21 -0700)]
Merge "Bluetooth: Fix broadcast receiver leak issue"

7 years agoMove keyDisabled and gamma to service
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>
7 years agoAllow screen unpinning on devices without navbar
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

7 years agosystemui: fix NPE when opening now on tap
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>
7 years agoDeviceKeyHandler: Fix suspend gesture not working
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

7 years agoMerge tag 'android-7.0.0_r6' of https://android.googlesource.com/platform/frameworks...
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

7 years agoMerge "IMS: Arrange data, VoLTE icons in correct order."
Linux Build Service Account [Tue, 13 Sep 2016 14:23:32 +0000 (07:23 -0700)]
Merge "IMS: Arrange data, VoLTE icons in correct order."

7 years agoAllow adjusting progress on touch events.
Danny Baumann [Mon, 5 Aug 2013 08:32:19 +0000 (10:32 +0200)]
Allow adjusting progress on touch events.

Change-Id: Ide0a7ae057a62f3631a32eeaa63f3e04dec5bf54

7 years agosystemui: Enable navbar tuner
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

7 years agoframework: fix screenshot and rotation animation for devices with abnormal hw rotation
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

7 years agoPort over linked volumes from 12.1
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>
7 years agodpm: Fix crash when invoked by system
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

7 years agoallow forcing HighEndGfx mode
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

7 years agoAdd missing imports after bde12cc
LuK1337 [Sun, 11 Sep 2016 08:48:27 +0000 (10:48 +0200)]
Add missing imports after bde12cc

Change-Id: I5427c3018d6e2ab6a944f3f391b2eb92a4030496

7 years agotelecomm: Fix broken javadoc
Steve Kondik [Sun, 11 Sep 2016 11:10:07 +0000 (04:10 -0700)]
telecomm: Fix broken javadoc

 * Unbreak the API

Change-Id: I7be8ab3fc0b9fb892fab48d9e2a13ae335b77ce3

7 years agopolicy: Use PathClassLoader for loading the keyhandler
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

7 years agoSystemUI: fix toggling lockscreen rotation [1/3]
Dan Pasanen [Mon, 2 May 2016 14:34:21 +0000 (09:34 -0500)]
SystemUI: fix toggling lockscreen rotation [1/3]

Change-Id: I28fea0124c91b8efc206a940761e77fa61d1fefc