Commit Graph

56362 Commits

Author SHA1 Message Date
Philip P. Moltmann
74b16200fd Merge "Add "app printer activity" and always keep the print service state updated. Also fiddle with the UI to use more standard values." into nyc-dev
am: 02a465ace7

* commit '02a465ace7063cc271f5565f78857dc22a14ca56':
  Add "app printer activity" and always keep the print service state updated. Also fiddle with the UI to use more standard values.
2016-03-07 19:30:45 +00:00
Yohei Yukawa
b5069e05e0 Merge "Ensure PopupDecorView is not IME-focusable during exit transition." into nyc-dev
am: 64177e51e4

* commit '64177e51e4148e13f8ba45c025316660aff7f79c':
  Ensure PopupDecorView is not IME-focusable during exit transition.
2016-03-07 19:28:44 +00:00
Philip P. Moltmann
02a465ace7 Merge "Add "app printer activity" and always keep the print service state updated. Also fiddle with the UI to use more standard values." into nyc-dev 2016-03-07 18:14:14 +00:00
Philip P. Moltmann
66c96591e2 Add "app printer activity" and always keep the print service state
updated. Also fiddle with the UI to use more standard values.

To be sure the print service state alwasy updated I changed
PrintManager.getPrintServices to return a loader which just wraps a
registerListener/getList/removeListener combo.

I also added a new function to enabled/disable a print service to be
keep all updating logic inside the PrintManagerService->UserState.

Then I changed all code to use this new interface.

Detailed comments:

PrintServiceInfo:
- I had to add the enabled state to the PrintServiceInfo as some users
  of PrintManager.getPrintServices want all services but then display
  different data depending on the enabled state. Of course I could have
  created two PrintManager.getPrintServices-loaders to load the two
  separate list of services. I think it is much easier to add this
  property though. It is updated every time new data is returned to the
  PrintManager.getPrintServices-loader.

AddPrinterActivity:
- This is shown as a dialog-style overlay to indicate that the user will
  return to the select-printers activity. It contains of three list that
  are updated via separate loaders.
- The recommended services will be added later to keep this path set
  small.

PrintActivity:
- There are two small places where we have to update the data when we
  get a new list of print services.
  - In very, very rare conditions it can happen that the print service
    of the current printer gains or looses the "advancedOptions"
    activity
  - If we have no enabled print services we want to show "Add printer"
    instead of "All printers...".
- Also the print registry is not the only loader anymore, hence we have
  to assign loader ids to it to not conflict with the other loaders in
  this activity.
- Small bug in onPrintersChanged: If a printer is selected and the print
  service of this printer gets disabled the holder goes into "removed"
  state which disables the printer. When the print service is then
  enabled again, we forgot to re-enable the holder.

PrinterRegistry:
- The registry assumed that the FusedPrinterProvider was the only loader
  in the activity. This is not true anymore, hence it has to assign the
  appropriate loader ids.
- The FusedPrinterProvider has an internal loader, hence we have to
  forward a loader Id into it.
- The PrintRegistry is only called backed for a single loader, hence no
  need to check the loader-id.

SelectPrinterActivity:
- The AddPrinterDialog was removed as we now have the
  AddPrinterActivity.
- Added a loader for the enabled services to update the empty state.
- Added dedicated loader Id for the PrinterRegistry again.
- If we have no enabled services, the SelectPrinterActivity chainloads
  the AddPrinterActivity as this is the only thing the user can do
  anyway. "Save a click". This should only happen when the activity is
  create the first time.
- Moved the "add printer" from the menu item to the list of printers as
  suggested by UX and Zach.

PrintManagerService, UserState and IPrintManagerParamtersTest:
- As the only place where the print service state is updated is now the
  userstate, we have no more sychronization problems. Whohoo.
- The users can now register for changes to the print services similar
  as they can register for changes to the print jobs.
- UserState.getPrintServices is the only function can exposes any
  knowledge of the print services to the outside world.

Change-Id: I9be2c7300431e06aaff9bdf7eb36120d869b56ac
2016-03-07 09:58:08 -08:00
Yohei Yukawa
64177e51e4 Merge "Ensure PopupDecorView is not IME-focusable during exit transition." into nyc-dev 2016-03-07 17:47:48 +00:00
Yohei Yukawa
dbd299de2a Ensure PopupDecorView is not IME-focusable during exit transition.
Currently PopupDecorView temporarily gets FLAG_NOT_FOCUSABLE bit during
exit transition.  When doing this we it is important that PopupDecorView
does not have FLAG_ALT_FOCUSABLE_IM bit, because having both
FLAG_NOT_FOCUSABLE and FLAG_ALT_FOCUSABLE_IM means that PopupDecorView
is IME-focusable.

To prevent IMEs from flickering, this CL ensures that PopupDecorView is
not IME-focusable during exit transition.

Bug: 27396330
Change-Id: I0cc81791b826f7d4257f0b6085c028c796fd9536
2016-03-06 22:27:40 -08:00
Keisuke Kuroyanagi
a1fd59019e Merge "Try to find equivalent SuggestionsSpan when it has been updated." into nyc-dev
am: 15ae7c1328

* commit '15ae7c132866d401be4cdc88ac2d16a104d54b11':
  Try to find equivalent SuggestionsSpan when it has been updated.
2016-03-07 02:53:47 +00:00
Keisuke Kuroyanagi
15ae7c1328 Merge "Try to find equivalent SuggestionsSpan when it has been updated." into nyc-dev 2016-03-07 02:48:17 +00:00
Jeff Sharkey
f8dfd32d31 Merge "Skip publishContentProviders() when we have zero." into nyc-dev
am: 2d4d61d326

* commit '2d4d61d3268a1f1af6b0835eb346bec587983050':
  Skip publishContentProviders() when we have zero.
2016-03-06 02:54:53 +00:00
Jeff Sharkey
2d4d61d326 Merge "Skip publishContentProviders() when we have zero." into nyc-dev 2016-03-06 02:50:32 +00:00
Jeff Sharkey
3e1958936e Skip publishContentProviders() when we have zero.
If the list of providers for the application being bound is empty,
don't bother trying to register them.

Bug: 27510621
Change-Id: I921fb70a4c97433fa123fa88e170745ee013ee35
2016-03-05 19:49:02 -07:00
Jeff Sharkey
713a95471f Merge "Move more PM calls to ParceledListSlice." into nyc-dev
am: fdc5ba8f43

* commit 'fdc5ba8f43e09cfbc8f5de0bf819b7684094953e':
  Move more PM calls to ParceledListSlice.
2016-03-05 21:16:43 +00:00
Jeff Sharkey
fdc5ba8f43 Merge "Move more PM calls to ParceledListSlice." into nyc-dev 2016-03-05 21:06:39 +00:00
Jeff Sharkey
d5896630f6 Move more PM calls to ParceledListSlice.
Since the data returned by these calls can grow unbounded based on
various GET flags, we need to switch 'em over.

Bug: 27391893
Change-Id: Ie849ca30dbaaa91158da4c83675657715629a0ee
2016-03-04 16:31:34 -07:00
Chien-Yu Chen
475dd75224 Merge "Camera2 Legacy: Connect to surfaces it produces" into nyc-dev
am: 329484bb7e

* commit '329484bb7e31e3b0574cd25186a9d6a840f39781':
  Camera2 Legacy: Connect to surfaces it produces
2016-03-04 21:10:22 +00:00
Chien-Yu Chen
329484bb7e Merge "Camera2 Legacy: Connect to surfaces it produces" into nyc-dev 2016-03-04 21:01:34 +00:00
Suprabh Shukla
8f50b747ed Merge "Not clearing data for a package that is a DO or PO" into nyc-dev
am: e1fd7f09d5

* commit 'e1fd7f09d5149055b8ad7bcf24846ecd8d87027a':
  Not clearing data for a package that is a DO or PO
2016-03-04 20:43:25 +00:00
Suprabh Shukla
e1fd7f09d5 Merge "Not clearing data for a package that is a DO or PO" into nyc-dev 2016-03-04 20:38:44 +00:00
Eino-Ville Talvala
45b7b6a1db Merge "DngCreator: Improve BlackLevel, fix thumbnail metadata" into nyc-dev
am: 8a35cbf45b

* commit '8a35cbf45bce1d09ab0ef222331edf811f50985d':
  DngCreator: Improve BlackLevel, fix thumbnail metadata
2016-03-04 20:15:35 +00:00
Eino-Ville Talvala
8a35cbf45b Merge "DngCreator: Improve BlackLevel, fix thumbnail metadata" into nyc-dev 2016-03-04 20:07:43 +00:00
Julia Reynolds
9cda0f2b31 Api Review: NotificationManager.Policy
am: cedacefd70

* commit 'cedacefd70cfa9ad219dcb15113fbe8a9a71c087':
  Api Review: NotificationManager.Policy
2016-03-04 19:45:10 +00:00
Julia Reynolds
cedacefd70 Api Review: NotificationManager.Policy
Bug: 27365873
Change-Id: Ie53a410d53f430fa90f24d95a885be150a3d66aa
2016-03-04 14:37:45 -05:00
Adam Powell
24e592a5e3 Merge "Stop ProgressBar animations when not visible" into nyc-dev
am: 92e84089c4

* commit '92e84089c42da87f4b140d5b6a5d5b9ae167fb88':
  Stop ProgressBar animations when not visible
2016-03-04 19:33:33 +00:00
Adam Powell
92e84089c4 Merge "Stop ProgressBar animations when not visible" into nyc-dev 2016-03-04 19:27:17 +00:00
Eino-Ville Talvala
8069b1f252 DngCreator: Improve BlackLevel, fix thumbnail metadata
- Use new dynamic black level result key when available
 - Write rational black level instead of integral value
 - Fix incorrect thumbnail BitsPerSample metadata
 - Fix incorrect date/time format string
 - Fix unknown orientation

Test: dng_validate for captured DNGs is clean
Bug: 27452979
Bug: 25862995
Change-Id: I87b73f7a4f4ecc3cf6498c7db16df68dd0b0b43a
2016-03-04 11:22:15 -08:00
Todd Kennedy
8b25c1ba29 Merge "dump apk signing version" into nyc-dev
am: 40a6e6a10e

* commit '40a6e6a10e0b411fd7434d586f2323674b11b757':
  dump apk signing version
2016-03-04 18:37:39 +00:00
Todd Kennedy
40a6e6a10e Merge "dump apk signing version" into nyc-dev 2016-03-04 18:34:00 +00:00
Adam Powell
c1bba9b9f8 Stop ProgressBar animations when not visible
Propagate setVisible calls to current drawable. Take window visibility
into account when determining drawable visibility.

Bug 27461595

Change-Id: Ia1de1d1686f26c2cf27630c5bde70f23c2c332bd
2016-03-04 10:15:35 -08:00
Michal Karpinski
7371f4c9e6 Merge "Rework of remote bugreports UX" into nyc-dev
am: bf8f1cc3c0

* commit 'bf8f1cc3c0d9931828d166aea585b6b29d4c6664':
  Rework of remote bugreports UX
2016-03-04 09:57:55 +00:00
Michal Karpinski
bf8f1cc3c0 Merge "Rework of remote bugreports UX" into nyc-dev 2016-03-04 09:52:32 +00:00
Wale Ogunwale
439381fdbc Clear app token mAppStopped when app resumes.
am: 8d5a542f66

* commit '8d5a542f66beae774354038f15dd1afe7fcf754b':
  Clear app token mAppStopped when app resumes.
2016-03-04 03:08:16 +00:00
Wale Ogunwale
8d5a542f66 Clear app token mAppStopped when app resumes.
It is possible for an activity to be in the stopped state without
setting it's visiblility to false in window manager.
For example, the home acitivty behind the lock screen. Since the
lock screen isn't an activity it doesn't affect the visiblity set
of the home activity, so AM doesn't tell WM to hide the app token.
However, AM uses another channel to detect that the device is locked
and moves the activity into stopped state. WM on the other hand also
detects that the device is locked and hides the window surfaces of
all windows behind the lock screen. So, at this point AM has also
told WM that the activity is stopped. Once you unlock the screen
AM resumes the activity but doesn't report any visiblility changes to WM
since it's internal state didn't change. So, if you go from the home
activity to another app the home activity window will be destroyed
before the activity is stopped because mAppStopped is set to true.
We now set mAppStopped to false when the activity is resumed.

Bug: 27286867
Change-Id: Ic75456d30abd582fa44f932f5aeeb449950157ee
2016-03-03 18:59:26 -08:00
Steve McKay
1f1e4bd8d0 Merge "Make COLUMN_CAPACITY_BYTES public." into nyc-dev
am: 75b19dd208

* commit '75b19dd20843eebc5691eb1d2cdb794abb61693c':
  Make COLUMN_CAPACITY_BYTES public.
2016-03-04 02:16:58 +00:00
Steve McKay
75b19dd208 Merge "Make COLUMN_CAPACITY_BYTES public." into nyc-dev 2016-03-04 02:12:02 +00:00
Keisuke Kuroyanagi
22e01d5611 Merge "Refresh action mode always when selection is modified." into nyc-dev
am: bd4b217a28

* commit 'bd4b217a289edca382b63f2bf5d1dd2017e9cf2e':
  Refresh action mode always when selection is modified.
2016-03-04 00:57:48 +00:00
Keisuke Kuroyanagi
bd4b217a28 Merge "Refresh action mode always when selection is modified." into nyc-dev 2016-03-04 00:53:59 +00:00
Chien-Yu Chen
29c3630563 Camera2 Legacy: Connect to surfaces it produces
When legacy camera device is the producer of its output surfaces,
it needs to connect to the surfaces before using the surfaces
and disconnect from the surfaces after finishing using the surfaces.

Bug: 27331537
Bug: 27383242
Change-Id: Ia3e2ca142f7973face0f60fbfc96935054aac1c4
2016-03-03 16:50:35 -08:00
Adam Lesinski
732112e37e Merge "Move the guts of Resources to ResourcesImpl" into nyc-dev
am: c4dd2e7d52

* commit 'c4dd2e7d525fc41081ab9138535cd1cf153c4bc6':
  Move the guts of Resources to ResourcesImpl
2016-03-04 00:21:18 +00:00
Adam Lesinski
c4dd2e7d52 Merge "Move the guts of Resources to ResourcesImpl" into nyc-dev 2016-03-04 00:16:47 +00:00
Roozbeh Pournader
f144fc50a7 Merge "Unhide LocaleList.getAdjustedDefault()" into nyc-dev
am: fa207d6097

* commit 'fa207d609719712904dc9c565f836c0489c6447b':
  Unhide LocaleList.getAdjustedDefault()
2016-03-04 00:16:46 +00:00
Suprabh Shukla
d04525214b Not clearing data for a package that is a DO or PO
Added a check inside PackageManagerService to make sure data for a
package with a DO or PO for the running user is not cleared. Currently,
the 'pm clear' command goes through without any such checks.

Bug: b/27243904
Change-Id: I87d4ad2db031f47946f34627a5ee465ef144f85e
2016-03-03 16:04:12 -08:00
Todd Kennedy
66c5553c2e dump apk signing version
bug: 26905579
Change-Id: I5c2682904f2fb83ffce572fe2eb35c38e1b72f01
2016-03-03 15:49:17 -08:00
Roozbeh Pournader
fa207d6097 Merge "Unhide LocaleList.getAdjustedDefault()" into nyc-dev 2016-03-03 23:46:57 +00:00
Keisuke Kuroyanagi
dfd1beda70 Merge "Supress SuggestionPopup for original field." into nyc-dev
am: c1cd17f918

* commit 'c1cd17f91843decf8e8ced6546cbbd634798c525':
  Supress SuggestionPopup for original field.
2016-03-03 23:43:41 +00:00
Keisuke Kuroyanagi
c1cd17f918 Merge "Supress SuggestionPopup for original field." into nyc-dev 2016-03-03 23:34:51 +00:00
Todd Kennedy
c989b5b109 Merge "Fix javadoc" into nyc-dev
am: 39428c1337

* commit '39428c1337e007f393780546d80e5201b68f9943':
  Fix javadoc
2016-03-03 23:34:23 +00:00
Todd Kennedy
39428c1337 Merge "Fix javadoc" into nyc-dev 2016-03-03 23:30:10 +00:00
Felipe Leme
6bff65f657 Merge "Created a firewall chain for power save mode." into nyc-dev
am: 578f19453a

* commit '578f19453a27102358877a1f61076ad1e4ea5ca9':
  Created a firewall chain for power save mode.
2016-03-03 23:29:55 +00:00
Todd Kennedy
dfa93abf2f Fix javadoc
Make referenced constants @SystemApi and change argument name to
match its actual meaning.

bug: 25441401
Change-Id: I4277799b95f394edb4305be05f57437717a86691
2016-03-03 15:24:33 -08:00
Felipe Leme
578f19453a Merge "Created a firewall chain for power save mode." into nyc-dev 2016-03-03 23:20:29 +00:00