summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/compat
Commit message (Collapse)AuthorAgeFilesLines
* Making some shortcut manager calls protected by MR1 version checkSunny Goyal2016-06-233-156/+1
| | | | Change-Id: Ifdfa95a58aa18a825c1838c61055928dbe0ea3be
* Add support for launcher shortcuts.Tony Wickham2016-06-214-3/+181
| | | | | | | | | | | | | | | | | | | - This CL has no UI but provides the necessary backing for one. - Adds new item type: ITEM_TYPE_DEEP_SHORTCUT, to distinguish from ITEM_TYPE_SHORTCUT. We can reconsider these names. - Adds ShortcutCache, using LruCache for up to 30 dynamic shortcuts (pinned shortcuts are always cached in a HashMap). - DeepShortcutManager queries for shortcuts and other things like pin them. In a future CL it will use the cache, but for now it simply makes an RPC for all queries. - LauncherModel maintains counts for pinned shortcuts, pinning and unpinning when counts reach 1 or 0, respectively. - LauncherModel maintains a map of components to lists of shortcut ids, which Launcher gets a copy of after it is changed in the background. This will allow us to know how many shortcuts an app has immediately, and query for details as the UI is animating. Change-Id: Ic526f374dd10d72a261bae67f07f098fca8d8bca
* Adding android.icu.text.AlphabeticIndex implementation for AlphabeticIndexCompatSunny Goyal2016-05-181-102/+155
| | | | | | | as libcore.icu.AlphabeticIndex is no longer available in N Bug: 28795251 Change-Id: I3b168dfb451c0eac9b64c6559a51d2b1b8c578b9
* Removing dependency on getApplicationInfo method added in NSunny Goyal2016-04-074-76/+3
| | | | | | | This method is goiing away. We don't need this method anyway since LauncherActivityInfo already has the information Change-Id: Ic6afa1df14958b894925d730e01a2e2d2a6fb98c
* Listen on new broadcasts for profile changes.Rubin Xu2016-04-041-2/+4
| | | | | | | The change is due to API review comments on the platform side. Bug: 27532254 Change-Id: I44133fbb5c3ee13d0523a72b25d2e1c5d1eba6a0
* Instead of reloading the launcher, updating items dynamically whenSunny Goyal2016-03-241-0/+10
| | | | | | | Quiet mode changes Bug: 27632028,27763316 Change-Id: I55f018e855448df0abcbf4fd0fcb39344594980c
* Changing the widget loading strategySunny Goyal2016-03-093-0/+63
| | | | | | | | | Widget is loaded only when the user enters the overview mode and we keep the list updated as long as the user is in the overview mode. Once the user leaves the overview mode, we stop responding to widget updates Bug: 26077457 Change-Id: I9e4904b8f1300bfe0d77e2bc5f59aa6963fad8d1
* Merge "Prevent work profile widget DnD crash b/26079469" into ↵Hyunyoung Song2016-03-013-4/+10
|\ | | | | | | | | | | | | | | | | ub-launcher3-burnaby-polish am: 5cc55a143a * commit '5cc55a143a2ed35d6f2ac1fe57a4e8b3e26d47a0': Prevent work profile widget DnD crash b/26079469
| * Prevent work profile widget DnD crashHyunyoung Song2016-03-013-4/+10
| | | | | | | | | | | | b/26079469 Change-Id: I3d49ac498bbaaef8ca8a3051f5ab4b35ef771410
* | Respond to managed profile availabilty Intents.Kenny Guy2016-01-254-1/+66
| | | | | | | | | | | | | | Grey out applications when managed profile is not available. Change-Id: I9bb9442cd0b3d0d207062716bfd6b179e3ba8489
* | Grey out suspended applications.Kenny Guy2016-01-255-3/+83
| | | | | | | | | | | | | | | | Grey out application shortcuts and all apps entries for packages that are suspended. Bug: 22776761 Change-Id: I1b63da1816aca1de52b9f9bee62d1b162d0cdf4d
* | Fixing some invalid checks and cleaning some redundant conditionsSunny Goyal2015-12-181-3/+1
|\| | | | | | | | | | | | | am: b740f59c7d * commit 'b740f59c7d572d54402e3a74fb2a23c0f1b1af48': Fixing some invalid checks and cleaning some redundant conditions
| * Fixing some invalid checks and cleaning some redundant conditionsSunny Goyal2015-12-181-3/+1
| | | | | | | | Change-Id: I770ce2cc2eccbee105958634e81bbc9bc2e4cc48
| * Scaling down the icon before applying the user badgeSunny Goyal2015-11-257-26/+1
| | | | | | | | | | | | | | > This also saves memory only create one new bitmap while loading instead of two Bug: 25027252 Change-Id: Ia594dd65a30f32e99404190f649b334615c9e17f
* | resolve merge conflicts of 7bce5f7988 to ub-launcher3-master.Sunny Goyal2015-11-241-1/+0
|\| | | | | | | Change-Id: Id352ce219bed7701956bb462ea2dd0a5aebe7317
| * Tying LauncherAppState lifecycle with LauncherProviderSunny Goyal2015-11-241-1/+0
| | | | | | | | | | | | | | The content provider is the first component started with the main process, which makes it ideal for initiating LauncherAppState Change-Id: I03db82a8949ad1376af53a0033592f421dbf0b15
* | resolve merge conflicts of fe3db428ab to ub-launcher3-master.Sunny Goyal2015-10-201-3/+1
|\| | | | | | | Change-Id: Icc60a61f621fefe9db67b178921e62f7d72d7e5a
| * Refactoring getPreferenceKey methodSunny Goyal2015-10-201-3/+1
| | | | | | | | | | | | This method was returnning a constant and getting inlined by proguard. Change-Id: I87348e25b21483adc1b27d16f99dec4b73205701
* | Scaling down the icon before applying the user badgeSunny Goyal2015-10-197-26/+1
| | | | | | | | | | | | | | > This also saves memory only create one new bitmap while loading instead of two Bug: 25027252 Change-Id: Ia594dd65a30f32e99404190f649b334615c9e17f
* | am 5802588d: Merge "Update the widget spans after the provider changes" into ↵Sunny Goyal2015-10-081-2/+2
|\| | | | | | | | | | | | | ub-launcher3-burnaby-polish * commit '5802588dc067f69914a0adaaec1c15825f0e720d': Update the widget spans after the provider changes
| * Update the widget spans after the provider changesSunny Goyal2015-10-051-2/+2
| | | | | | | | | | Bug: 24003213 Change-Id: I51ad5919a808ef10385d62a48a94589eefcb06bc
* | am 93adff28: Merge "Using the usermanager api to get creation time" into ↵Sunny Goyal2015-08-211-1/+4
|\| | | | | | | | | | | | | ub-launcher3-burnaby * commit '93adff28ed9b6bf06eba97c1266b3fb911eca6a0': Using the usermanager api to get creation time
| * Using the usermanager api to get creation timeSunny Goyal2015-08-211-1/+4
| | | | | | | | | | Bug: 22539048 Change-Id: I17647f2456434ca66a9778300e1a2910cec171d4
* | resolved conflicts for merge of 9fc953b9 to ub-launcher3-masterSunny Goyal2015-08-177-14/+15
|\| | | | | | | Change-Id: Ia3e845a2e336c846cceefdc2d1e8c6786753f1b1
| * Version code cleanupSunny Goyal2015-08-177-14/+15
| | | | | | | | | | | | | | | | > Renaming Lmp to Lollipop > Lollipop_MR1 instead of directly using 22 > Using M APIs directly instead of reflection Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
* | am a2a039b6: Using a reverse hashmap instead of indexOfValue in userManagerSunny Goyal2015-08-072-11/+22
|\| | | | | | | | | * commit 'a2a039b66f05a1164f954387b1c12a8fb4063e92': Using a reverse hashmap instead of indexOfValue in userManager
| * Using a reverse hashmap instead of indexOfValue in userManagerSunny Goyal2015-08-052-11/+22
| | | | | | | | | | Bug: 22980139 Change-Id: I87b633d194ff4e1529dd679dc02da573ed374207
* | am 7ca3250a: Merge "Creating a cache of users to avoid multiple calls to ↵Sunny Goyal2015-08-074-6/+74
|\| | | | | | | | | | | | | UserManager" into ub-launcher3-burnaby * commit '7ca3250a10d608c06a733a92cd61a2feadb9007f': Creating a cache of users to avoid multiple calls to UserManager
| * Creating a cache of users to avoid multiple calls to UserManagerSunny Goyal2015-08-044-6/+74
| | | | | | | | | | Bug: 22805101 Change-Id: I9cd270efd74fdd34a7eb738fc25797e6f1bf2487
* | Removing boot receiver.Sunny Goyal2015-07-161-0/+2
|/ | | | | | | | > Registering the receiver at runtime, only when it is required > Using system property sys.boot_completed to check if boot completion > This prevents unnecessary process startup during system bootup Change-Id: I68f99ecf2e1ffd2ca7b6d15a99a282451bf67aec
* Merge "Deleting empty folders based on DB state" into ub-launcher3-burnabySunny Goyal2015-06-182-2/+2
|\
| * Deleting empty folders based on DB stateSunny Goyal2015-06-122-2/+2
| | | | | | | | | | | | | | | | | | > Previously folders were getting deleted based on in-memory loader state. If for some reason, an item failed to load, we would delete the folder from DB as well. Bug: 21354058 Change-Id: I5318ee8a99afa9cafd93ed2b9ef0e155f502a41b
* | Making UserHandleCompat constructor publicSunny Goyal2015-06-161-1/+1
| | | | | | | | Change-Id: Ied4c62964e608d543f0bcf3b232c0df7b57bdf5d
* | Work profile badge alignmentHyunyoung Song2015-06-152-6/+7
|/ | | | | | b/21336417 Change-Id: Icd54320fa0d0976cac0ae66d180cc2c99ddd0c1c
* Merge "Place the work profile badge in the correct bottom right (left for ↵Hyunyoung Song2015-05-153-4/+6
|\ | | | | | | RTL) location" into ub-launcher3-burnaby
| * Place the work profile badge in the correct bottom right (left for RTL)Hyunyoung Song2015-05-143-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | location Also: - clean up of some code - remove requestLayout() method call that is not needed. b/20338602 Change-Id: I65e0e1ac40da2e3fa85af4d3aca54bed3f200a99
* | Various lint error fixes.Sunny Goyal2015-05-147-9/+18
|/ | | | | | | | > Fixing some RTL errors by specifying both marginStart and marginLeft > Moving all layout direction checks to Utilities > Explicitely adding @TargetApi before every method Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
* Tweaking section processing for different languagesWinson Chung2015-05-121-4/+23
| | | | | | | | | | - Ensuring that apps with non-letter/digit characters are ordered last in the misc bucket - Removing duplicate latin-alphabet sections for Simplified Chinese - Adding more appropriate misc bucket label for Japanese Bug 21022854 Change-Id: I62c7b219820ef88787fcfa83f1bd4202f16f9c0c
* Trim all whitespace from titles and labels.Winson Chung2015-05-082-4/+6
| | | | | | Bug: 20953160 Change-Id: I1610df5e445a4139522226f68fa6439926bc70c6
* Fixing missing updates in package install sessionsSunny Goyal2015-04-223-273/+39
| | | | | | | | | | | | > Ensure icon cache never returns null icon > Enabling install shortuct receiver only after workspace has finished binding > Making all the model changes for package installs on worker thread and only posting the updaes on the UI > Making shortcut exists check on the loaded items and not on the DB > Explicitely using worker thread for PckageInstallListener > Removing backward compatibility support from PackageInstallerCompat Change-Id: I9592771b9670c1c1c84c8208cae8dafa7b393e65
* Automatically adding managed profile shortcuts to homescreen.Sunny Goyal2015-04-103-1/+25
| | | | | | | | | | | | When the managed profile is created, a "Work" folder is created and added to the homescreen. All work profile apps are added to this folder and icons for subsequent installs (withing a fixed time frame) are automatically added to this folder. If this folder get deleted or the time-frame expires, icon for any new install is placed on the homescreen. Bug: 17410319 Change-Id: I49f4e437707d5eabe4eec85320765bf6ba7fde97
* Deduping shortcuts to app-shortcuts if they have a valid intentSunny Goyal2015-04-101-0/+9
| | | | | | | > Only deduping shortcuts for the primary user as custom shortcuts for secondary users is not supported. Change-Id: If129dee64a395602006ebb996d4b09b93b89084f
* Check the code point instead of the character when determining digit sections.Winson Chung2015-03-241-1/+1
| | | | Change-Id: Ie21fda92ca5097cc9deb7c59001b61dc44603d4b
* Reducing method count by eliminating synthetic accessorsAdam Cohen2015-03-202-7/+10
| | | | | | | | | | | Elimates 304 methods based on dex analysis The java compiler generates sythetic accessor methods for all private fields, methods and contructors accessed from inner classes. By marking them package-private and @Thunk instead, sythentic accessor methods are no longer needeed. These annotated elements should be treated as private. Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
* Minor changes to apps view.Winson Chung2015-03-131-4/+22
| | | | | | | | - Ensuring that apps with numbers and in other locals have a section header. - Adding an empty state when there are no apps with the current filter - Removing unnecessary call to check AppInfos Change-Id: I9dc541c680475b98745fa257ad7e4af06e3966c9
* Adding app grid layout with fastscroller.Winson Chung2015-03-121-0/+131
| | | | | | - Adding filtering and using alphabetic index for app grouping. Change-Id: I745b644fa8f90f5ff24a8642ac377ef1c65d8aff
* Use ResolveInfo for label and icon for LauncherActivityInfoSunny Goyal2015-02-111-22/+23
| | | | | | | | Instead of using the ActivityInfo, use the ResolveInfo so that any label or icon specified on the intent-filter is used. Bug: 18482039 Change-Id: I87c0d9dba0754e3aa2c81727a9f60d789e5e8630
* Updating version codes from L to LOLLIPOPBrian Parfett2014-12-121-1/+1
| | | | | | | This is required so Launcher3 can compile within IntelliJ. Change-Id: I99a98a6d2326a8f8b0f0320430de9b555ea430c6 Bugs: b/18720914
* Supporting custom widgets provided by launcherAdam Cohen2014-12-053-15/+21
| | | | | | | -> This change provides integration for widgets provided by the launcher package which can run arbitrary code. Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42
* Moving methods which update internal sets on a separate threadSunny Goyal2014-10-301-7/+24
| | | | | Bug: 18152117 Change-Id: I5fccd203b5fe65e79dcc5aead6cb1cb6c3b622fe