summaryrefslogtreecommitdiffstats
path: root/core/java
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Only call uncrypt when we're encryptedPat Erley2016-05-231-15/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were always generating a block map for encrypted update, even when the device was not encrypted. This leads to a spectacular failure. Fix this by only calling uncrypt when we're encrypted. Additionally, only pass block.map as the update file in the case that the device was encrypted and requires it. NIGHTLIES-3012 Change-Id: Ia34eb5115ac4365605fd57f76179854a6042c5e4
| * | fw: Repurpose PREVENT_POWER_KEY for preventing multiple system keys.Adnan Begovic2016-05-232-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows applications like camera, and various testing applications, to intercept certain system keys to verify behavior or leverage it in creative ways. Limited to signature/privileged. Change-Id: Iacd8735af2aabafbf1fc062d8c565b7102dc6865 TICKET: FEIJ-522
| * | frameworks/base: Support for third party NFC featuresPuneet Mishra2016-05-234-6/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Integration of below modifications are necessary to support third party NFC software: * a new interface in INfcAdapter.aidl allowing vendor specific extensions and features * a new size for MIFARE Classic tags * a modified constructor to distinguish MIFARE Classic tags from NfcA tags * allowing extensions to AidGroup and changing the protection of the instance variables to package protected Change-Id: Ic11dc68c4ea83262c705ec50b75b5808aa064f82 (integrated from commit 57a001b7851c97d41f042dda643f9a87aa6306e5)
| * | Themes: Fix theming of cmsdk assetsd34d2016-05-191-0/+2
| | | | | | | | | | | | | | | | | | | | | Missed the pkgid assignment bits in I4f64d53d82c9edafbe624c3b2eafcda7332587fb Change-Id: Ie442c8922f0d9eac3ed5bab70a99d3e065b719c4 TICKET: CYNGNOS-2723
| * | am: Handle unchecked activity starts for protected components.Adnan Begovic2016-05-193-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | 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
| * | SpamFilter : Hide option if notification cannot be filteredDanesh M2016-05-131-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | Hide option to filter notification if its a completely custom notification which did not invoke setContentTitle/Message...etc. NOTES-85 Change-Id: Ieec799dba589329b994f7add703babece13b6d14
| * | CmRes: Attach themed cmsdk resources to assetsd34d2016-05-101-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cmsdk is beginning to contain some themable assets, like the quick settings tiles for LiveDisplay and Themes so we need to attach themed resources for the cmsdk in order for those themed resources to be picked up. Change-Id: I4f64d53d82c9edafbe624c3b2eafcda7332587fb TICKET: CYNGNOS-2723
| * | Settings: defer DEV_FORCE_SHOW_NAVBAR query to CMSettingsRoman Birg2016-05-021-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | Merge tag 'android-6.0.1_r30' into HEADJessica Wagantall2016-04-201-0/+12
| |\ \ | | |/ | | | | | | | | | | | | | | | Ticket: RM-234 Android 6.0.1 release 30 Change-Id: I1bd7cf4081a12d28dc5da8b53b9124180afaa23d
| | * Redact Account info from getCurrentSyncsMatthew Williams2016-02-261-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG:26094635 If the caller to ContentResolver#getCurrentSyncs does not hold the GET_ACCOUNTS permission, return a SyncInfo object that does not contain any Account information. Change-Id: I5628ebe1f56c8e3f784aaf1b3281e6b829d19314 (cherry picked from commit b63057e698a01dafcefc7ba09b397b0336bba43d)
| | * DO NOT MERGE Read Bluetooth interop database entries from settings (1/2)Andre Eisenbach2016-02-241-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Interop database entries are stored in the system settings entry "BluetoothInteropDatabase". The format is a list of entries separated by ";". An entry consists of a BDA fragment, followed by a comma and an integer representing a feature from interop.h. Example: To disable LE secure connections for devices starting with BDA 11:22:33, use "11:22:33,0". Bug: 26548845 Change-Id: I6a9fd34f6af4d3bdfcaa0e051eafebdfbf2a4949 (cherry picked from commit 3bc623be8dd8b83d0a22c5cc5b5a8955001f6fc7)
| | * DO NOT MERGE ANYWHERE: Don't change screen on time on time changesAdam Lesinski2016-02-241-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Screen on time should be measured in elapsed realtime, not wallclock. Cause a checkIdleStates to occur when reloading stats (on rollover and on time change). When time changes occur in the negative direction, the new stats file we create can overlap the previous one with regards to its end timestamp. Use the begin timestamp to determine which of the latest stats to merge. (b/22716352) Bug: 26488100 Change-Id: If31b29bbbee9e98401205b5e26bce86e181286e7
| | * DO NOT MERGE ANYWHERE: UsageStats: Use new settings key idle_duration2 for ↵Adam Lesinski2016-02-241-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | app idle Ignores the old, re-appropriated key "idle_duration" which is now set to a high value in order to force disable app idle on devices with bug b/26355386 Bug:26355386 Change-Id: Iff9de843ad6e547d29c1583687fc7f7ce7e15090
| | * Exit getAllValidScorers early if not the primary.Jeremy Joslin2016-02-161-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the crash that occurs when getAllValidScorers() is invoked by a non-primary user when a scorer is active. BUG: 23040221 Change-Id: I42c9e18d74389be3191258ca5626f2c433ca7cc7 (cherry picked from commit 5b294b45d0d7afbed71fd2e59342c5ad7b8b7d76)
| * | LockPatternUtils: Use the actual user id to set pattern sizeScott Mertz2016-04-141-10/+10
| | | | | | | | | | | | | | | Ticket: CYNGNOS-2462 Change-Id: Ia68e26ec2dfc23317135d933bc25204c1380bb02
| * | Themes: Restore original value if getValue failsd34d2016-04-131-25/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a catch all around the guts of IconCustomizer.getValue and restore the original outValue before returning if an exception does occur, with some log output for our own sanity. Change-Id: I021760cd5dc07d9cfbbced09c514b86fb997f7d0 TICKET: CYNGNOS-2432
| * | Merge tag 'android-6.0.1_r24' into HEADJessica Wagantall2016-04-051-0/+18
| |\ \ | | | | | | | | | | | | | | | | Ticket: CYNGNOS-2213 Android 6.0.1 release 24
| | * | Redact Account info from getCurrentSyncsMatthew Williams2016-03-011-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG:26094635 If the caller to ContentResolver#getCurrentSyncs does not hold the GET_ACCOUNTS permission, return a SyncInfo object that does not contain any Account information. Change-Id: I5628ebe1f56c8e3f784aaf1b3281e6b829d19314 (cherry picked from commit b63057e698a01dafcefc7ba09b397b0336bba43d)
| * | | Framework changes for resetting data usage statisticsKamaljeet Maini2016-04-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As part of data management experience enhancements in Settings application, a new feature is added. This feature allows users to fully reset all data usage stats of currently selected network interface. When data stats are reset for a specific network interface, the total data usage and per app data usage for that interface is reset to zero. There is no way to revert this reset. Prior to this feature, users could only change the data stats cycle to hide older data usage history. Alternatively, users could perform fully factory reset to remove the usage history. This feature allows fully clearing data usage stats history without any other changes. Change-Id: I242331cf85cec00997a8aa34e8bdcbccf0917864
| * | | NetworkManagement: Add ability to restrict app WiFi background data accessKamaljeet Maini2016-04-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Settings/SETTINGS-87 Change-Id: I49124f24d27cde349519ca19ffc39675c897c47c
| * | | Implement left swipe on lockscreenDanesh M2016-04-013-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Allows user to left swipe to live lockscreen and back. Change-Id: Ia94d735695b77a091a240e13858641cf95ac0647
| * | | Revert "fw: Implement hungarian cipher text."Adnan Begovic2016-04-011-18/+1
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit c2d3185f92bb0a55cde97fb7b71b4cbd7a27ad86. Change-Id: Id2a39d893cfc46d455c9f84fb6014f97ed41841b
| * | | fw: Implement hungarian cipher text.John McAfee2016-03-311-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement sHungarian cipher text for deep visual encryption based in strong machine learning principles that will disrupt markets for years to come. - Supports big data scale. - Applicable to real time neural network creation based in reality. Change-Id: I1ae819c45da78eeeae4983d0ddb84ed8dc30a360
| * | | NullPointerException when starting VoiceInteractionManagerServiceEdward Savage-Jones2016-03-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an end user disables the package that implements support for Voice Assist (Google App) and reboots, an NPE is thrown during boot, which results in the device getting stuck at the boot animation. Recovery is not possible without USB debugging enabled, leaving factory reset/user data wipe as the only other option. Change-Id: I9c161fff7f096deee13bf8e37d951e20898ae3ff
| * | | camera2 legacy: Allow HDR processing to take a whilenadlabak2016-03-231-1/+4
| | | | | | | | | | | | | | | | Change-Id: Ifc471d5a79299c40b40c2ea6cb457f6e3fd31338
| * | | [1/4] Pass call extras to addcallStephen Bird2016-03-211-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We use the bundle to write the origin that the application can pass us. This data will be used to determine which parts of the application/os are used to make calls most often. Ticket: CD-517 Change-Id: I7857ec3bf38cf5c7232f2152d16f17044e3b3e0e
| * | | NetworkManagement : Add ability to restrict app data/wifi usageDanesh M2016-03-212-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | CYAN-3976 CRACKLING-834 Change-Id: Iaa0483d0ad64511184f0f31d93552a93fbab6dd0
| * | | Accept underscore and tilde in web URLs.Danny Baumann2016-03-211-1/+1
| | | | | | | | | | | | | | | | Change-Id: I19bf6854027bb73f9539bb2366ff5615b1f7c71b
* | | | WallpaperService: change pixel format to RGBA8888Wolfgang Wiedmeyer2016-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The wallpapers are now sometimes displayed correctly when using llvmpipe. Needs more investigation. Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* | | | Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2016-03-1880-3251/+1444
|\ \ \ \ | |/ / / | | | | | | | | https://github.com/CyanogenMod/android_frameworks_base into replicant-6.0
| * | | Show icons of only background apps in ToastsMarcel Dopita2016-03-164-7/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As implemented and discussed in I82bf23664eea134f3b1f89ad5a99f6be73906ba8, this patch disables the icons in Tosts for already foreground apps. It's useful, no questions about that but please be aware of: - Icons in Toasts are also displayed in "tooltips" of ActionBar (when you press and hold an action). I think that goes agains material design as the ActionBar component now doesn't even show app icon. - Toasts from Android OS contain the Green robot. (IMHO: It was never intended for system Toast to have an icon) - Toasts are intended "to be as unobtrusive as possible" and this kinds of break it. (From javadoc) - Icons should stay as workaround for finding that badly designed/intrusive app because: "Your app should not create a dialog or toast if it is not currently on screen." (From notifications design paterns) - Not that relevant but not all users welcome this aesthetic: https://www.reddit.com/r/cyanogenmod/comments/3oazh8/does_the_icon_in_the_toast_notification_bother/ https://www.reddit.com/r/cyanogenmod/comments/3jg5c2/icons_on_toasts/ etc. Change-Id: If748297bd422c7ddbf061da735b8e4ed0a41b425
| * | | fix metrics density comparisonsRoman Birg2016-03-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Resources.java, we explicitly call setDensity() on the local DisplayMetircs object when there is a configuration update - which sets some more fields than the original implementation. In fw/b/core/java/android/app/Presentation.java there is a DisplayInfo comparison which fails because our getMetricsWithSize() did not always set those fields that updateConfiguration would always set. So now we always return a DisplayMetrics object with the fields filled out as expected. Ref: OPO-539 Change-Id: Ie80e7a9cfd249ec59d31b4044ad09e07e34d1194 Signed-off-by: Roman Birg <roman@cyngn.com>
| * | | Merge tag 'android-6.0.1_r22' of ↵Steve Kondik2016-03-1138-334/+848
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into cm-13.0 Android 6.0.1 release 22 Change-Id: I0d31899b234156a91accb61e0a7fb3d8d16d5062
| | * | Don't change screen on time on time changesAdam Lesinski2016-01-281-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Screen on time should be measured in elapsed realtime, not wallclock. Cause a checkIdleStates to occur when reloading stats (on rollover and on time change). When time changes occur in the negative direction, the new stats file we create can overlap the previous one with regards to its end timestamp. Use the begin timestamp to determine which of the latest stats to merge. (b/22716352) Bug: 26488100 Change-Id: If31b29bbbee9e98401205b5e26bce86e181286e7
| | * | Don't assume kernel tick is 100HzThierry Strudel2016-01-222-5/+12
| | | | | | | | | | | | | | | | | | | | Bug: 26729731 Change-Id: I094d5fd0e611349becb91d4460bc2e4af255d125
| | * | Don't verify the scrollbar drawableAlan Viverette2016-01-141-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids infinite invalidations caused by re-use of scrollbar drawable during a single draw() pass. Does not address the general problem of drawable reuse causing unnecessary invalidations as a result of calls to setBounds() invoking invalidateSelf(). Bug: 26533725 Change-Id: I99e9c2dfe4ddfc833569e40e7268dcb03e931fc9
| | * | Merge "Add STEM_1, STEM_2 and STEM_3 key as wakeup keys" into cw-e-devChenjie Luo2016-01-141-0/+3
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 4a577bff96 * commit '4a577bff9674f4bc748ab76bf48ac6e7d3e567cc': Add STEM_1, STEM_2 and STEM_3 key as wakeup keys
| | | * | Add STEM_1, STEM_2 and STEM_3 key as wakeup keysChenjie Luo2016-01-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 25860409 Change-Id: I3f525c9c8df81807d98391c70cd2d1f8c139c8f5
| | * | | Merge "UsageStats: Use new settings key idle_duration2 for app idle" into ↵Adam Lesinski2016-01-141-1/+3
| | |\ \ \ | | | | | | | | | | | | | | | | | | mnc-dr1.5-dev
| | | * | | UsageStats: Use new settings key idle_duration2 for app idleAdam Lesinski2016-01-131-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ignores the old, re-appropriated key "idle_duration" which is now set to a high value in order to force disable app idle on devices with bug b/26355386 Bug:26355386 Change-Id: Iff9de843ad6e547d29c1583687fc7f7ce7e15090
| | * | | | Merge "Revert "Avoid drawable invalidation during draw()"" into mnc-dr1.5-devIan Pedowitz2016-01-131-10/+1
| | |\ \ \ \ | | | |/ / / | | |/| | |
| | | * | | Revert "Avoid drawable invalidation during draw()"Alan Viverette2016-01-131-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e5e59c6da424096da8f57137cdc57d8bd410b079. Drawables expect to be able to call invalidateSelf() during draw() to pump animation frames. We shouldn't break this. Bug: 26533725 Change-Id: Ibe2871f2622faf836637225fc1e3e6f0ca6def47
| | * | | | Merge "Avoid drawable invalidation during draw()" into mnc-dr1.5-devAlan Viverette2016-01-121-1/+10
| | |\ \ \ \ | | | |/ / /
| | | * | | Avoid drawable invalidation during draw()Alan Viverette2016-01-121-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevents infinite invalidation loop when reusing a drawable asset within a single draw() call. Also reduces unnecessary extra invalidations due to drawable setters (ex. setBounds()) being called during draw(). Bug: 26329675 Change-Id: I31b3c99e8efd4193415cc562a84c8939a2f56c2d (cherry picked from commit 8cda8e915916b3166e4496589b802fd1ed553c77)
| | * | | | Handle null result from getVirtualChildAt()Alan Viverette2016-01-122-16/+8
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also adds final where the method was being called, adds Nullable annotation to method, and updates docs. Bug: 25985497 Change-Id: I847a8507f2e3970f1340cddf4abf8650dda22b35 (cherry picked from commit ad52693cf3dfe3f5e84f5a22fe4c3787f2f2cbfb)
| | * | | Merge changes from topic 'grapheme-dr1.5' into mnc-dr1.5-devRaph Levien2016-01-121-22/+34
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Respect grapheme clusters in Layout#getOffsetForHorizontal. Fix: Cursor can be at an invalid offset in EditText.
| | | * | | Respect grapheme clusters in Layout#getOffsetForHorizontal.Keisuke Kuroyanagi2016-01-111-24/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TextUtils#getOffsetAfter was used for getting the next offset in Layout#getOffsetForHorizontal. However, this method doesn't treat grapheme clusters properly. Changed to use TextLine#getOffsetToLeftRightOf instead of TextUtils#getOffsetAfter. Bug: 25375561 Change-Id: I96c9e6e5da65adfb5266446ecab852c52628dbb5
| | | * | | Fix: Cursor can be at an invalid offset in EditText.Keisuke Kuroyanagi2016-01-111-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "getLineEnd(line) - 1" is used as the return value when the "horiz" is beyond the line end for multiple line text. In this case, the returned value can point an invalid offset like the middle point of a surrogate pair. Bug: 23069901 Change-Id: I1afef7205a15079a42bb0018df73f70fe9ada862 (cherry picked from commit 00ad16d1cd24b788262ab4f62935e720a392da6d)
| | * | | | Fix measurement to respect grapheme and span boundariesRaph Levien2016-01-111-8/+10
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When measuring in TextLine (important for cursor positioning), the substring measured must neither be too short (it can't just be the substring up to the measure limit, but must include additional characters if they form a ligature) nor too long (it can't extend beyond the end of the CharacterStyle span, otherwise the measurement fails to account for the fact that the CharacterStyle span boundary breaks the ligature). This patch gets it just right. Bug: 25375561 Change-Id: I36e1c4bdc66424d3b611cf54031756cf54cf3fec