summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | MSIM: Fix to resolve SIM PIN unlock in APM.Umashankar Godachi2016-05-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In MSIM case, with two sims being locked on pin, the second sim pin unlock screen does not get closed even with the correct password.This is due to the showDefaultMessage flag not being set to true after sim pin is verified successfully. Fix: In KeyGuardSimPinView, set the showDefaultMessage flag to true after SIM PIN is verified successfully. CRs-Fixed: 949288. TICKET: CYNGNOS-2766 Change-Id: Ie31ee9fb009314555c81f3787d0ef3af4aad74c7
| * | SystemUI: Check current data subscription when updating signal clusterEthan Chen2016-05-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Checking connected and data state is insufficient when updating the signal cluster, for multi-SIM use we need to check whether the current signal controller has the data subscription as well, otherwise it's possible for both clusters to display the data tech simultaneously. REF: KIPPER-702 Change-Id: I1dd2994271df2c42deb8e9aeb7c01798a6cfd2ca
| * | SysUI: Fix coloring of battery drawablesd34d2016-05-194-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The frame color is now correctly tinted based on background color set by setDarkIntensity() Battery bolt and percentage text have their alpha set to full opacity to increase visibility when drawn on a light colored status bar. Change-Id: I907101ed1465f99b92370332d4839b7f0aad13b2
| * | SysUI: Adjust battery dimensions for better lookd34d2016-05-196-12/+14
| | | | | | | | | | | | | | | | | | | | | Make some minor tweaks to the new vector based batter meter to get it even closer to stock look. Change-Id: I80fcdefb2578352bef5ca35ad902556b204de322
| * | am: Handle unchecked activity starts for protected components.Adnan Begovic2016-05-196-10/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously if you received a notification from a protected app, since AM would state that the calling package was also the target package, the protected apps implementation would allow you to launch into the application. Mitigate this by hooking into the unchecked activity start stack (pending intent launches) globally. Change-Id: I0371593ade9e4af2554962873d89a0f82a639b57 TICKET: PAELLA-216 FEIJ-160 FEIJ-177
| * | SysUI: Check swiping progress before collapsing KBAd34d2016-05-181-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Collapsing the KeyguardBottomArea while a swipe is in progress causes the window to collapse to a smaller size and cut off the circular animations from the affordance views. Luckliy there is a method we can call to see if we are in such a state, so let's use it. Change-Id: I45241ed17c3c90580fb04845700f5632b34db187 TICKET: CYNGNOS-2824
| * | SystemUI : Fix left swipe when dismissing bouncerDanesh M2016-05-185-8/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Only show bouncer when requesting dismiss, which will set the states for us. - Also remove duplicate states. - Ensure we disable edge gesture when showKeyguard is called - Bail out on showKeyguard if already in keyguard. CYNGNOS-2872 Change-Id: I6be10923de1590b386c270925654669a8f832cfe
| * | usb: ensure accessory detached sent on re-attachKhalid Zubair2016-05-181-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's possible for USB state change events to get swallowed if the cable is reconnected quickly because state changes are de-bounced with a 1 second interval. As a result an accessory detached event will not be sent if it re-attaches quickly. However, UsbDeviceManager will send an attached event when the USB connection is configured. This causes apps to misbehave and attempt to open the accessory without closing the previous one. The call to openAccessory fails (with EBUSY) because the underlying /dev/usb_accessory chardev is already open exclusively by the first accessory. Fix this issue by sending a detached event before sending an attached event if the previous accessory was not cleaned up properly. This change fixes a failure in CTSVerifier's USB Accessory Test where the test fails if you reconnect the USB cable quickly. OPO-688, FEIJ-471 Change-Id: I49690553213e866d200da1fb22c83348c6eb3491
| * | SystemUI : Ensure bouncer is not shown for SHADEDanesh M2016-05-171-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | When dismissing the notification panel, bouncer should only be shown if you are in SHADE_LOCKED or KEYGUARD. CYNGNOS-2810 Change-Id: Ia9c6f3198fe785ba8d19e10962caa92a5cea3f23
| * | QSTiles: set disconnect callback in bluetooth details list adapterRandall Rushing2016-05-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Adapter callback to disconnect device was not being set after scrollable tiles bringup. This resulted in a broken disconnect button in the details item list. Change-Id: Ibbc96d9d379b95b04b4376f4767fd877226c0c95
| * | Port "Settings: add a way to not localize zone selections" to cm-13Luis Vidal2016-05-172-14/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In specific cases we may not want to display the localized time zone name in the time zone picker. For instance, when the system language is set to English (US), going into the time zone picker, we can find "London." After we set the system language to English (United Kingdom), London becomes localized to "British Summer Time." To avoid this behavior and to always display the unlocalized version of the time zone name, we can now set localizeInPicker="false" on the time zone entry desired to not be localized. Note that if a translation is available for the selected time zone, it will still be applied. In this patch we add this attribute to the Kiev time zone. In English this patch has no effect. However if the system language is changed to Ukranian and we select Kiev from the time zone picker: Without this patch: in the time zone picker it would use local time zone translations, e.g. "за схдноевропейським літнім часом" (Eastern European Summer Time). With this patch: it displays "Київ" in the time zone picker. But still displays the localized time zone in the Date & Time settings. Ref: CYNGNOS-453 (ported from commit c5aecaab60d353fcedd4579b9d94808be9838de2) Change-Id: I6302e5beb981786500f73629baa0751ac9e43e73
| * | Settings: add Kiev time zones to pickerLuis Vidal2016-05-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Ref: CYNGNOS-453 Change-Id: Id03ecbe612031400413da3efff20392ea9365a52 Signed-off-by: Roman Birg <roman@cyngn.com> (cherry picked from commit c241e9aea37120a8284d28c6197c8e9d88046546)
| * | Automatic translation importAbhisek Devkota2016-05-178-4/+102
| | | | | | | | | | | | Change-Id: I3e905d33baa25bbbccffeb48dab1a53a22f6bc3a
| * | pm: Avoid installing prebundle to other users that were uninstalled by owner.Adnan Begovic2016-05-173-11/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the copied app data (since these are treated similarily to system packages on user creation) would be purged of the granted permissions in packages.xml. Also, it just doesn't make sense from a users perspective. Change-Id: I9a72eb9a9f0bea9401e90daa86c8fa32e866c380 TICKET: OPO-695
| * | SystemUI : Ensure previous camera preview is removedDanesh M2016-05-171-2/+14
| | | | | | | | | | | | | | | | | | | | | For lockscreen shortcuts, ensure if the camera intent changes, we remove the previous view. Change-Id: I7c44353d25ddc47c3d986acf32dd9a3e85915c82
| * | Lls: Use LlsController for checking LLS focusd34d2016-05-163-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're trying to keep track of this state in too many places. The LiveLockScreenController keeps track of the LLS focus so this patch adds a method to get the state of the LLS focus and use that instead of cached values that may not be in sync. Change-Id: I2cbf1122b8a27cb1b0ee1ed93379a362308db5bd TICKET: CYNGNOS-2849
| * | LLS: Don't change bar state when changing LLS focusd34d2016-05-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | State changes are taken care of elsewhere so don't change the state when unfocusing the LLS. Change-Id: Ie4d14a840cfc2f29815bd6d185caf920134b6d21 TICKET: FEIJ-531
| * | LLS: Ensure LLS loses focus when showing bouncerd34d2016-05-162-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Let showBouncer take care of removing focus from the LLS instead of relying on the callers to do so. Change-Id: Iaec9ad74b3498ea385bdecbfc5173a9d482b043e TICKET: FEIJ-531
| * | ShutdownThread: Decrypt before stopping storage managerPat Erley2016-05-161-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | uncrypt needs access to the file to uncrypt it. If we stop the storage manager service, uncrypting fails, leading to failed updates. Change-Id: Ifc75c990ebf8f0a2f11b340cd39cd469b46c6f68
| * | Expose lock screen blurring as a setting [2/2]d34d2016-05-162-19/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | This will provide control over blurring since the current implementation assumes it is always on provided the device config specifies it supports blur. Change-Id: If6d1f1290473df20bda7e96e42571285bd2d8967 TICKET: CYNGNOS-2610
| * | Automatic translation importAbhisek Devkota2016-05-14104-1/+614
| | | | | | | | | | | | Change-Id: I3d1a3f5e5b488776048d0dbaac757ffb1e2f8e7b
| * | MediaScanner: Add support for default ringtones per simDanesh M2016-05-141-13/+66
| | | | | | | | | | | | | | | Ticket: CYNGNOS-314, CYNGNOS-2654 Change-Id: I1ed112a38d2b3676e31a78eb70ea0e16a3957b02
| * | Fix incorrect behavior for statusbar and quicksettings panelYinlin Cai2016-05-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Incorrectly disableForUser() is called in disable2(). Use disable2ForUser() instead of disableForUser(). Bug: 27688623 Change-Id: Iadb6aec82ccfe95a90e4a3d212fbd14d73093982
| * | ActivityManager: fix perf boost NPERoman Birg2016-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Able to get an NPE by factory resetting a device, and then just rebooting it. Change-Id: I6f5bbcf59dc20a75a209d6d70e6c3e35fff01406 Signed-off-by: Roman Birg <roman@cyngn.com>
| * | QS: fix performance profile tile observerScott Mertz2016-05-131-1/+1
| | | | | | | | | | | | | | | | | | CYNGNOS-2837 Change-Id: I9a0f9febe22e046a1fb3297e6a4b3ab1f8fafa87
| * | SystemUI : Fix multi-user for keyguardDanesh M2016-05-134-12/+10
| | | | | | | | | | | | | | | OPO-696 Change-Id: I4383eb49abc1f61bf41e7279ff8e0ed2c1dbb6eb
| * | SystemUI: Set circle battery path as untranslatableMichael Bestas2016-05-131-1/+1
| | | | | | | | | | | | Change-Id: I93870985fc3953fc49aeaf9f169553685d7a202a
| * | Update volume slider only if ringer mode changedLuis Vidal2016-05-131-1/+2
| | | | | | | | | | | | | | | | | | | | | Prevents unnecesary updates to volume slider. Change-Id: Ie8c19c2061dc9f418972b16ca1618a80f10f1325 TICKET: CYNGNOS-958
| * | SystemUITests: fix compile errorKhalid Zubair2016-05-131-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add uicommon to LOCAL_STATIC_JAVA_LIBRARIES and fix the following compile error. ERROR: frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/BatteryMeterView.java:51: The import org.cyanogenmod.graphics cannot be resolved ERROR: frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/BatteryMeterView.java:479: StopMotionVectorDrawable cannot be resolved to a type Change-Id: If6c6e8909eeee2dd86816af801634b6f79a492d5
| * | CMSettings : Move force_show_navbar to globalDanesh M2016-05-135-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Lockscreen : Disable left edge after showing keyguardDanesh M2016-05-132-0/+12
| | | | | | | | | | | | | | | | | | CYNGNOS-2816 Change-Id: Ie2ef88765f52e099d61d250faa9ae4100726abf3
| * | Keyguard: Allow swiping up when trust managedd34d2016-05-132-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the lock screen is being trust managed, the center keyguard affordance view becomes clickable and consumes touch events, which includes the user swiping up from the center icon to unlock. This patch checks if the lock screen is being trust managed and if so, intercepts the touch events while retaining the clickability of the center lock icon. Change-Id: I54dd9bfdded3dbd2bf90ed1fc49dd55e5b3a7214 TICKET: CYNGNOS-2687
| * | SpamFilter : Hide option if notification cannot be filteredDanesh M2016-05-132-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | Hide option to filter notification if its a completely custom notification which did not invoke setContentTitle/Message...etc. NOTES-85 Change-Id: Ieec799dba589329b994f7add703babece13b6d14
| * | Acquire wakelock until dream service acknowledges dream state changeScott Mertz2016-05-121-5/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes a bug where the system can enter suspend before the dream service can handle the state change. This manifests in the DozeService failing to enable the sensors used to determine if it should pulse the screen by the time the system goes into full suspend. This doesn't completely address the asynchronous nature of the DreamManagerService startDream method. There's still 2 more asynchronous calls before the ACTION_DREAMING_STARTED is sent out, but testing shows this is 'good enough'. OPO-681 Change-Id: Id6ddc33bc367c1a0182df95374817577006a5b98
| * | Lockscreen : Only animate targets if launched via swipeDanesh M2016-05-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Ensure camera is launched if doing screen off gestureDanesh M2016-05-122-2/+6
| | | | | | | | | | | | | | | | | | | | | Currently it launches whatever the right affordance is set to, which is incorrect. Ensure screen off gesture always launches camera. Change-Id: I251d37ccc85d014ff46714b222b9074b2092f6e1
| * | Keyguard : Ensure we expand onIconClickedDanesh M2016-05-121-0/+1
| | | | | | | | | | | | | | | | | | | | | Not doing so shows visible clipping when the notification panel is expanded mainly due to the limited height of the bar. Change-Id: I50a35b186b3efb8a0e4ba0ae18ff915aebe236c6
| * | WindowManagerService : Ensure we update both size/positionDanesh M2016-05-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | computeShownBounds is necessary to ensure shownFrame is up to date when setSurfaceBoundariesLocked is invoked to ensure any needed size and positional changes go as part of one transaction. Relying on animateLocked to send changes results in size/position being sent as two separate transactions and surface flinger drawing a frame which looks incorrect according to what the window specified. Change-Id: If881047c060c73db0037fda7da1f66a89dd45487
| * | bootanimation: fix check for system bootanimationMarcos Marado2016-05-121-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We already check for the system bootanimation the proper way (using the getAnimationFileName function), so we shouldn't have re-added the clause to check it "the old way". As it was, if there is a system bootanimation on the traditional path, an alternative system bootanimation provided by getAnimationFileName would not be used. Change-Id: I73178d6b819c40e120c42fe10cb20afe171b8d4e Bug-Id: PAELLA-112
| * | Revert "LLS: Fix logic in isKeyguardInteractiveAndShowing"Clark Scheff2016-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | | This reverts commit 256268f3d2de20ff3185d87957609d15e853fc70 which is causing some adverser effects with normal LS Change-Id: I4c7b68f73dae39aa9f00188fd30dcf05f914f3e4 TICKET: CYNGNOS-2687
| * | pm: Don't throw if invalid package setting or classname.Adnan Begovic2016-05-111-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since an application could be updating in the background while the query for isComponentProtected occurs, the package setting for it can be null. Instead of throwing here, return false. Change-Id: Idb8f11785961ddf2b567e93977a9ca4650ab2119 TICKET: CYNGNOS-2689
| * | Add hotword AudioService null checkMatt Garnes2016-05-111-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | LLS: Fix logic in isKeyguardInteractiveAndShowingd34d2016-05-111-1/+1
| | | | | | | | | | | | | | | Change-Id: I0722d488969615eef7f63b17f65e5b41d3896329 TICKET: CYNGNOS-2687
| * | SysUI: Use VectorDrawable's for rendering batteryd34d2016-05-1123-538/+767
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current implementation of BatteryMeterView uses arrays of points that are drawn programmatically. This limits the ability to overlay or theme the battery. By utilizing VectorDrawables and AnimatedVectorDrawables we can achieve the same look and feel of stock while allowing for more unique battery meters. Change-Id: I16a8a949a92827a9e8c1b528981031b6830e97cd
| * | SystemUI: fix blank qs tile issuesRoman Birg2016-05-111-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The blank tiles were an artifact of precaching custom tiles. We need to not show them or count them if they don't have an actual tile attached to them yet. Also, allow disabled tiles to be edited. Ticket: CYNGNOS-2530 Change-Id: Ie6e0e6e18435eb53e9b419a05d780bdd1ee808b7 Signed-off-by: Roman Birg <roman@cyngn.com>
| * | only use proximity checks on wakeup keysRoman Birg2016-05-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The power button should always wake the screen regardless of the proximity; only check proximity when the wake up key code is WAKEUP. Ticket: CYNGNOS-2579 Change-Id: I686ad22d513a3d939be3a0a5c3b752339b2383d3 Signed-off-by: Roman Birg <roman@cyngn.com>
| * | SystemUI: fix potential NPE with QueueRoman Birg2016-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | | Ticket: CYNGNOS-2782 Change-Id: I96816f5234e3bd7c3608ebfe67133eefd5fdcccc Signed-off-by: Roman Birg <roman@cyngn.com>
| * | am: Don't protect apps that atttempt to grant uri perms.Adnan Begovic2016-05-111-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an application is delegating uri permissions through the disambiguation dialog, we need to ignore the global protected apps concept to make sure the functionality still works. TODO: Refactor the protected apps implementation to function with startActivityAsCaller within the system process and the android package. TICKET: FEIJ-420 Change-Id: I8ba974a7b25dffe654d32e859064ae86cd9dc7f8
| * | Automatic translation importAbhisek Devkota2016-05-102-0/+29
| | | | | | | | | | | | | | | Change-Id: I6cae41da852faffb9a82b0f5a92bcd179879d6ba Ticket: RM-232
| * | Automatic translation importMichael Bestas2016-05-1015-2/+118
| | | | | | | | | | | | Change-Id: I1fc549efac54f6f67ac9384eaebbddf723f30192