summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge tag 'android-6.0.1_r30' into HEADJessica Wagantall2016-04-205-3/+48
|\ \ | |/ | | | | | | | | | | Ticket: RM-234 Android 6.0.1 release 30 Change-Id: I1bd7cf4081a12d28dc5da8b53b9124180afaa23d
| * Redact Account info from getCurrentSyncsMatthew Williams2016-02-263-5/+35
| | | | | | | | | | | | | | | | | | | | 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)
| * Conflict resolution CL to ag/868720 when cp'ing to mnc-mr1-releaseZach Jang2016-02-271-2/+8
| | | | | | | | Change-Id: I3efe5476ebd758fc567bfdb035583a01c45aea8b
| * 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 Bluetooth: Restrict gain for Absolute volume caseLiejun Tao2016-02-241-2/+23
| | | | | | | | | | | | | | | | | | | | For the lowest music volume steps 1 and 2, restrict the gain to 50% and 75%. This will avoid the lowest volume steps being too loud for some accessories. For music volume 0, set phone gain to 0 as some accessories won't mute on their end. Change-Id: I24e0fa7be8c8635b428a11c91ea153aad7cec55f Signed-off-by: Liejun Tao <baibai@motorola.com>
| * DO NOT MERGE ANYWHERE: Hack to get devices booting again.Jeff Sharkey2016-02-241-1/+13
| | | | | | | | | | | | | | | | | | If we try scheduling a pass before the system is ready, record a pending event and dispatch once we're actually ready. Bug: 26863668 Change-Id: I028285383c8bbe8b653aeaa7544eefe3d41277bc (cherry picked from commit 538c11cf2175d4e30337e8776401bfede85866be)
| * DO NOT MERGE ANYWHERE: Don't change screen on time on time changesAdam Lesinski2016-02-243-41/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Fix for syncs being dropped when appIdle is onShreyas Basarge2016-02-241-19/+22
| | | | | | | | | | | | | | | | | | | | | | Syncs were being dropped when appIdleMode was on for an app. This CL backs off the sync instead of dropping it. When the app becomes non-idle, backoff is cleared and the sync is performed. Bug: 26355386 Change-Id: I2040dfd847011d3ca902e66a8cd52b2a429177c1 (cherry picked from commit 2c051498b2b0e2608740d906e70867b74083107d)
| * DO NOT MERGE Check apps idle states on time changesAmith Yamasani2016-02-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | And ensure that the listeners are informed of app standby transitions that might occur during time changes. Fix for apps that sometimes don't have network access until reboot. Bug: 26488100 Change-Id: Ic342c188a6cd19faee88f50b2c6a342a6968cb23 (cherry picked from commit c465e71cdc401e1565c29a895a5c6d366ba5344c)
| * DO NOT MERGE ANYWHERE: UsageStats: Use new settings key idle_duration2 for ↵Adam Lesinski2016-02-243-4/+20
| | | | | | | | | | | | | | | | | | | | | | 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
| * DO NOT MERGE ANYWHERE: UsageStats: Fix issue where initializing data for ↵Adam Lesinski2016-02-242-35/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | first time would cause crash With the updated rolling window of stats for app idleness, we need to make sure it is populated before we initialize some defaults. Now that we look at older entries to figure out idleness, if those entries are in the future (due to time change), set them to the current screen on time. Bug:26504153 Change-Id: Ia22add0e8eaf0f137002bbe3e91d747fef5b7d69
| * DO NOT MERGE ANYWHERE: UsageStatsService: Fix app idle issue at rollover timeAdam Lesinski2016-02-241-4/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | App Idle queries are very frequent and so they only check in memory stats. However, in memory stats can be missing some entries, especially after a rollover, but also due to a larger bug fixed in master (too risky to take now). The fix is to do a deep query (reading older files from disk) and maintain a parallel cache of stats for app idle. That way the rolling window of data required to serve app idle queries stays in memory. Bug:26355386 Change-Id: I6a29bbc25214f6a3c2f24c8c079936e66f99e42e
| * Fix missing observer reply callbacksAmith Yamasani2016-02-162-0/+12
| | | | | | | | | | | | | | This was causing upto 2 seconds in user switching delay. Bug: 25813588 Change-Id: Icf23b021f134a8ccfa2dae470af02b2da7454acc
| * 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)
| * DO NOT MERGE: Use GregorianCalendar.add() when searching for next alarm.Dan Sandler2016-02-161-1/+1
| | | | | | | | | | | | | | | | | | Never attribute to malice that which is adequately explained by a bug, particularly one involving date math. Bug: 26326394 Change-Id: I3483ac102c678a8852565c8ea94c06e19b3f26d8 (cherry picked from commit 8d9aea8a1870ad83d9eccba1068a1685da5e96d0)
* | Lockscreen : Fix dead-zone in bottom areaDanesh M2016-04-201-1/+1
| | | | | | | | | | | | | | Use rawY for intercept calcualtion due to the dynamic height nature of the bottom area view. Change-Id: I5b217ca3c4f43559b9e50ec49f97a7307c03bcea
* | Revert "Lockscreen : Ensure window bounds change after view animations"Danesh M2016-04-202-25/+3
| | | | | | | | | | | | This reverts commit cc008494b68fe01fe7b1d78aea1d9e9f93172d06. Change-Id: Ib9141654196f97152837f44c62eb19a27ca693b7
* | Global actions: fix airplane mode switch for MSIMRoman Birg2016-04-181-18/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MSIM devices are not reporting state changes for SIM slots without SIMs, so when toggling airplane mode it would get stuck in the intermediate state because a phone state callback would never happen. Now we dynamically add phone state listeners for each active SIM slot. If there is no active SIM slot, we immediately fall back to the setting-based behavior. When a subscription update occurs (such as inserting or removing SIM cards, we'll reinitialize the listener and use the proper mechanism). Ticket: CYNGNOS-989 Change-Id: Ifa4f418dd11fda6f67ba31f3847bed225187b95c Signed-off-by: Roman Birg <roman@cyngn.com>
* | Lockscreen : Ensure window bounds change after view animationsDanesh M2016-04-182-3/+25
| | | | | | | | | | | | | | | | Changing window bounds when a view inside the window is performing animations, causes flickers. Ensure we change window bounds only after all the animations have completed. Change-Id: I2143d3d15cdfe660d864e1af902267b0903b2afa
* | SystemUI: don't crash with bad tilesRoman Birg2016-04-181-3/+11
| | | | | | | | | | | | | | If a tile doesn't provide resources, don't crash. Change-Id: I4ad7ea731d970cf62d47d0696a6c7ee078acf108 Signed-off-by: Roman Birg <roman@cyngn.com>
* | SystemUI: Move ADB_ENABLED to "Global"Michael W2016-04-181-2/+2
| | | | | | | | | | | | | | ADB_ENABLED is in Global since a while, correct occurences -> Reduces logspam Change-Id: I6fed6d63827179fe134e3ba150a20a3ba0a5202b
* | SystemUI: fix some qs tile race conditionsRoman Birg2016-04-182-84/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever setTiles() was called, we assumed all the tile animations had finished, but if the eager beaver had grabbed a tile and dropped it on the remove target before waiting for all the animations to complete, a lot of assumptions are broken and crashes happen. Mainly because tiles aren't removed from pages and we try to add them to a different page (like if they needed to be placed a page back). Implemented cancel for ongoing animations, which we call whenever setTiles comes in. So all tiles should be in their proper state before we try to cache/re-add them. Also cleaned up and documented setTiles(). Also, don't try to place the edit tile in the proper place, just add it to the list if it's not present. Ticket: CYNGNOS-2472 Change-Id: I5c066abbc16f1fe7173525ea6a8a8b39460461ae Signed-off-by: Roman Birg <roman@cyngn.com>
* | SystemUI: Fix nav bar transparency when enabling software keysRaj Yengisetty2016-04-182-7/+19
| | | | | | | | | | | | | | | | | | | | Repro: - Boot device with hardware keys - Go to Settings -> Buttons and enable on-screen nav bar - Press home - Observe launcher now does not have transparent nav bar Change-Id: I49d04384b72b02ecb432be650d46e136c982a3bd
* | Automatic translation importMichael Bestas2016-04-1631-23/+3294
| | | | | | | | Change-Id: Ib87e41106982b159d249ebbe0653e569f9c7b454
* | SysUI: Fix reporting of swipe progess in notification paneld34d2016-04-152-1/+9
| | | | | | | | | | | | | | | | | | | | | | SwipHelper only uses half of the child views width for determining swip progress. This patch adds a new member variable that can be changed via a setter. The default is the constant value that was used prior to this patch so that it does not affect notifications that also use the SwipeHelper. Change-Id: Ie19ab812bed2248dbc842294a8dc4b5f6520efb8 TICKET: CYNGNOS-2485
* | SettingsLib: Add back accidentally removed translationsMichael Bestas2016-04-15156-0/+10686
| | | | | | | | | | | | * These were removed in r22 merge Change-Id: I1e0b4e910b8a9a86733be4b66516a003115a6c45
* | systemui: Remove LiveDisplay tileSteve Kondik2016-04-14199-1322/+0
| | | | | | | | | | | | * Moving to dynamic. Change-Id: I7c886139f11f18f2227ad0e7dd7e0f2d949fbda5
* | LockPatternUtils: Use the actual user id to set pattern sizeScott Mertz2016-04-143-12/+12
| | | | | | | | | | Ticket: CYNGNOS-2462 Change-Id: Ia68e26ec2dfc23317135d933bc25204c1380bb02
* | LockSettingsStorage: migrate user pattern size to correct useridRoman Birg2016-04-141-0/+11
| | | | | | | | | | | | Ticket: CYNGNOS-2462 Change-Id: I552533458ea16976e8670b47d7f0a53ae0df9703 Signed-off-by: Roman Birg <roman@cyngn.com>
* | LockSettingsStorage: fallback to cm legacy gesture fileRoman Birg2016-04-141-1/+12
| | | | | | | | | | | | Ticket: CYNGNOS-2462 Change-Id: I8780799ae00236aa8e482c2496c07cb503d07102 Signed-off-by: Roman Birg <roman@cyngn.com>
* | SettingsProvider: move SYSTEM_PROFILES_ENABLED to CMSettingsRoman Birg2016-04-141-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When upgrading from 12.1 -> 13.0, we end up losing this setting because we forward all calls for that setting directly to the CMSettings table, which would not have a default set. Most of the code assumes profiles are on by default. So if the user had profiles disabled (and potentially in a state they were unaware of), the upgrade could cause some pains as it would ignore their old setting. Ticket: OPO-620 Change-Id: I2b645dc9422fe15daf62d89e77b3e1429c668c04 Signed-off-by: Roman Birg <roman@cyngn.com>
* | Lockscreen : Update shortcuts in onAttachWindowDanesh M2016-04-142-3/+20
| | | | | | | | | | | | | | Since KeyguardBottomAreaView is a window and gets detached/attached frequently, we need register in onAttach as well. Change-Id: Ibfc9b20fc3fae4bfcc1b2fe98b138d5725fd98c3
* | Lockscreen : Ensure we hide bottom area in bouncerDanesh M2016-04-142-4/+5
| | | | | | | | | | | | | | | | Since the bottom area lives in its own window, ensure we hide it when the bouncer is showing to avoid overlaps. CYNGNOS-2422 Change-Id: I465d24c9d64e67213ce2dff83f17625c490684f6
* | Race in WapPushManager under multi-thread environmentchao.bi2016-04-141-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When multiple threads call WapPushManager functions simultaneously, it might hit race that one thread is closing a SqliteDatabase object while another thread is using it. Following is an example: Thread A Thread B call getDatabaseLocked() --- | | mDatabase is NULL,so A create Database --- | | getDatabaseLocked() return the new --- created Database --- | | --- call getDatabaseLocked() and return --- the Database created by A | | Call SQLiteDatabase.close() --- close() -> releaseReference() --- the reference count is decreased to 0 --- | | --- Attempt to call any operation of Database --- Object, but hit exception because this --- Database Object's reference count is 0 For WapPushManager, seems it always close the database object right after it open&query it, this is not necessary and would hit above race under multi-thread environment. Change-Id: I68fac046f806c8d9328fbe0d9c8a08e6bfddbef1 Signed-off-by: wangbo3 <bo.c.wang@intel.com> Signed-off-by: chao.bi <chao.bi@intel.com> Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
* | Correct MediaAudioTrackTest testPlaybackHeadPositionAfterStopJimmy Dalqvist2016-04-141-3/+9
| | | | | | | | | | | | | | | | | | | | | | When calling AudioTrack.stop the system needs some time to stop the audiotrack and set the position to 0. The current sleep time of 100ms is not enough. Update the test to use the same strategy as the CTS test, which is to call getPlaybackHeadPosition multiple time before giving up and failing the test. Change-Id: Ie938929c009c41e101782b4a46ac01a0aa73ee34
* | packagemanager: Fix bootloop if packages.xml is deletedSteve Kondik2016-04-131-4/+9
| | | | | | | | | | | | | | * Deleting packages.xml will cause a lot of carnage due to an NPE here. Try to handle it. Change-Id: I7ad47f23c3ff62116243374f0cb1e02e393d4cd1
* | 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
* | Check for deprecated third party keyguard permd34d2016-04-131-5/+20
| | | | | | | | | | Change-Id: I0f50bc8d92e879e587a33c46506c320ac94b2216 TICKET: CYNGNOS-1705
* | livedisplay: Moving LiveDisplay to CMSDKSteve Kondik2016-04-13105-1535/+32
| | | | | | | | | | | | | | * Remove all LiveDisplay-related code from the framework, and update the QS tile for the new API. Change-Id: I41c04a254afa91c0ed26c050362b63049d489fba
* | GlobalActions: Always use setZenModed34d2016-04-121-15/+15
| | | | | | | | | | | | | | | | | | | | | | When set to silent mode, the user cannot change the ringer mode to vibrate or ring. Notification manager listens for changes to the zen mode setting and will switch it back if there is a mismatch. Using INotificationManager.setZenMode takes care of changing the mode and keeping track of the updated change. Change-Id: I5139a9a8cde4ca59f64bd21cf7c184d4745a7d59 TICKET: CYNGNOS-2417 BACON-4658
* | SysUI: Deprecate collapseNotificationPanel [2/2]d34d2016-04-121-13/+0
| | | | | | | | | | Change-Id: I547a57d3c66bb488ac30efa3ce6bda458e0e66e6 TICKET: CYNGNOS-2392
* | SystemUI: fix double tap power launching custom lockscreen iconRoman Birg2016-04-121-1/+2
| | | | | | | | | | | | | | Ticket: RM-232 Change-Id: I2ddf9fce55e9deb9cdf70416f0ed2ee5ce6ce225 Signed-off-by: Roman Birg <roman@cyngn.com>
* | SystemUI: remove extraneous debug logRoman Birg2016-04-111-1/+0
| | | | | | | | | | Change-Id: Ied439b3088bc4a68132183cef924b97d7e05b5e2 Signed-off-by: Roman Birg <roman@cyngn.com>
* | Incorrect evictor key in TokenCacheYou Kim2016-04-111-4/+6
| | | | | | | | | | | | mTokenEvictor uses a Pair<> of account type and token as a key. Change-Id: Ia24eb6bdbf183d82e189a74624322e3ba71cbad7
* | SystemUI: add closed all tasks event logRoman Birg2016-04-111-0/+1
| | | | | | | | | | | | | | Ticket: CYNGNOS-2391 Change-Id: I9966121a11969455d51699bbbdc7138d5411292a Signed-off-by: Roman Birg <roman@cyngn.com>
* | SystemUI: add RecentsView EventLogsRoman Birg2016-04-112-0/+17
| | | | | | | | | | | | Ticket: CYNGNOS-2391 Change-Id: Iec202e9f764fce85eaa4ddff7c8f311146b00229 Signed-off-by: Roman Birg <roman@cyngn.com>
* | SysUI: reset mCanDismissKeyguard in setBarStated34d2016-04-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | This patch ensures mCanDismissKeyguard is in the correct state when setBarState is called, which fixes issues with bouncer showing when calls come in or an alarm goes off. This also seems to fix an issue where the bouncer is not shown when fingerprint authenticiation is used for the first time on boot. Change-Id: Ie19fd501b334d4faee14f1ddeb101cbec2515440 TICKET: CYNGNOS-2400 NIGHTLIES-2767
* | media: Add flags, channelMask, and UID to audio session callbacksSteve Kondik2016-04-082-6/+8
| | | | | | | | | | | | | | * This is to allow us to implement more sophisticated logic in the application on when to apply effects to a stream. Change-Id: I2931daa1546591e18d98acc91775c1fdafa3d453
* | SysUI: Add event logs for live lock screen interactionsd34d2016-04-084-3/+62
| | | | | | | | | | Change-Id: I998ae96e9ae2047e37cee74e88ee2f3185d31755 TICKET: CYNGNOS-2380
* | Lockscreen target fixesDanesh M2016-04-074-5/+8
| | | | | | | | | | | | | | | | | | | | - Ensure icon's raw screen coordinates are used to calculate intersection. - Ensure we expand/collapse when running hint animation for unlock due to bounce. - Ensure we don't animate window bound changes. Change-Id: Id18e2237c1ce9bfb2bcaa669934a4b3af4341521