Commit Graph

49925 Commits

Author SHA1 Message Date
Sunny Goyal 58f3b03072 Merge "Some optimizations in blur outline generator" into ub-launcher3-calgary-polish
am: f2d363f670

Change-Id: I1e0547f07c7b3115f1ef2932ceb283c2a801dffb
2016-09-02 19:18:27 +00:00
Sunny Goyal 4240337e7f Fixing broken accessibility drag
am: 9be9936653  -s ours

Change-Id: I784cd756542cb5712a7e94bbc2166ddaf35236aa
2016-09-02 19:18:26 +00:00
Sunny Goyal 01e7819dd9 Some optimizations in blur outline generator
am: f28e6afafd

Change-Id: I135810c233d64d4a6fdc14c3b3dc913117c6ffc9
2016-09-02 19:18:26 +00:00
Sunny Goyal 0ab0175ded Merge "Fixing overlay scroll state not getting reset properly when scrolling is was cancelled" into ub-launcher3-calgary
am: 7bc4b5bcd4

Change-Id: Ic1a2af3400e49168f37fc89f3cf84bdd60300fd7
2016-09-02 19:16:29 +00:00
Sunny Goyal e7eb774a60 Fixing overlay scroll state not getting reset properly when scrolling is was cancelled
am: 538b54c467

Change-Id: Ie03ceb66e211e1e961724b7e94cd6519a2a0012d
2016-09-02 19:16:28 +00:00
Hyunyoung Song 24b12143ac Landscape container padding update. b/30021487
am: 6cf1e0f36b

Change-Id: I547443f09702d054f4a60c3ed95570b76bb85193
2016-09-02 19:16:28 +00:00
Sunny Goyal f2d363f670 Merge "Some optimizations in blur outline generator" into ub-launcher3-calgary-polish 2016-09-02 19:15:59 +00:00
Sunny Goyal 171fbdbc10 Merge "Blocking alpha animation if the initial and final state for the animation are both 0" into ub-launcher3-calgary 2016-09-02 19:14:55 +00:00
Sunny Goyal dbbb1fee90 Merge "Bug fix in Alarm where it was not getting called correctly if the new timeout was set that was smaller than the previously set timeout" into ub-launcher3-calgary 2016-09-02 19:14:39 +00:00
Sunny Goyal d9033f3ae1 Merge "Fixing broken accessibility drag" into ub-launcher3-calgary 2016-09-02 19:13:56 +00:00
Sunny Goyal 7bc4b5bcd4 Merge "Fixing overlay scroll state not getting reset properly when scrolling is was cancelled" into ub-launcher3-calgary 2016-09-02 19:13:06 +00:00
Sunny Goyal 842101c400 Fixing topView not being considered in all places when calculating accessible and focusable views
am: 52851aa3fd

Change-Id: I4ab189d43bb30b2a7271d9b62ad6589753ce46aa
2016-09-02 18:38:08 +00:00
Sunny Goyal 6f2bb1ada5 Bug fix in Alarm where it was not getting called correctly if the
new timeout was set that was smaller than the previously set timeout

> Using uptimeMillis in Alarm to avoid errors due to system time
changes
> Adding an extra check in Wait in case Thread.sleep eats up
all the timeout

Change-Id: Id1fac5e8fdb81a0c3c7a6a5e50586b2a2f180d06
(cherry picked from commit a2125e1d10)
2016-09-02 18:28:20 +00:00
Sunny Goyal 9be9936653 Fixing broken accessibility drag
> Allow touch events on hotseat while in accessible drag as drag now
happens in spring loaded state.
> Allow drop target buttons to ignore thershold check when in
accessibility drag

Bug: 30900444
Change-Id: I88274367983fc027b2ddde3a719ca943f4f48587
(cherry picked from commit 4583d09c05)
2016-09-02 18:26:33 +00:00
Hyunyoung Song 6cf1e0f36b Landscape container padding update.
b/30021487

Change-Id: I179825eba09f3c4c57175e8f6da49708dae1931c
(cherry picked from commit 9d96fd5790)
2016-09-02 18:24:58 +00:00
Sunny Goyal f28e6afafd Some optimizations in blur outline generator
1) Using ALPHA_8 as the start and end bitmap. This removes one extra
   bitmap generation step
2) Using ByteBuffer on ALPHA_8 bitmap for clipAlpha. This allows us
   to use byteArray instead of intArray for representing pixels

Change-Id: I1b654c439fd491b6b91180ddc562bb97fad857aa
2016-09-02 11:23:49 -07:00
Sunny Goyal 538b54c467 Fixing overlay scroll state not getting reset properly when
scrolling is was cancelled

Bug: 30834333
Change-Id: I3605cd2dd939057905d297b5a25ce8669d578125
(cherry picked from commit 4ff424abf9)
2016-09-02 18:12:48 +00:00
Sunny Goyal 62e7518359 Blocking alpha animation if the initial and final state for the animation
are both 0

Bug: 30739854
Change-Id: I4f7c579dc3f64a4fed60d7b2f8ecd5f359e165ec
(cherry picked from commit bf206123a8)
2016-09-02 18:11:38 +00:00
Sunny Goyal c2936bcbdb Moving AppsAvailabilityCheck into a separate class
Change-Id: Ieea1b5100d63752d928049ad9b1d3b4f84234f0d
2016-09-02 11:06:18 -07:00
Sunny Goyal 52851aa3fd Fixing topView not being considered in all places when calculating accessible
and focusable views

Bug: 30563273
Change-Id: I6253ce33ee5c328efdde2ea733029975b31e5eb8
2016-09-02 10:52:07 -07:00
Sunny Goyal 8035200652 Some drag and drop code refactor:
am: 94b510cc68

Change-Id: I2e6e8eaf8c972a6261ec54c322753a1c76f8bc95
2016-09-02 17:23:04 +00:00
Sunny Goyal 94b510cc68 Some drag and drop code refactor:
1) Adding DragOptions to easily extend drap functionality
2) Changing onDragStarted signature to send more information
3) Updating states for dropTargetButton based on drag event directly
4) Removing folder item based on onDragStarted and not startDrag

Change-Id: I65b684e092ddc081d086bfe2c8c1973ed170eaeb
2016-09-01 15:55:13 -07:00
Hyunyoung Song 18e86339c1 Merge "Support user event logging for drag and drop b/30039490" into ub-launcher3-calgary-polish
am: 61bcfba335

Change-Id: I380cbe6c3797e1890cf18d0ea6ab62efeba9fa48
2016-09-01 21:58:24 +00:00
Hyunyoung Song c56401f91d Support user event logging for drag and drop b/30039490
am: 59a238095e

Change-Id: Ic4dd4acc74f82867874bb879dd7ff1033f76d5d4
2016-09-01 21:58:24 +00:00
Hyunyoung Song 61bcfba335 Merge "Support user event logging for drag and drop b/30039490" into ub-launcher3-calgary-polish 2016-09-01 21:51:25 +00:00
Hyunyoung Song 59a238095e Support user event logging for drag and drop
b/30039490

Supported in this CL:
- DnD: drag from container [WORKSPACE|HOTSEAT|FOLDER|ALLAPPS|WIDGETS|DEEPSHORTCUTS]
       drag to container [HOTSEAT,WORKSPACE,FOLDER,DROPTARGETS]
- Source and target can be [FOLDER_ICON, ICON, DEEPSHORTCUT, WIDGET]
- $ adb shell setprop log.tag.UserEvent DEBUG will turn on debugging

Change-Id: I0b8b879b80e6dce85bbde6e7794f9e0677832603
2016-09-01 12:47:12 -07:00
Sunny Goyal c92551f495 Merge "Removing some reflection code" into ub-launcher3-calgary-polish
am: 3cc2d8b3dd

Change-Id: Iaa5006ef94524cf6e1e0ec71b1d3afdbea021509
2016-09-01 18:55:42 +00:00
Sunny Goyal 19ef59fdf3 Removing some reflection code
am: e2ec8a3cd5

Change-Id: I4b71a6fa63e16324c8b6c70812827db81d62b443
2016-09-01 18:55:42 +00:00
Sunny Goyal d6ac368bde Unifying toString() method for various ItemInfo subclasses
am: 1edab71d01

Change-Id: Ie113b17062c85503589d9bcd289fb184ed65ea54
2016-09-01 18:55:41 +00:00
Sunny Goyal 3cc2d8b3dd Merge "Removing some reflection code" into ub-launcher3-calgary-polish 2016-09-01 18:48:28 +00:00
Sunny Goyal e2ec8a3cd5 Removing some reflection code
Change-Id: I8a0a707d69999e5f9911e7d8df7d4a659b3dfb8f
2016-09-01 11:01:05 -07:00
Sunny Goyal 1edab71d01 Unifying toString() method for various ItemInfo subclasses
Change-Id: I7cde42f0df412e2877fb93c77e74ee56a25edead
2016-09-01 10:55:45 -07:00
Sunny Goyal 8f731faf33 Splitting some methods into individual compat classes
am: 35908f9e67

Change-Id: I52bcc43c3c8978df9cb6414784c4bc96da2de9cf
2016-08-31 22:46:24 +00:00
Sunny Goyal 35908f9e67 Splitting some methods into individual compat classes
Change-Id: Id5a2650b290367d1574eb56346beca389900596b
2016-08-31 14:33:27 -07:00
Sunny Goyal cf6072bd10 Merge "Adding isDemoUser method in userManager" into ub-launcher3-calgary-polish
am: 45b9fd280a

Change-Id: Icd30776efee4fe9cf74c06980d6bca6024b957c6
2016-08-31 20:47:46 +00:00
Sunny Goyal 12f56b8ab9 Adding isDemoUser method in userManager
am: b5bf3e6cee

Change-Id: Id59e1b1a543b96f17253133acf0cd42ea9be17f2
2016-08-31 20:47:46 +00:00
Sunny Goyal 45b9fd280a Merge "Adding isDemoUser method in userManager" into ub-launcher3-calgary-polish 2016-08-31 20:39:53 +00:00
Sunny Goyal b5bf3e6cee Adding isDemoUser method in userManager
Change-Id: I0ad2c0e7bfac5eff5e5c95c3e533840921a67dc3
2016-08-31 13:12:54 -07:00
Hyunyoung Song cbb55d038a Merge "ComponentName null check MUST proceed before creating ComponentKey." into ub-launcher3-calgary-polish
am: c8b997a21c

Change-Id: Ic13a75cdf4df956c6544dd1a168d1d37fbefb6c4
2016-08-31 18:57:38 +00:00
Hyunyoung Song aba5262022 ComponentName null check MUST proceed before creating ComponentKey.
am: d3bf9803f5

Change-Id: If723a18616d444ea51ca054f226318bfdcce4429
2016-08-31 18:57:38 +00:00
Hyunyoung Song c8b997a21c Merge "ComponentName null check MUST proceed before creating ComponentKey." into ub-launcher3-calgary-polish 2016-08-31 18:30:00 +00:00
Sunny Goyal 478730453c Preventing unnecessary setLayout calls in workspace Separating getSystemProperty in a separate method
am: dfc8b6685b

Change-Id: I7cb0a1d38895351a70979b95b990a36261753de5
2016-08-30 23:18:48 +00:00
Tony Wickham 12624a5a17 When shortcuts close, only set text visible if not in hotseat.
Bug: 31195155
Change-Id: I3ee6f45f1dd421fcad6ed22b444efd2922b0a32b
(cherry picked from commit e53abfa993f94dea119d99221ea5bbdba87303cb)
2016-08-30 23:12:57 +00:00
Sunny Goyal dfc8b6685b Preventing unnecessary setLayout calls in workspace
Separating getSystemProperty in a separate method

Change-Id: I88716e796e29ac27ef25afa41077a8f29eb65f25
2016-08-30 14:06:51 -07:00
Sunny Goyal b501cf2724 Merge "Bug fix in Alarm where it was not getting called correctly if the new timeout was set that was smaller than the previously set timeout" into ub-launcher3-calgary-polish
am: 0a6dde7265

Change-Id: I9a88426d472b117a300d2f543720b8e52b3e2ded
2016-08-30 18:55:34 +00:00
Sunny Goyal 88dcd16a2a Bug fix in Alarm where it was not getting called correctly if the new timeout was set that was smaller than the previously set timeout
am: a2125e1d10

Change-Id: Ib67b5fffb698dedf03a936d652a12f053027a902
2016-08-30 18:55:32 +00:00
Sunny Goyal 0a6dde7265 Merge "Bug fix in Alarm where it was not getting called correctly if the new timeout was set that was smaller than the previously set timeout" into ub-launcher3-calgary-polish 2016-08-30 18:47:48 +00:00
Sunny Goyal a2125e1d10 Bug fix in Alarm where it was not getting called correctly if the
new timeout was set that was smaller than the previously set timeout

> Using uptimeMillis in Alarm to avoid errors due to system time
changes
> Adding an extra check in Wait in case Thread.sleep eats up
all the timeout

Change-Id: Id1fac5e8fdb81a0c3c7a6a5e50586b2a2f180d06
2016-08-30 11:04:25 -07:00
Tony Wickham 1829f29333 Use promisedIntent instead of intent when deep shortcuts are restored. am: def6e474da
am: aa806a4f48

Change-Id: Iaf14c80751de7630a68837b6e388dbc68e254ecb
2016-08-30 00:24:57 +00:00
Tony Wickham aa806a4f48 Use promisedIntent instead of intent when deep shortcuts are restored.
am: def6e474da

Change-Id: I634bb0b13cb2449da159b4c8d23b4ddcf32f09ac
2016-08-30 00:20:57 +00:00