summaryrefslogtreecommitdiffstats
path: root/core/java
Commit message (Collapse)AuthorAgeFilesLines
...
* [1/2] Add triggers to change profile based on APJo De Boeck2013-06-141-2/+62
| | | | | | | Add data structure mWifiTriggers to store triggers per profile. Add network change listener to switch to profile Change-Id: I97e360d7783d3b0e2bbd70fe7a9a866d8c0fa7cd
* Fix theme provider crashing for non-primary user.Danny Baumann2013-06-132-7/+8
| | | | | | | | | | | | PackageManagerService's context is for user 0, so if the theme provider for other users was invoking the getInstalledThemePackages() method, the themes provider crashed as it doesn't have the INTERACT_ACROSS_USERS permission. Fix that (and simplify code) by making getInstalledThemePackages() return the installed themes for the current user, which was probably the intent anyway. Change-Id: I02002cee005b74128f3b2f7cc7a93b9b8514f1f3
* [2/2] Permit home button wake to be configurableSam Mortimer2013-06-121-0/+6
| | | | Change-Id: Ie52247d5c23c8f840ababc880dd41992049cefd1
* change "next" to "done" in minute IME option under 24-hour formatHyejin Kim2013-06-101-0/+10
| | | | | | | | | | We don't need "next" button under 24-hour format any more. So, we changed from "next" button to "done" in IME option when setting minute under 24-hour format AOSP commit: https://android-review.googlesource.com/#/c/54121/3 Change-Id: Ic9b1673248183060ba7279b63648a85dc39ca3b9
* Fix incorrect fragment animation used for hiding fragmentsAdam Powell2013-06-101-1/+1
| | | | | | | | | | Mirror of support lib patch https://android-review.googlesource.com/#/c/60032/ into frameworks/base. AOSP Commit: https://android-review.googlesource.com/#/c/60167/ Change-Id: I8d1cb2e217721336674b8e3e2ef8722a8d9baefd
* Reduce number of binder calls by saving nav bar stateEthan Chen2013-06-081-9/+18
| | | | Change-Id: I3729d05a34a661cb74e998c40b61c615cdbf83a6
* Merge "Check themes of current user, not user 0." into cm-10.1David van Tonder2013-06-071-1/+2
|\
| * Check themes of current user, not user 0.Danny Baumann2013-06-071-1/+2
| | | | | | | | | | Change-Id: I5d685a04289b434a12e460b4fdacc43a41ff2be1 JIRA:CYAN-1303
* | Detect whether overflow button should be shown based on menu key stateEthan Chen2013-06-063-23/+33
|/ | | | | | | | | | Some devices may have hardware keys but not contain a hardware menu key. Hardware keys are also able to remapped. The overflow button detection logic currently does not take that into account. This change allows detects whether any key is capable of emitting the MENU_ACTION keystroke in order to determine whether the overflow button should be shown or not. Change-Id: I8699bd0242560314f8eadc54b187c69c992cf875
* Merge "Framework: Add support to enable/disable Electron Beam (1/2)" into ↵DvTonder2013-06-051-7/+1
|\ | | | | | | cm-10.1
| * Framework: Add support to enable/disable Electron Beam (1/2)DvTonder2013-06-021-7/+1
| | | | | | | | | | | | | | Parts were brought over from CM9 but not all of it. This completes the port. Change-Id: I2ab24581ca775ec7af3eecf7e1dcac72c91e3124
* | Telephony: Add DCHSPAP to getTcpBufferSizesPropNameGiulio Cervera2013-06-031-0/+3
|/ | | | Change-Id: I868f0eae2db6032b43e9c1a1bd23860ab7bbebca
* Fix MAP SDP record generation [2/3].Danny Baumann2013-05-312-7/+16
| | | | | | | Give the bluetooth app API to register a server socket for a specific UUID/port pair. It needs that for registering two OBEX server instances. Change-Id: I6ede7f2777040af4e653eceb14ea47a2c03abfae
* Profiles : Allow nfc override (1/2)Danesh Mondegarian2013-05-281-1/+24
| | | | | | | | | Part 2 : http://review.cyanogenmod.org/#/c/37013/ Allow user to override nfc state via profiles Request jira : https://jira.cyanogenmod.org/browse/CYAN-989 Change-Id: Ief7fa4ab83527f488fbd8c0bc96448a2a2cde6fb
* Merge "Pie controls: Tweaking UX for pie service (1/2)" into cm-10.1David van Tonder2013-05-282-0/+81
|\
| * Pie controls: Tweaking UX for pie service (1/2)Jens Doll2013-05-232-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the introduction of pie service there is the need to fine tune the parameters for activation again. Patch Set #2: * Base trigger thickness set to 10dp * User settable activation sensitivity Patch Set #4: * Reverted #setSensitivity() in PieGestureTracker * Added Sensitivity "Very High" Change-Id: Ief7c1786467195f2ad52dcdb0efd3ad03a48834c
* | Merge "Improve auto-brightness handling" into cm-10.1David van Tonder2013-05-281-0/+11
|\ \
| * | Improve auto-brightness handlingDanny Baumann2013-05-261-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | - Add a setting to control the auto-brightness algorithm responsitivity - Make the algorithm react much faster when the ambient brightness increases quickly, e.g. when receiving a call in bright sunlight. Change-Id: Ic608901c476609dde69cae982228c09567140a83
* | | Merge "Make character picker for QWERTY keyboards use HOLO theme" into cm-10.1Danny Baumann2013-05-271-16/+11
|\ \ \ | |/ / |/| |
| * | Make character picker for QWERTY keyboards use HOLO themeSkrilax_CZ2013-05-111-16/+11
| | | | | | | | | | | | | | | | | | | | | Also, removed the cancel button. Instead, touching outside will close the dialog. Change-Id: I20c1d22b131a92e2e2022d054b4141a2b61c7dd8
* | | Frameworks & SystemUI - additional DC-HSPAP supportMatthias Bosc2013-05-222-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds some more informations about Dual-Carrier HSPAP It allows displaying a "DC" icon on status bar for compatible devices and add a "DCHSPAP" value in state phone patch 1: add TelephonyManager to fix build patch 2: modify ServiceState patch 3: switch to cm_strings patch 4: fix a mistake patch 5: upload a new set of icons, a bit prettier than previous patch 6: update icons (more opacity to match colors) patch 7: removed drawable-sw* here is a screenshot for example: http://imgur.com/mQ2du3l,PSyHoqC Change-Id: I77d05e23c8ad3efdfeb19cf06ed92e7c57105ebe
* | | Merge "Fix layout of MultiWaveView and GlowPadView." into cm-10.1Danny Baumann2013-05-222-12/+4
|\ \ \ | |_|/ |/| |
| * | Fix layout of MultiWaveView and GlowPadView.Danny Baumann2013-05-142-12/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the calculated size of the rings is much smaller than the measured size (which is happening e.g. on mdpi 600x1024 tablets), the glow pad appeared shifted to the right. This happened due to the insets being calculated as difference of available and needed size, and later on being added to the available size. Example numbers (Nexus 4 with density forced to 160): - computed size in onMeasure: 768x505 - scaled size in onMeasure: 505x505 - thus, insets are calculated as 131/0 - in onLayout, placementWidth (364) and max target width (108) are much smaller than width (768) - thus, center is calculated as 131 + (768 / 2) = 515, thus shifted to the right Fix that by not using width in the calculation, as the inset size already takes it into consideration. JIRA:CYAN-829 Change-Id: Ifc2a93214f812f554a8fed3243eed66aec9f00c9
* | Merge "Allow applications to show the navigation bar in expanded desktop ↵Danny Baumann2013-05-181-0/+7
|\ \ | | | | | | | | | mode." into cm-10.1
| * | Allow applications to show the navigation bar in expanded desktop mode.Danny Baumann2013-05-171-0/+7
| | | | | | | | | | | | | | | | | | | | | This is used by the settings app to show the navigation bar when editing it. Change-Id: Idc8fa5e49f31175dea603d7f1a1ef94ffab7249d
* | | Merge "Fix up notification LED behaviour" into cm-10.1Danny Baumann2013-05-181-9/+0
|\ \ \ | |/ / |/| |
| * | Fix up notification LED behaviourDanny Baumann2013-05-161-9/+0
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Commit 5713307e3d2eb457ba148df3683ad09733727506 (in ICS) attempted to fix the problem that the notification LED wasn't reenabled after turning off the screen again, but introduced another bug in the process: If another pending notification with LED at the time when the notification with the new magic flag introduced by that commit (which was used by phone and MMS apps) was active, the LED still wouldn't be turned on at screen off time. Also, this commit didn't handle locking correctly. This commit essentially reverts 5713307e and makes sure the LED is reevaluated when the screen is turned off again. - This change also makes the assignment of the LED when multiple pending notifications want to use the LED more clear: The notification with highest priority gets the LED. If multiple notifications with same priority exist, the most recent one gets the LED. JIRA:CYAN-652 Change-Id: I1df0b40cca2af7a08c240677d22d2a95097b7184
* | Merge changes I352f1980,I6a4a4635 into cm-10.1David van Tonder2013-05-166-0/+289
|\ \ | | | | | | | | | | | | | | | * changes: Pie controls: A new way of activation Pie controls: Introducing a pie delivery service
| * | Pie controls: Introducing a pie delivery serviceJens Doll2013-05-156-0/+289
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To make pie controls more reliable, it is neccessary to detect trigger actions directly from the input stream. This commit introduces a new system service, that filters all input events in front of the input dispatcher to detect pie activations. This commit introduces: * A new system server local API in the input manager service to register secondary input filters. These filters are behind the default accessibility filter but before the input event dispatching of the android framework. * A new system service, that binds to the new API to listen for pie activation gestures. * A non-public manager class providing access to the newly created pie service. The service manager name of the service is "pieservice". The non-public AIDL interface of the service is IPieService.aidl. To register a new pie activation listener the INJECT_INPUT permission is needed. The service state can be dumped by the "dumpsys pieservice" command. Note: This commit only introduces the pie service. There is another commit, that binds the actual pie controls to the pie service. Patch Set #1: * The pie service is currently disabled by default and needs to be enabled by device overlays (see config.xml / config_allowPieService). Patch Set #2: * Activation fixes * Debug dump improvements Patch Set #4: * Added systrace support (TRACE_INPUT_TAG) * Switch default to enable service on all devices. * Moved Position to com.internal.android.utils.pie.* * Some more code rearrangements Patch Set #5: * Rebase Patch Set #6: * Cover more corner cases on PieInputFilter * Adjust gesture time out Patch Set #7: * Do not send events that are from the past * Recycle all events Patch Set #8: * Handle binder died events in PieService correctly Patch Set #10: * Simplified locking * SYSTEM_UI_FLAG_HIDE_NAVIGATION support * Fixed ADW Lauchner bug Change-Id: I6a4a4635bed420e800a3230457ee690131116a11
* | Don't include flags in configuration change if their value hasn't changed.Danny Baumann2013-05-151-3/+5
|/ | | | | | This makes the check in updateFrom() match the logic in diff(). Change-Id: I3ab4e8460f7fbf985ef55b9514a8aa90d401d486
* Option to use volume keys to control media volume anytime (2/2)Pawit Pornkitprasan2013-05-071-0/+7
| | | | | | See Settings part for description Change-Id: I78d26b0bd41f5b58514ae9c68208a8c950396823
* camera: Add support for sending raw commandsSteve Kondik2013-05-041-0/+6
| | | | | | | | * Certain camera drivers need magic commands to select special modes such as ZSL or HDR. Add support for sending raw commands from applications. Change-Id: I512a765c7a67ffd2877e465cf6493ffc2b3b54ac
* Email force close when pressing back key after selecting charactersPeter Nilsson2013-04-302-1/+10
| | | | | | | | | | | | | | | | | | | | | | Email and Browser will be forced closed after selecting a text and then press the back key, tilting the screen or trying to share or copy the text. This is because a previouse fix is using a part of the code that Google has removed. Fix: clearSelection will now use its own EventHub id, CLEAR_SELECT_TEXT. This part describes the previous fix. Marking a text on the web page and then press copy works, but trying to mark the same text again does not work. The reason for this is that the selection never gets cleared in webkit. The fix, calling cleaSelection in the onDestroyActionMode. Also added clearSelection when getting an onConfigurationChange. FIX=DMS01503793 Change-Id: I5e5673bac4efb3d28e9fc613da4bf636f8ab3c39
* FIX Null Pointer Exception on dialog cancelAmit Kumar2013-04-291-0/+2
| | | | | | | | | | | | Null Pointer Exception occurs because mWebViewCore instance is made to null while calling destroyJava(). When 1.webview hosting activity goest to background, without calling webview onPause(). 2. If app is launched again (having launchmode:singletask ) and another activity (not webview hosting) comes on top top. 3. It destorys the previous activity holding webview which internally tries to cancel the dialog, but webviewcore instance is null. Null pointer exception is raised. Change-Id: Idbcd30d0b0d4a35819444bbaa5c73cced8bb35a3 Signed-off-by: Amit Kumar <amitkecian@gmail.com>
* Can not mark the same content of browser page after copyPeter Nilsson2013-04-282-2/+9
| | | | | | | | | | | | Marking a text on the web page and then press copy works, but trying to mark the same text again does not work. The reason for this is that the selection never gets cleared in webkit. The fix, calling cleaSelection in the onDestroyActionMode. Also added clearSelection when getting an onConfigurationChange. Change-Id: I59b384cb5441b6a3a05007ea7e77f9699889a87c
* Fix NPE when pasting non-text from ClipboardNils Holmström2013-04-281-1/+1
| | | | | | | | | | | | When copying a link from a bookmark and then pasting it into a textfield a NullPointerException will occur. A ClipData.Item is not guaranteed to always contain a text string and therefore getText() can be set to null. Using method coerceToText() instead of getText() makes sure that a text string is always returned. Change-Id: I81343c0371835a3a7a52045dcd1760e69e59a967
* Audio continue to played even if paused manuallyRoger Chen2013-04-281-11/+18
| | | | | | | | | | | | | | Currently, audio will resume playing after a phone call or notification even if the user had manually paused playback. This patch addresses that by introducing a new player state to distinguish the user pausing playback and the browser losing audio focus for some other reason. Audio will only resume if the browser temporarily lost audio focus and not when the user has manually paused playback. Change-Id: I9e8beaedb0fcc5afe920068297ed9c387eab2ac8 Signed-off-by: Roger Chen <cxr514033970@gmail.com>
* Allow creating custom dialogs in DialogPreference.Danny Baumann2013-04-241-14/+21
| | | | | | | This allows creating non-AlertDialogs while still using the click and state handling of DialogPreference. Change-Id: I54fd7d6d6b9f6a49fef1ae95e0178838b3edfa56
* KeyEvent: update commentChirayu Desai2013-04-211-2/+2
| | | | Change-Id: I1ea491e7e23670bf0ea83392710010b557803178
* [1/2] Power connect/disconnect notification supportSam Mortimer2013-04-151-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | part 1/2: frameworks/base PowerUI and Settings http://review.cyanogenmod.org/#/c/35241/ part 2/2: packages/apps/Settings Sound settings http://review.cyanogenmod.org/#/c/35242/ patchset 3: shrink a couple of long lines remove power_notifications_use_default option (folded into ringtone option) load default settings in global instead of system patchset 5: support vibrate toggle ignore first power state change (on boot) if it's a DISCONNECT patchset 6: fix ignore first power state change patchset 7: change vibrate to default to off simplify first power state change ignore logic Change-Id: I36a6b9f924d2cd52191a8e83a744745b37c5b068
* QS/PW: Check for mobile data instead of telephony permissions (1/2)Brandon Bennett2013-04-151-3/+3
| | | | | | | | | | | | | | | | For QuickSettings and Power Widget check if there is ConnectivityManager.TYPE_MOBILE network avaialbe directly instead of relying on a checking for the PackageManager.FEATURE_TELEPHONY permission. Some devices like tilapia (Nexus 7 GSM) has mobile data but does not set the telephony permission. Patchset 2: - Use ConnectivityManager.isNetworkSupported() instead of checking for a null value returned from ConnectivityManager.getNetworkInfo(). Thanks - Have MobileNetworkTile use the QSUtil deviceSupportsMobileData method Change-Id: I71bd6217cbe08622f805de4ae30a87df11340f5f Fixes: CYAN-803
* Externalize symbol picker options to resourcesAlexandre Dumont2013-04-131-64/+61
| | | | | | | | | | | | | Having the symbol picker options in resources allows a change to be made for a specific device, and even for a specific locale (change in overlay). Ported from jellybean (was Change-Id: If39eafc7d0766d28ef6bee0ff61bf234a6654f38) http://review.cyanogenmod.org/#/c/20626 Signed-off-by: Michael Bestas <mikeioannina@gmail.com> Change-Id: I72ff6fab6b9c14f9761904fdcc6918784d790d4d
* QwertyKeyListener: Add support for www and .com keyDavid Daynard2013-04-132-0/+18
| | | | | | | Add support for www and .com key on devices with physical keyboards. This code is identical to what was present in ICS. Change-Id: I55e6c248959e0a0657bbd8e3840470ae7adbd8ed
* Correct executable bit for source filesKenny Root2013-04-1363-0/+0
| | | | | | | | | | Many media files and source code files were marked as executable in Git. Remove those. Also a shell script and python script were not marked as executable. Change-Id: Ieb51bafb46c895a21d2e83696f5a901ba752b2c5 Signed-off-by: Chirayu Desai <cdesai@cyanogenmod.org>
* Fix Photosphere/Camera FCsJostein Kjønigsen2013-04-131-0/+2
| | | | | | | | | | | | | | | Photosphere is setting a few parameters "blindly" while the API says it should check the device capabilities first. On TF101 (and probably other devices) the camera HAL doesn't handle FLASH_MODE & SCENE_MODE and so it sends the required RuntimeException for these, which makes Photosphere FC the Camera app. => Fix: check device capabilities & ignore these 2 parameters if the device doesn't support them. Fix based on following Team EOS patch: https://review.teameos.org/#/c/1598/ Change-Id: Idd80299802e9213a3c40414ace3d516d39f47783
* Merge "Adapt navigation bar's long press behaviour for pie controls" into ↵David van Tonder2013-04-131-0/+63
|\ | | | | | | cm-10.1
| * Adapt navigation bar's long press behaviour for pie controlsJens Doll2013-04-131-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit brings the navigation bar long press behaviour to pie controls. Two things will be considered for long press: * Long press on HOME will open Google Now. * Long press on BACK will kill an application if enabled within the debug options. Patch Set #2: * Jacob's colours Patch Set #3: * More blueish colours * Using a longer time out for long press (getLongPressTimeout() * 2) * Moved killForegroundAppication() around Patch Set #5: * Shortened long press time out a bit * Adjust time for info shade dynamically Change-Id: I8cfa87a5be0678f0452011d85d427439d7cf31e9
* | keyboard: adding functional alt/shift lightstbalden2013-04-133-0/+52
| | | | | | | | | | | | | | | | | | | | | | This is useful for devices that has QWERTY keyboard and leds for the Alt/Shift (Fn/Caps) keys, like htc doubleshot. Depends on libhardware patch for the light ids: http://review.cyanogenmod.org/34902 Change-Id: I66ebc2d881438f5b51db77eaa885421e65a7da0d
* | Merge "keyguard: enable magnetic target if no custom targets defined" into ↵David van Tonder2013-04-121-0/+8
|\ \ | | | | | | | | | cm-10.1
| * | keyguard: enable magnetic target if no custom targets definedPawit Pornkitprasan2013-04-091-0/+8
| |/ | | | | | | | | | | | | | | When no custom target is defined (the "reset" button is pressed in settings), the unlock target will always be at the right regardless of the direction the user dragged to. Change-Id: I0a2b1cd5dc7a2840c23d83a26593513cbc880c08