Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update android_media_AudioSystem.cpp #1

Open
wants to merge 160 commits into
base: cm-13.0-mt6592
Choose a base branch
from
Open

Update android_media_AudioSystem.cpp #1

wants to merge 160 commits into from

Conversation

tandob-mtk
Copy link

No description provided.

Samuel Tan and others added 30 commits March 25, 2016 17:47
Disallow existing and newly created guest users from
changing Wifi settings.

BUG: 27411179
TEST: Flashed device, switched to existing guest user, and verified
      that Wifi settings are disabled.
TEST: Flashed device, created new guest user, and verified that Wifi
      settings are disabled.

Change-Id: Ia1bf4cce0369017b62f69d317c7ab2e30e3949b3
Bug: 26677796
Change-Id: Ic4219b883bb760495e6172ef61e84e9725876ef6
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
Change-Id: I957c87e499fb719d1d45671c968c625dac75ecc7
TICKET: OPO-649
 * This API is moving to CMSDK.

Revert "media: Add flags, channelMask, and UID to audio session callbacks"

This reverts commit e0554d4.

Revert "audiosystem: Add API for listening to effect session events"

This reverts commit 9957394.

Change-Id: I5f18fdb3390db25285a5b819dfe2136ae111c0b3
  During instrumentation or through manual command line
  invocation, null keys can be fetched from the listening
  uri's causing an IllegalArgumentException within the
  ContentProviderProxy of CMSettingsProvider's impl.

Change-Id: I4a159e838f57e6b0c32b722c72d3bb6a898f6830
TICKET: CYNGNOS-2602
Change-Id: I5f5db73cf5aeae58e719abadf9dfd6c4d072b614
Change-Id: Ia9adc5b1cc3fead1203422ef51af87084b9fd3dc
TICKET: CYNGNOS-2673
Add an animation for when the user has swiped the left edge to bring
the notificaiton panel back into view from the left side.

Change-Id: Ie2ab3482a39d2d9c7b93a853f6ebae43a174e2c0
TICKET: CYNGNOS-2549
This reverts commit 2c35c46.

Change-Id: I47daa01ed8f5a26ff5326750e6c55ff3bc4b93b3
 * Check the overlay value before doing any of this stuff.

Change-Id: Iedfceba6bfc86b2761d8af57ecab51026bfa4c19
 * 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
The picker allowed users to pick specific activities from an app that it
did not explicitly expose to the user.

This is not good UX as many activities are not meant to be user facing
and are expecting certain input. Users can pick apps themselves, or apps
can opt-in to shortcuts and publish things themselves.

Ticket: CYNGNOS-2684

Change-Id: I9199d442dbe9eaa4140a706166a6fde87bc8957c
Signed-off-by: Roman Birg <[email protected]>
While playing music, if zen mode is on, the user must exit it via the
quick settings tile or via the settings menu, even if they used the
volume buttons to enter the state. We shouldn't have such a restriction.

Ticket: CYNGNOS-2662

This reverts commit 97eff87.

Change-Id: I305d94e5b187db6fa01e5453bcdadbd1687cf43f
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 <[email protected]>
Ticket: CYNGNOS-2373
Android 6.0.1 release 43 (MOB30J)

Change-Id: I5620fc9e444f5b0997ca9c70100f685c1699bfe8
We previously had no mechanism of knowing which tiles the user had
manually removed, leading to the tiles returning when the publishing
application decided it was time to update.

Now, when the user removes a custom tile; set a flag and hide it in the
tile list. The removed tiles will be enumerated in the Add tile detail
view if the user decides they want it back.

Ticket: CYNGNOS-2530

Change-Id: Ia4fe74ef580af7139279a2fb78e240e872f8dbb0
Signed-off-by: Roman Birg <[email protected]>
Fixes crash when picking lock screen shortcut app, then rotating, then
hitting the back button.

Ticket: FEIJ-299

Change-Id: I728052878ca3fc87243878ef96acea2e052aed6d
Signed-off-by: Roman Birg <[email protected]>
 * A certain device has a segmented LED which is going to be
   repurposed as a battery level indicator. Add support for this
   by sending the battery level in the alpha component of the
   ARGB value sent to the HAL.

Change-Id: I97a4459aa8069447ce7d153a0c03c743935b0937
Make sure LLS had focus before showing keyguard.

Change-Id: Ic5e8168f7b97cef92b57cac4d055b398ce8a9d0a
TICKET: CYNGNOS-2671
…oglesource.com/platform/frameworks/base into cm-13.0"

This reverts commit 0e1dbed, reversing
changes made to 564f10b.

Change-Id: Ife3a8c9c898034d5161fbf25a03eaf173ec66246
  If you created a new user after uninstalling a few prebundled apps,
  switched to the said user, and rebooted, you would have your uninstalled
  prebundles reinstalled unconditionally.

  This is due to peekPackageLPr's implementation of checking for package
  settings not being per user, while the checks for wasPrebundledPackageInstalledLPr
  and shouldPrebundledPackageBeInstalled are.

  Now, key off of whether any package settings exist,
  is currently installed for the user, and if it was
  ever installed before before attempting the parsing process.

TICKET: CYNGNOS-2709
Change-Id: Ie3e1420cfbaedb9951d55e2a3b868a6fdd5e54c2
 * The TrustDrawable animation is being mistakenly activated when
   the screen turns off, resulting in SystemUI obliterating
   SurfaceFlinger with vsync requests. This results in high power
   consumption.
 * Add a check for device interactive state when enabling the
   animation to prevent this.

Change-Id: Iad9dd2a7c26fced4e412ac0b7dfb393aa58e6c02
Change-Id: I090dd9a112f930967ec76bfa6e19c2ac52e50a9a
Use new persisted key which does not use the tiles' ID (which changes
usually across reboots with every tile). When the Custom tile service
comes up, it will update the placeholder tiles created with their real
values and the order is preserved properly.

Ticket: CYNGNOS-2530

Change-Id: I5e75c739553969f1d92c249f521a476259fe0cd6
Signed-off-by: Roman Birg <[email protected]>
In the case when recents is animating out, and an application happens to
immediately add a view to the window manager, the recents view would
lose its focus, but the animations would continue to run, breaking the
behavior in certain cases.

Bail out of the recents activity and override the pending transition to
be disabled to not distrubt the newly added window.

Ref: CYNGNOS-1136

Change-Id: I5998a9dcf21b1369473f04ea4d867c5f2543d6df
Signed-off-by: Roman Birg <[email protected]>
Add setUpstream function from Tethering to handle IPv6-only
Tethering.

TICKET: PAELLA-86
Change-Id: I38392d0678df027c54469564746ee5d9897f5829
- Prevent edge gesture from conflicting with lockscreen shortcuts
- Fix lockscreen shortcuts crash where animations were being run
  on detached view
- Fix statusbar flicker when swiping keyguard in from the left
- Fade scrim away when swiping lockscreen in and out
- Fix back button not working when showing bouncer in
  external keyguard.
- Ensure we collapse bottom area after up/cancel when
  in external keyguard
- Fix issue where clock/notifications can get off-center
  when swiping to left.
- Fix bottom flicker when swiping lockscreen to left
- Only lock directional swiping when swipe helper acknowledges it.
  This allows for all the standard swipe behavior to function.
- Ensure lockscreen shortcuts are not actionable when in SHADE
- Only dismiss bottom area after lockscreen shortcuts animations
  have finished animating
- Prevent swipe when album art showing

CYNGNOS-2585
CYNGNOS-2488
CYNGNOS-2517
CYNGNOS-2390
CYNGNOS-2632
CYNGNOS-2634

Change-Id: I2fe767ed7e07b621075c755aae98121c8517b997
Change-Id: Idcdcba4851597642afd95b3c889773a908a38334
Change-Id: I5c706654538a435738419f69d4909d205d26abb8
Signed-off-by: Bryan Owens <[email protected]>
Adnan Begovic and others added 29 commits May 31, 2016 16:48
Change-Id: I7766e050b8bedb46ff9293a5d61451e6c998fb0b
TICKET: CYNGNOS-2962
Change-Id: I2dfe51a4cadfe02f0295be36fb30a304219047ff
Switching the PREVENT_SYSTEM_KEYS forces the application to handle
every system key.  Some apps may not want to handle every single key,
so allow them to just handle the power key.

CYNGNOS-2958
Change-Id: I43fd65e67b909e6d52548f110ff9997b829b3e15
Nice done by google but the UX is a problem especially for ppl who are using a lot apps and just want
to see from important apps the notifications on the lockscreen.

This commit adds the ability to

- enable/disable per app the keyguard notification at all
- enable/disable per app ongoing notifications on the keyguard

We handle this over the app policy conf file like the other per app notification options.

CRACKLING-1127
Change-Id: Ib166db1b1673aeaea132c8eeb16c650d2f254a82
TICKET: CRACKLING-1127
Change-Id: I7a70f2c9d9e813c71544f2446c9bc6502f061c4f
Repro steps :

1) Swipe left to enter INTERACTIVE live lockscreen
2) Turn screen off
3) Turn screen on
4) Notice left swipe does not work

CYNGNOS-2950

Change-Id: I1af24e2bc3377afc9e8236a35afc208ab676bcc0
Change-Id: I863da8b2434e535fd980256a08addac7cb515cfa
* Setting it to keyguardShowing causes issues when notifications are
  expanded from the lockscreen if a fingerprint is used to unlock the
  device.

REF: CYNGNOS-2400, NIGHTLIES-2767
Change-Id: Id973c2cc011e56f516a34b69df0851ee3307af24
TICKET: CYNGNOS-2958
Change-Id: I67a7469257a1617b1c999f5533c5863014595dcc
Change-Id: I28fea0124c91b8efc206a940761e77fa61d1fefc
* This will allow it to be more dynamic (landscape lock screen for instance)

Change-Id: I2ffd6b0ca8832812faaa4cc0ec4cdd6071fbec8c
* The observer has been moved outside of blurSupported check
  so we can't initalize mKeyguardBlurEnabled to 1 by default
* Default mKeyguardBlurEnabled to R.bool.config_ui_blur_enabled

Change-Id: I32ed01ee3d75359abfbb6c7acfe315b9f154ce6f
There is a bug in window manager, where if the keyboard is collapsed,
the reference to the window is lost when destroying its surface. This in
turn prevents the ime window from being reordered later on. For normal apps
this is not an issue, but since we're above normal apps (KEYGUARD_PANEL),
this rises an issue for us in this scenario :

1) Set password lockscreen
2) Swipe up to unlock
3) Collapse keyboard
4) Launch emergency dialer (SHOW_WHEN_LOCKED)
5) Press home button

Notice that all touch events are going to the external keyguard.
If the keyboard is not collapsed in step 3, everything works and the reason
is the reference to the input method window in window manager isn't lost
and it gets re-ordered behind the windows.

To workaround this issue, avoid removing/re-adding the window and instead
rely on window manager to control its visibility.

Change-Id: I59dd41547902ae5e23bbeb0a01ee27f11fc29dfc
 * Stop WTFs from the system, we need to hold the lock when calling
   updatePowerStateLocked as one might expect.

Change-Id: I344e93cd4ffef915f1684063a496b9e9bbfcb9a6
  This option can be enabled via config_persistUsbDriveNotification

Change-Id: I331a759aeb914e46e3ef4842896d3465d894707a
TICKET: PAELLA-225
Looks like isRoaming() is called with
mServiceState being null sometimes
Check for non null as well

(Reference:
BugReport 13-20160520-26 L CyanogenMod#36)

Change-Id: I90a7feb2f5b72a4b94bbb4e7a5c4f486b416143b
An invisible character was breaking the build.

Change-Id: I5946edce7b9a9eed1fad95033c3988bfeef67812
Android 6.0.1 release 46

# gpg: Signature made Mon 06 Jun 2016 10:38:22 AM PDT using DSA key ID 9AB10E78
# gpg: Can't check signature: public key not found
In devices with more than one SIM, keyguard visually distinguishes each SIM
card by showing its color and its name.

This patch introduces now a configuration item that lets you choose wether or
not show the SIM display name on those cases.

Issue: PAELLA-224
Change-Id: I8fb019d4fa534b2ca2f047083c27aa9cf8b7b39c
Change-Id: Ieed59aa488a0a26fa9fc27bd77cbdc6156baac68
PackageManager already has hooks to allow the Disambiguation Dialog aka
ResolverActivity to be substituted at runtime by a custom activity
named via system property. Since the internal ResolverActivity already
has good extension points (for use by ChooserActivity), it is useful
to allow a customized ResolverActivity, provided in a separate package
to be able to extend the internal activity, thus preserving core
behavior as much as possible, and making forward porting easier.

This patch attempts to make as few changes to the core ResolverActivity
as possible to make up stream patching easy, and isolates most of the
needed code into a shim (ResolverProxy) which is mostly concerned with
changing the access modifier of key methods from package-private to
protected. This is necessary to allow overriding of those methods from
a subclass originating from a different class loader.

Change-Id: I17070964fca73f0d11b4fe8d809b2a775ba9e7e6
CM 12.1 supported the function composition "charging" to indicate no
function compositions, only charging.  CM 13.0 does not support this.
Instead, mtp is used (see commits to fix b/21429947 for an explanation
why this is done).

When a user upgrades from 12.1 to 13.0 and the persisted function
composition is "charging", modifications to the function composition,
such as to add adb or mtp, will timeout and fail.  This introduces a
three second latency on the change.  Removing the charging function
when reading the persisted function composition avoids the delay.

Jira: BACON-4912, OPO-765

Change-Id: Ibbf4f7ce12f97aa046fa214383580ef4d191ce25
- Check whether NFC is supported based on device features

- Don't hold a reference to the NFC adapter - query it when we need it
  (not using getDefault, but the internal method, if we use the default,
  querying for the adapter before the service was spun up would lead to
  systemui never having a valid refernce to an adpater).

Ticket: CYNGNOS-1943, CYNGNOS-2866
Change-Id: Iba8b668406ca96183aafcf9a55d60c6d89d70061
Signed-off-by: Roman Birg <[email protected]>
We no longer need to start NFC before anything else, System UI will
properly handle getting a proper refernce to the Nfc Adapter.

This reverts commit 1882a02.

Ticket: OPO-755
Change-Id: I14514746a55fe89e6960f4e453309da5d21012f0
When in EXTRA_SHOW_ADVANCED is set, don't show the menu option to toggle it
since it is a no-op

FEIJ-1079

Change-Id: I0d2ea026736cb7131f451d39e2e662d0c2ae436f
This will give themes the ability to invert the three power dialogs
without editing a main resource

Change-Id: Ibeab94add8ce8c18955576dc49c441883feb18d6
Signed-off-by: Bryan Owens <[email protected]>
If we encounter an exception when inflating a notification's views,
and a theme is applied, we should make a second attempt at inflating
the notification without a theme applied in case the theme cause the
issue.  If the exception still occurs, we treat it like we normally
do and allow the app to be killed for posting a bad notification.

Change-Id: I444cf6c78ee43e2978201880957c53eb08e6966d
TICKET: CYNGNOS-2892
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.