summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* SysUI: Add first time use lock screen hintsd34d2016-07-2112-9/+541
| | | | | | | | | This adds a set of hints that will be displayed on the keyguard when the screen is turned on. Each of the hints provides the user with a hint on how to interact with the lock screen. Once the user has performed the hinted action the hint should not be shown again. Change-Id: I438316cbf7a01c3f215330a5ca1aed5b78ab3fdc
* Automatic translation importpinky@build012016-07-211-1/+1
| | | | | Change-Id: I98efe6096c57217d4c6cb46ec4fd4d94d84cd426 Ticket: -
* AudioDucking : Check session playback stateDanesh M2016-07-191-23/+30
| | | | | | | | | | Use CMAudioManager to listen for session callbacks for STREAM_MUSIC. Fixes issue with youtube videos not being detected as active media. CYNGNOS-3072 Change-Id: Id47d064b28ee6e1ed5320a6a70ec3e3ba5268785
* Automatic translation importpinky@build012016-07-190-0/+0
| | | | | Change-Id: I39285bb75d8ceecf570bc24cf29618907ba9da5b Ticket: -
* Automatic translation importpinky@build012016-07-194-1/+15
| | | | | Change-Id: Id6a830b775d7a32c8d00a9a30e441f781d1fbe95 Ticket: -
* Fix random crash in libhwuiKeith Mok2016-07-181-0/+1
| | | | | | | | | | | | | | | | | | | | 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
* Automatic translation importinky@build012016-07-154-2/+27
| | | | | Change-Id: Iaf2d46f67d3b9ea9f8acf7293df7c98fb53156cf Ticket: -
* AIDL: Add option to generate No-Op methodsLuis Vidal2016-07-156-8/+115
| | | | | | | Add the option to generate a default (no-op) implementation of an interface Change-Id: I2631e93c8b85e056cf928e9592342dc4466f293e
* pm: Fix lock insanity with ActivityManagerSteve Kondik2016-07-131-16/+19
| | | | | | | | | | | | | | | | * It's possible that ActivityManager may be trying to stop a package while the PackageManager is trying to perform a scan during an upgrade. When AM tries to perform the stop, it will attempt to look up the package user, which will try to take the PM lock. This is fine, but while we're holding the lock in PM during the package upgrade we're attempting to call back into AM to get the current theme, which tries to take the AM lock. This results in the entire system locking up until watchdog kills off system server. * Instead of looking up the current theme while holding the lock in PM, look it up before locking the whole place down. Change-Id: If322a7f214218740d73043ff65860ccadd92f01d
* keyguard: Set FLAG_SHOW_WALLPAPER when shwowing mediad34d2016-07-131-1/+1
| | | | | | | | | This ensures the flag is set if the user has "directly show lock pattern/pin/password" enabled and a lock screen wallpaper is set on a device that has blur enabled. Change-Id: Ib3d359afd914fb1cd9068ffff0bff13b5d23b9cc TICKET: CYNGNOS-3192
* SystemUI: Themes are translatableMichael Bestas2016-07-131-1/+1
| | | | Change-Id: I637ba2960adec161b028f66f55b8777fb75b92f2
* SettingsProvider: fix data_enabled default lookupRoman Birg2016-07-121-10/+0
| | | | | | | | | | | | | | | We shouldn't set the MOBILE_DATA + phoneId keys because it will cause collisions with other parts of the system that actually query MOBILE_DATA + subId - leading to incorrect defaults. TelephonyManager.getIntWithSubId() actually falls back to just MOBILE_DATA for a specific sub id query, so we do not need to touch these values, since it applies the same default to all sub ids anyways. Ticket: CYNGNOS-3171 Change-Id: I38405000b3d641029080fb630eae4d128bd44719 Signed-off-by: Roman Birg <roman@cyngn.com>
* Automatic translation importclyde@build012016-07-114-3/+4
| | | | | Change-Id: Ia5826d42a5a84f3ef604545fb537ce2c5d791809 Ticket: -
* pm: Avoid filtering out protected components in implicit queries.Adnan Begovic2016-07-111-3/+6
| | | | | | | | | Implicity queries resolve the target component for an intent, the intent (if fired) will be gated by the protected apps feature implementation within the activity stack supervisor. Change-Id: Ib079cfa6093f472d4b85f6b4a986440a764affa3 TICKET: FEIJ-1449
* Keyguard: Don't circular reveal a non-visible viewd34d2016-07-081-1/+1
| | | | | | | | | This follows the same logic used in the setCirculeRadius method in this class and avoids performing a circular reveal on a non-visible, and possibly detached, view. Change-Id: I238a81433fd78e41192ca099bd68404ae1d0ac6e TICKET: FEIJ-1501
* SystemUI: add themes dynamic tiles iconRoman Birg2016-07-084-4/+37
| | | | | | | | | | Resolves the themes tile having the default android activity icon. Also resolves other dynamic tiles not being queried properly. Ticket: OSS NIGHTLIES-2967 Change-Id: I532eeaef417195f3148915b777e7ab175b1089aa Signed-off-by: Roman Birg <roman@cyngn.com>
* Avoid NPE in printspooler when changing languageMasaaki Iwaguchi2016-07-081-3/+5
| | | | | | | | | | PrintActivity is recreated when the language setting is changed. As a result of the recreation mCurrentPrinter is null, which causes a NullPointerException when onActivityResult() is called. The issue is solved with a simple null check. Change-Id: Ic58f0ca01577d2ec02d494739f3bc2f06240dd44
* Merge remote-tracking branch 'remotes/android-6.0.1_r52' into HEADJessica Wagantall2016-07-075-8/+75
|\ | | | | | | | | | | Ticket: CYNGNOS-3020 Change-Id: Ia14b6d0120de0b458c7c249a11041ff121389cfa
| * Backport of backup transport whitelistChristopher Tate2016-05-272-7/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Sysconfig define a whitelist of permitted backup transports Previously any apk bundled in priv-app could insert a backup transport. Reduce risk surface by giving the OEM explicit control over who is allowed to handle backup data. Bug 28406080 Backport of 494df791728f4d42d67e935c327910975993ad29 from N Change-Id: I9f90e324169a68720d608f74754d284a7e59cf87
| * Backport ChooserTarget package source check from NAdam Powell2016-05-271-1/+13
| | | | | | | | | | | | | | | | | | | | Fix a bug where a ChooserTargetService could supply a ChooserTarget pointing at a non-exported activity outside of its own package and have it launch. Bug 28384423 Change-Id: I3f5854f91c5695ad9253d71055ef58224df47008
| * Don't pass URL path and username/password to PAC scriptsPaul Jensen2016-05-271-0/+9
| | | | | | | | | | | | | | | | The URL path could contain credentials that apps don't want exposed to a potentially malicious PAC script. Bug: 27593919 Change-Id: I4bb0362fc91f70ad47c4c7453d77d6f9a1e8eeed
| * Fix missing permission check when saving pattern/passwordJim Miller2016-05-271-0/+2
| | | | | | | | | | | | Fixes bug 28163930 Change-Id: Ic98ef20933b352159b88fdef331e83e9ef6e1f20
* | SystemUI: fix qstile page reset timeoutRoman Birg2016-07-061-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the user hasn't visisted the quick settings tile area for some time (currently 10s), we need to reset the page back to the first one. We can't go off whether we are listening to events because when the user turns the screen off, listening is set to true, so the page would never reset if the user turned their screen off. We now key off whether we are expanded, which represents whether the user is interacting with the panel. Change-Id: I010aaa9e9ea84eb96308184dad606d47ce136748 Signed-off-by: Roman Birg <roman@cyngn.com>
* | SystemConfig: allow app-link to be set to any possible stateWilhelm Fitzpatrick2016-07-052-9/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow app-link entries in /system/etc/sysconfig to set a system apps app-link state to any of the available states, and not just "always" as was previously possible. If the "state" attribute is not present in an app-link declaration, the state will default to "always" to preserve existing behavior. This change is needed to allow certain apps to be set to the "always-ask" state so they'll be sure to participate in intent resolution via the disambugation dialog in the default configuration. These setting can be changed by the user via the standard app-link configuration section in Settings -> Apps. Change-Id: I2f98c69ebbeb40492d7ae8d33327986675b18b65
* | am: clear protected apps from recentsScott Mertz2016-07-052-1/+32
| | | | | | | | | | | | | | | | Remove newly protected apps from recent tasks if any activity in the stack is a restricted component. FEIJ-1361 Change-Id: Ifd337bfe8356613d098ff00c575db117d35f2017
* | Automatic translation importblinky@build012016-07-053-0/+18
| | | | | | | | Change-Id: Ia66a72254e86b00e1cd98e6a6d775fa76066e3b6
* | media:Modify the display of system default ringtone when it is none.kaiyiz2016-07-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | After we set the sound of calender use the default ringtone , if the system default ringtone is none, the sound of calender will show unknown ringtone. Make sound of calender not show unknown ringtone when the system default ringtone is none. CYNGNOS-3160 CRs-fixed: 812323 Change-Id: Idbc488748a81b88bb7a0df49e25d6a8cf6ba3826
* | SystemUI: Restrict persistent USB drive notifications to USB disksAdrianDC2016-07-021-2/+5
| | | | | | | | | | | | | | * Without the addition of the isUsb check, a regular FAT32 MicroSD would have a persistent notification that is unwished Change-Id: I396a861702674d0a6a70beb5206fb4c7374ec85d
* | BT: Set persiste Bluetooth State during enable timeout caseGurpreet Ghai2016-07-022-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use case: When enable timeout occurs during S&S testing and Bluetooth state is moved from Turning On to Off. Steps: Changes related to enable timeout case, to test the changes, S&S testing can be done. Failure: Changes done to handle Bluetooth enable timeout case when Bluetooth state changes from Turning On to Off. Root cause: Setting Bluetooth Persist state to handle the enable timeout case so that Bluetooth doesnot self enable after enable timeout case is handled. Fix: Setting the Bluetooth Persist State to Off when enable timeout occurs. Change-Id: I17b3b05020eb7469666e6d8c88c86df7764b4024 CRs-Fixed: 1006444
* | Add absent sim info to locked screen textWileen Chiu2016-07-022-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - For a multisim device, when only one sim is inserted that is pin locked, the carrier text only shows 'SIM CARD IS LOCKED - NO SERVICE' even though the voice registration state for one of the phones is 12, where emergency calls are allowed - This occurs when the state above is reported for the slot where a sim card is not inserted. We only check for active subscriptions when creating the display text - Add a check for when only one sim card is inserted. If the voice registration state is out of service for both slots, with at least one as 12 (emergency allowed) show 'Emergency calls only' instead of 'No service' Change-Id: Ib58b6b7431d7b29c770287037cbf07c8df101ae3 CRs-Fixed: 985955
* | Encapsulate the unbindService with try catch blockLuke Zhang2016-07-021-1/+5
| | | | | | | | | | | | | | | | | | | | BT got stuck in mContext.unbindService when it tried to recover from error. The best way to fix it is to encapsulate the unbindService with try catch block CRs_fixed: 996389 Change-Id: I51469c312537b31317481096b0f9822e4a611576
* | Bluetooth: Access mediaplayerlist in synchronized wayAyan Ghosh2016-07-021-67/+73
| | | | | | | | | | | | | | | | Access mediaplayerlist in synchronized way to make sure no transient update is tried to be worked upon in multithreaded environment. Change-Id: I0e7810ac89e0ddc19d57b32c679450aa7cb87273 CRs-Fixed: 979840
* | WifiDisplayController: Fix p2p disconnect before rtsp teardown completesManoj Kumar AVM2016-07-021-16/+81
| | | | | | | | | | | | | | | | Disconnect p2p only after onDisplayDisconnected is received which serves as a notification from native layers of WFD that RTSP message sequence as part of teardown sequence is completed Change-Id: I3f678a76d172725d904013476226810faecfbd83
* | Wifi: Make maximum selective channel scans and interval configurableNalla Kartheek2016-07-022-0/+8
| | | | | | | | | | | | | | | | The change makes max initial scans on selective channels and initial saved channel scan interval configurable. Change-Id: I61a9c0b203dca879c1420886d06659a277a7ed99 CRs-Fixed: 909098
* | combo bug when location reported by providers do not come with extrasKevin Tang2016-07-021-4/+5
| | | | | | | | | | | | | | | | | | LocationManagerService tries to create an extra bundle and stick it into the location object, but it is not doing it correctly. As a result, combo drops report. Change-Id: I6f5886dd7f14819ecc7a4ed96c867a0ec486faf7 CRs-Fixed: 962746
* | Ignore IMS type APN when notify data connectionRichard LIU2016-07-021-1/+2
| | | | | | | | | | | | Do not add IMS type APN in mConnectedApns. Change-Id: I339a2c411f94572c00e9df48deb38aab1046e581
* | Remove TONE_SUPERVISORY_CHSandeep Kunta2016-07-021-6/+0
| | | | | | | | | | | | | | Remove TONE_SUPERVISORY_CH, since its no longer used. Change-Id: Idd1c5e4cab878362975cb3fb38332e39276a2a6b CRs-Fixed: 967597
* | MSIM: Restrict data activity change to listeners with matching subIdMuhammed Siju2016-07-021-1/+2
| | | | | | | | | | | | | | | | | | | | Currently data activity change callback is invoked on all listeners irresepctive of subId. This causes wrong data activity value to be updated from other sub. To fix this add subId match before invoking callbacks on listeners. Change-Id: If218ea3ead2b837d9c2d1cac4d353c1d35c5babe CRs-Fixed: 957838
* | Add config to show HD icon on EVS codec.Dheeraj Shetty2016-07-021-0/+8
| | | | | | | | | | | | | | | | | | Add config to show HD icon when audio codec is EVS_WB, EVS_SWB and EVS_FB. Default value is false. Change-Id: I6c6b9fc413ba1298522d8c661b50f458a71a2aa7 CRs-fixed: 986961
* | Remove use of '_' variable nameNeil Fuller2016-07-011-2/+2
| | | | | | | | | | | | | | | | | | '_' may become invalid in future versions of the Java language and generates warnings in OpenJDK 8. Bug: 24494019 Change-Id: Id77c8f003b0fdf295191d2d8dbd5b0b0edde2b44
* | Automatic translation importinky@build012016-06-296-16/+17
| | | | | | | | Change-Id: I94e4f7e190765e42efcebd4d4df1efcae30224c4
* | Revert "Revert "Only show keyguard panel if on lockscreen + no activity on top""Danesh M2016-06-293-3/+9
| | | | | | | | | | | | | | | | CYNGNOS-2980 This reverts commit 226797c8e2aba40ecbfb646f2ef5085893dff46a. Change-Id: I0440faf2dd07b427f639277eec2f3cfa89a7de6e
* | WindowAnimator : Check KEYGUARD_PANEL when deciding to show/hide windowDanesh M2016-06-293-1/+18
| | | | | | | | | | | | | | | | | | | | | | By default, if blur is enabled we don't hide the window behind since we want the user to see it. This is not true for when a KEYGUARD_PANEL is active since we can't see anything behind it anyway. Only apply blur logic if KEYGUARD_PANEL is not added. CYNGNOS-2980 Change-Id: Icecae14455d6e68665bb688e3f6dc4ea9d74e88c
* | PhoneWindowManager : Check CM_SETUP_WIZARD_COMPLETED for isUserSetupCompleteDanesh M2016-06-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | During certain flows (such as restoring device data), google's setup wizard sets USER_SETUP_COMPLETED which forces certain things like immersive clings to show when they are not suppose to. Add additional checks to ensure these clings only appear after setup wizard has completed CYNGNOS-3077 Change-Id: I111b3a06e1531bb4265d55bc8a8dcdb02f80cc0b
* | KeyguardSecurityViewFlipper : Fix sim unlock height overlapDanesh M2016-06-281-15/+2
| | | | | | | | | | | | | | | | | | | | | | If the font size is set to Huge, and pin lockscreen + sim unlock screen is showing, the text for the pinpad overlaps. Reason is we enforce the smallest maxHeight on all children, and this breaks certain screens. Just let each child use its own maxHeight that it set to begin with. FEIJ-184 Change-Id: I3b461f6f75a3f541281fb32efc83a891ca7b65f0
* | Disable proximity check on power key properlyLuK13372016-06-281-1/+1
| | | | | | | | Change-Id: If1ca0fa02805ce2fbe5a9ac1ab56a5e62beca4e1
* | fw: GlobalActions: Always dismiss any existing dialogTom Marshall2016-06-281-3/+2
| | | | | | | | | | | | | | | | | | | | | | The check for "mUiContext == null" is always false after the initial dialog is created, causing the dismiss logic to never trigger. All code uses getUiContext() now, so the check is not necessary. Remove it and re-align the create/dismiss logic with AOSP. Jira: BACON-4069 Change-Id: Ibba7b38a5fdc8410824db6d0a6f726f4a2822c9d
* | SystemServer: Do not start Atlas Service on lowram devices.Trishool Narayanasetty2016-06-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Provide an on/off switch to control atlas service at start-up. This service is disabled by default on lowram devices to save memory. Atlas service is responsible for pre-loading drawables which can be shareable among the applications. Found that the probability of using same drawables in different apps concurrently is very less. However it allocates fixed size of ion buffer based on config. So by disabling it this memory overhead can be avoided. We are safe to disable this service as it does not block any functionality. Change-Id: I14599125c717b61f3ea5cded376fcc1802281756
* | SystemUI: Add margin in qs_tile_top between instruction text and add buttonEric Biedert2016-06-251-0/+1
| | | | | | | | | | | | | | | | Screens: - http://i.imgur.com/sHV1e5j.png - http://i.imgur.com/m4vA8zo.png (with exclamation marks to see padding better) Change-Id: I5714a68268d2567153d8bf851e151b7af8b699d8
* | wifi: Enable WiFi IpReachabilityMonitor by defaultZdrowy Gosciu2016-06-231-1/+1
| | | | | | | | | | Change-Id: I7e604659a220b0fa26373dc8191053d7f9d5c8cb Signed-off-by: Zdrowy Gosciu <ZdrowyGosciu+GITHUB@gmail.com>