summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/qs
Commit message (Collapse)AuthorAgeFilesLines
* SystemUI: don't automatically disable compass tileRoman Birg2016-07-251-5/+6
| | | | | | | | | Persist the user state until they disable it. Ticket: CYNGNOS-3135 Change-Id: I9956f78419e94cc63b6a6ecabd28075a32192c2a Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: add themes dynamic tiles iconRoman Birg2016-07-081-4/+5
| | | | | | | | | | 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>
* 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>
* SystemUI: fix NFC tile sometimes hidingRoman Birg2016-06-101-28/+63
| | | | | | | | | | | | | - Check whether NFC is supported based on device features - Don't hold a reference to the NFC adapter - query it when we need it (not using getDefault, but the internal method, if we use the default, querying for the adapter before the service was spun up would lead to systemui never having a valid refernce to an adpater). Ticket: CYNGNOS-1943, CYNGNOS-2866 Change-Id: Iba8b668406ca96183aafcf9a55d60c6d89d70061 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: improve layout of qs detail panelRoman Birg2016-05-243-43/+29
| | | | | | | | | | | | | | | Don't try to fit the detail views, but allow the user to scroll freely while detail view is showing and we are in landscape. The user can still fling up and down and the velocity flings are respected in the detail scroll lock mode. Hitting done will always return the user to the QS panel, or they can close the detail view manually. Ticket: FEIJ-201 Change-Id: Id8b16a682ba5cebdc57c0455d81aa38fd5e90cbd Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: Filter out unsupported values off perf profile tileLuK13372016-05-231-7/+28
| | | | Change-Id: I4409d1e9e7310530b47ac7d48db8c4796f0ae49e
* SystemUI: update qs tile hint and header view on locale changeRoman Birg2016-05-192-1/+11
| | | | | | | Ticket: CYNGNOS-2814 Change-Id: I305ac5eca862ffa5c525ec6b39bfeddf03719227 Signed-off-by: Roman Birg <roman@cyngn.com>
* 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
* QS: fix performance profile tile observerScott Mertz2016-05-131-1/+1
| | | | | | CYNGNOS-2837 Change-Id: I9a0f9febe22e046a1fb3297e6a4b3ab1f8fafa87
* 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>
* SystemUI: implement properly saving tile locationsRoman Birg2016-05-042-70/+119
| | | | | | | | | | | | Use new persisted key which does not use the tiles' ID (which changes usually across reboots with every tile). When the Custom tile service comes up, it will update the placeholder tiles created with their real values and the order is preserved properly. Ticket: CYNGNOS-2530 Change-Id: I5e75c739553969f1d92c249f521a476259fe0cd6 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: remember deleted custom tilesRoman Birg2016-05-032-3/+84
| | | | | | | | | | | | | | | We previously had no mechanism of knowing which tiles the user had manually removed, leading to the tiles returning when the publishing application decided it was time to update. Now, when the user removes a custom tile; set a flag and hide it in the tile list. The removed tiles will be enumerated in the Add tile detail view if the user decides they want it back. Ticket: CYNGNOS-2530 Change-Id: Ia4fe74ef580af7139279a2fb78e240e872f8dbb0 Signed-off-by: Roman Birg <roman@cyngn.com>
* 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-181-80/+175
| | | | | | | | | | | | | | | | | | | | | 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: Remove LiveDisplay tileSteve Kondik2016-04-141-213/+0
| | | | | | * Moving to dynamic. Change-Id: I7c886139f11f18f2227ad0e7dd7e0f2d949fbda5
* livedisplay: Moving LiveDisplay to CMSDKSteve Kondik2016-04-131-36/+26
| | | | | | | * Remove all LiveDisplay-related code from the framework, and update the QS tile for the new API. Change-Id: I41c04a254afa91c0ed26c050362b63049d489fba
* SystemUI: stop hiding hotspot & color inversion tilesRoman Birg2016-03-282-75/+8
| | | | | | | | | | | | | | | | These were hidden based on usage patterns to not clutter up the initial dropdown with a bunch of tiles the user may not user. Since we allow configuration of the tiles, the tile pages are limited in height, and it doesn't really fit in with our edit tile scheme, let's always show these tiles. The user can hide them if they need. This provides for a more consistent experience when hitting "edit tiles." Change-Id: If4c1254d2200f260a1263658eab6761755420816 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: improve battery saver tileRoman Birg2016-03-212-11/+33
| | | | | | | | | | | | | | - Fix the tile not showing, the javadoc states that it will return 0 if profiles are not supported, but it was actually returning -1. - Now disables itself when the device is plugged in to reflect to the user that they cannot toggle it on right now. - Don't wait for power manager to update its internal state before updating the visual tile state. Change-Id: I8ab6adb2bfa728a242368294c1f066d468a86f09 Signed-off-by: Roman Birg <roman@cyngn.com>
* Cast Tile: only scan while in detail viewRoman Birg2016-03-161-1/+2
| | | | | | | | Small optimization, otherwise we'd scan until the user closed the status bar. Change-Id: I8d9d933287e0225a8557a7aec06eb60392464fa7 Signed-off-by: Roman Birg <roman@cyngn.com>
* Prompt permission dialog for status bar weatherDanesh M2016-03-142-3/+77
| | | | | | CYNGNOS-2222 Change-Id: I435b1badbc5949cb0bc76050a67e212d519c466a
* SystemUI: Improve string in data capable, not selected scenario.Adnan Begovic2016-03-091-4/+10
| | | | | | | | | | If a user hotswaps out their SIMs on a multisim device, the default data sim can be in an "unset" state. Since this is a possible scenario, its better to show that no data sim is selected vs no sims being available. Change-Id: I1e077883472a5037f38f97e6d15afe504f787e6a TICKET: CYNGNOS-2211
* HotSpot: Store # of connected clients in receiverd34d2016-02-291-3/+5
| | | | | | | Get the number of connected clients in onReceive and cache the value to be used in handleUpdateState Change-Id: I011a13e186c1fa9976df58a4ad1603e6c0cd6bbb
* SystemUI: reset tile page after inactivityRoman Birg2016-02-251-30/+19
| | | | | | | | | | Reset the quick settings page back to the first page when the user hasn't expanded their statusbar for 10s. Ref: CYNGNOS-2132 Change-Id: Ia195f8c85c8e399ab5e4808fe0ccc343853a1577 Signed-off-by: Roman Birg <roman@cyngn.com>
* QS: Show # of clients connected to hotspotd34d2016-02-221-1/+28
| | | | | | | | Since we no longer post a notification showing that the wifi hotspot is on and the # of connected clients, we now show the # of clients connected in the label of the hotspot QS tile. Change-Id: I9ed37b96db9b5b4320a7260524f69733ea70d030
* Show SIM card settings in MSIM devicesLuis Vidal2016-02-191-6/+13
| | | | | | | | | | | Fix to show the SIM card settings when QS network tile is long pressed. This patch also ports commit d427e02 from cm-12 to prevent showing mobile network options for seconday users Change-Id: I6c94fda5d2de0aa26285bd7d14b7dceac044bf41 TICKET: CYNGNOS-2052
* SystemUI: fix screentimeout tile icon disappearingRoman Birg2016-02-191-10/+0
| | | | | | | | | | | While going away from the detail view, sometimes it wasn't able to refresh it's state, resulting in the icon not showing and then appearing suddenly. Ref: CYNGNOS-2056 Change-Id: I9a634cc4c774c78dc7316619db446f4ea6c2c79f Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: add caffeine qs tile (1/2)Keith Mok2016-02-111-0/+202
| | | | Change-Id: I5d4aa97ae63fc0bcc40f0fa7d9305efbba091029
* update secure keyguard checkRoman Birg2016-02-111-4/+7
| | | | | | | | | | | | | We use this method to determine wither to allow profiles and the lock screen tile whether to allow messing with the lockscreen. Don't check whether the keystore is empty. Check whether we allow trust agents by DPM. And also make keyguard use this method to respect it. Ref: CYNGNOS-1930 Change-Id: I1a2b26419d43bd2bbc1d4a5027f1ed78d2744466 Signed-off-by: Roman Birg <roman@cyngn.com>
* Revert "DndTile: Always open the detailed view"Roman Birg2016-02-111-1/+1
| | | | | | | | | | | There is a CTS Verifier test which explicitly says "Please disable 'Do not disturb' by tapping the Quick Settings tile." This commit breaks this expectation. This reverts commit d77070c2c3c6bfc72f61fd0d48d15ba6f84cc49f. Change-Id: I55af2c8194307590f70b2114d6fe5273f5a74528 Ref: CYNGNOS-1979
* SystemUI: improve lockscreen tile behavior with profilesRoman Birg2016-02-081-27/+40
| | | | | | | | | | | | | Disable (grey out) the lock screen tile when a profile is already disabling it. Profiles takes precedence over the internal setting. Also simplify lockscreen disable logic - using a null'd Boolean without synchonization will lead to things falling out of place. Ref: CYNGNOS-1930 Change-Id: Ia4cb7926e418a4d72426be65e5bfb11dc44bee5e Signed-off-by: Roman Birg <roman@cyngn.com>
* LiveDisplayTile : Update entries on locale changesDanesh M2016-02-081-10/+14
| | | | | | YAM-21 Change-Id: I3abd262239fedf771b0b2ff38dadb42490f42432
* SystemUI: improve exiting edit mode from qs settingsRoman Birg2016-02-052-21/+39
| | | | | | | | | | | | | When the user hits done while in edit mode on the QS Settings page, the animation can be a little jarring to move to the first page while the brightness view slides into place. So let's immediately put the brightness view into its proper position when going out of editing mode on the settings page. Ref: OPO-425 Change-Id: I93794a94752978b1055911bbef19ee9f0d77bd3c Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: visually disable EditTile in lock screenRoman Birg2016-02-031-1/+1
| | | | | | | | | | It's unclear that the edit tile toggle will not be functional in the lock screen - reflect this by disabling the tile when on the keyguard. Ref: OPO-426 Change-Id: I9ec46402b8d63e012ca806bafa4c050fc0729ab8 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: nuke broadcast tile from user tile listRoman Birg2016-02-011-35/+3
| | | | | | | | | | Any app which is smart enough to mess with QS tiles has the ability to make their own broadcast tile. Ref: CYNGNOS-1814 Change-Id: I5553692b3ac4439c9c967a7209e6f687c7aef4f9 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: don't add already attached qs tile pagesRoman Birg2016-02-011-1/+3
| | | | | | | | | Check before adding the page to make sure we haven't yet added it. Ref: CYNGNOS-1644 Change-Id: I8b5d807a51152e3e6ce7a9a07cef728aa410e23e Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: smoother tile transitions when moving to 1st rowRoman Birg2016-02-013-38/+66
| | | | | | | | | | | | | When moving a tile to the first row, make sure not to do any extra work unless we actually changed dual states. Also no need to re-calculate the state. Animate all the things together. Ref: CYNGNOS-1644 Change-Id: Id462838633c22c67607d5bd94d0e0faee8ea3464 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: add better hints when trying to delete edit tileRoman Birg2016-01-292-12/+25
| | | | | | | | | | | | Add a clearer indication that the edit tile cannot be deleted via an animation. Animations by Asher Simonds. Ref: CYNGNOS-1644 Change-Id: I829faface9268cd2900533f8194bdfe58339420c Signed-off-by: Roman Birg <roman@cyngn.com>
* Wifi tile: don't set items visible from non-ui threadRoman Birg2016-01-271-3/+16
| | | | | | | | | This can lead to the items disappearing sometimes. Ref: CYNGNOS-1241 CYNGNOS-1644 Change-Id: Iea3e0467b56ae17f266c99b02866f8981b5007d7 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: improve tile caching mechanismRoman Birg2016-01-272-26/+42
| | | | | | | | | | | | | | | | | | | | | - Always remove all tile views before setting new tiles - Save and restore the viewpager page when setting tiles as we need to reset this page when we're done (after re-setting the adapter) - Reset the pager adapter to force page removes and fix ghost scrolling to non existent pages. - No need to set tiles to 0 while recreating status bar or switching themes - Always recalculate heights after switching brightness slider, and explicitly set the visibility on the slider too Ref: CYNGNOS-1644 OPO-367 Change-Id: Id08fbbcd38f24c16ee044c0d63389b36845c81b9 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: initialize drag panel with proper column countRoman Birg2016-01-251-5/+6
| | | | | | | | | Otherwise first layout can lead to awkward layout with two rows. Ref: CYNGNOS-1601 Change-Id: Ia80b1ea7dba282e695d2b967cc1d7ed876529618 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: handle when brightness slider is hiddenRoman Birg2016-01-255-86/+121
| | | | | | | | | | | | | | With this patch, the quick settings area should automatically expand and make room for the tile trashcan/instruction area when the user has the brightness slider hidden. Also adds a scrollview to the QS Settings page to allow the list to grow without impacting the height of the qs panel. Ref: CYNGNOS-1644 Change-Id: I03f552ec28a978c4cad1e7e7a52648ec3d311a07 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: Do not turn on Wifi hotspot in APM ModeShufeng Hou2016-01-231-0/+13
| | | | | | | Do not turn on hotspot in APM Mode and show clear alert message Change-Id: I3afcc92a93707e15cd436ebc1cffb74567443483 CRs-Fixed: 926474
* SystemUI: fix tiles per page when changing top tile typeRoman Birg2016-01-201-0/+1
| | | | | | | | | | | | | When toggling whether to enlarge the first two tiles, the tiles were retaining their previous pages and not properly moving to pages as necessary (cauaing the first page to have more tiles than there should be). Clearing out the tiles before to clear the states when the option is toggled will lay the tiles out properly. Ref: CYNGNOS-1644 Change-Id: I8f44faf4b9edf80418b24bea6f5906246be9ad07 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: fix viewpager page recyclingRoman Birg2016-01-201-2/+1
| | | | | | | | | | Can't add views to the index of the position of the page because that assumes all other pages are part of the view group. Ref: CYNGNOS-1644 Change-Id: I5e51d5561787ca0358a98cfd68c4a53d81117613 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: fix qs tile page regressionsRoman Birg2016-01-195-42/+122
| | | | | | | | | | | | | | | | | | | | | | - Hide QS tile toast message while adding tile - Don't allow scrolling right when on last page - The viewpager adapter is no longer responsible for actually creating the backing pages, so we can safely cache them and add/remove them as the viewpager sees fit. The pages will be permanently cached until a future call to setTiles() results in less tiles, and the page will be automatically cleaned up. - This also fixes no tiles after theme change - And resetting tiles too, custom tile listeners were interfering and overwriting the default tile values Ref: CYNGNOS-1644 Change-Id: Ibb43adb249b81601370ceab4a4873f91b34b5074 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: add some tile removal hintsRoman Birg2016-01-184-59/+87
| | | | | | | Ref: CYNGNOS-1644 Change-Id: I41e921c641f53a5870fb5685e2ef67060d613989 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: fix lock screen tile state refreshRoman Birg2016-01-181-12/+7
| | | | | | | | | | Now should instantly reflect the proper state after clicking. In certain situations it would not update immediately. Ref: CYNGNOS-1607 Change-Id: I97a5e3417f91315ca5d06a832fa799938981e284 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: handle custom tile long press PendingIntentsRoman Birg2016-01-181-1/+12
| | | | | | Ref: CYNGNOS-1602 Change-Id: I30dc09a48f7fcf7bcac85f173129c8bc04a10d37 Signed-off-by: Roman Birg <roman@cyngn.com>
* SystemUI: improve qs tile layout mechanismRoman Birg2016-01-181-121/+81
| | | | | | | | | | | | Previously we'd have a temp tile array which would hold tiles until we were ready to do the first layout pass which caused some funky layouts initially in specific cases. Get rid of the temp tile array and handle setting tiles in one pass. Ref: CYNGNOS-1601 Change-Id: Ibfa4994600c55ced80b8292cbefa9aa1f44971ae Signed-off-by: Roman Birg <roman@cyngn.com>