| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: Ic47ef693dd5b2cd4010e68a600cae3b88d426bd2
|
|
|
|
| |
Change-Id: I5f0c6899a34ada9f8dfc492f849c9e03203bc920
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. For an app to print it creates a PrintDocumentAdapter implementation
which is passed to the print dialog activity. If the activity that
created the adapter is destroyed then the adapter, which may rely on
the activity state, may be in an invalid state. For example, an app
creates an adapter and calls print resuting in the app activity and
the print dialog activity being stacked. Now the user rotates the
device which triggers the recreating of the activity stack (assume the
app does not handle rotation). The recreated print dialog activity
receives the intent that originally created it with containing the
adapter that was constructed in the context of the old, now destroyed,
app activity instance.
To handle this we are limiting an app to be able to print only from
and activity and when this activity is destroyed we mark the adapter
as invalid which will result in hiding the print dialog activity. Note
that if the app process is killed we already handle this in the print
dialog activiy by registering a death recipient on the adapter binder.
2. In the PrintManager.PrintDocumentAdapterDelegate some of the state is
accessed only on the main thread and some from miltiple threads. The
code was trying to avoid locking for state that is not accessed by
multiple threads but this is error prone and the benefit does not
justify the complexity and added fragility. Now grabbing a lock all
the time.
3. The PrintJobConfigActivity waits for it to bind to the print spooler
service before instantiating its print controller and editor. However,
these can be accessed by invoking some of the activity cycle callbacks.
This change is adding null checks for the case where the activity
callbacks are called before the binding to the spooler is completed.
bug:11242661
Change-Id: Id906b3170e4f0a0553772dfa62686f06fdca0eaf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Before the print job activity was started asyncronously with
respect to the print call on to the print manager. This was
creating a situation where the starting activity may finish
before the print dialog appears which may lead to an orphaned
print document adapter with no data to print (as the UI is
is gone), or strange behaviors where the print dialog starts
on as a separate task.
To address this the pending intent for starting the print
dialog is not started by the print spooler since we cannot
call into it synchronously as we have to start its process
and bind to the spooler service which leads to jankyness in
the client app. Now the pending intent is created by the
print manager service in the synchronous print call so
from an app's perspective calling print starts the activity.
The side effect of this design is that the print dialog
activity may start before the system is bound to the spooler
service. In such a case the print activity cannot start
poking the print spooler state as the system registers
callback to observe the spooler state. To address this
the print spooler activity disables the UI and also binds
to the spooler service which happenes immediately after it
is started. As soon as the print dialog binds to the
service it starts the UI.
2. Fixed an bug in the printer adapter of the print dialog that
was leading to a crash if the only item in the adater is the
all pritners option and it is selected.
3. Piping the package name that started the printing so we can
pass it to the storage UI as a hint to open the last location
the app used.
bug:11127269
Change-Id: Ia93820bdae0b0e7600a0930b1f10d9708bd86b68
|
|
|
|
| |
Change-Id: I881510209a56204a464df082840d2dde56312303
|
|
|
|
| |
Change-Id: I96e7e31f93b1e3c3877a342b84fb069bda5d92e3
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Add directory containing android/provider/Telephony.java to build.
Add unhidden Telephony fields and classes to api/current.txt.
Bug: 10653081
Change-Id: Ib4ba66e09be5320d35257fcf481db58f840fdc53
|
|/
|
|
|
|
|
|
| |
This is needed for implementing the print job settigns UI.
bug:10935736
Change-Id: I63b42cbf4ce6a259fa1af47fa368b148ca5621c1
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This changes the PAC support to not broadcast the Proxy information until
the Local Proxy has started up and successfully bound to a port so that
the local proxy information can be guaranteed to be owned by the proxy.
Bug: 10459877
Change-Id: I175cd3388c758c55e341115e4a8241884b90d633
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
groups to doclava." into jb-mr2-docs
* commit '834ba47485a5fb55c89d8f22b826bdb26049f6d6':
Pass whitelist of sample groups to doclava.
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
doclava." into jb-mr2-docs
* commit '4c6cde545c5d2e76d9ba8ef926399463369da7e7':
Pass whitelist of sample groups to doclava.
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I36f3e3426115cc296531cf41d20ab07a4d429b19
|
|\ \ \ \ |
|
| | |_|/
| |/| |
| | | |
| | | | |
Change-Id: I786c00db0cce61ef75e4edc24e90f2cdcba6dbfb
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
- and its usage from Keyguard
Bug: 10708010
Change-Id: Ic4a695a1d0e9312706a3b4ff01e59e2567b6ad9c
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | | |
browser." into jb-mr2-docs
* commit '76fcf6c73e7dda99ec80e6da616bee26c2a088e6':
Add a few more samples to browser.
|
| |\ \
| | |/
| | |
| | |
| | |
| | |
| | | |
jb-mr2-docs
* commit '07c9bcc3a60a8860b65aa43badd8ab1f1858522b':
Add a few more samples to browser.
|
| | |
| | |
| | |
| | | |
Change-Id: Iac7acc22a8dd71950b32e2c35c82f53abc34168a
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Using intents for reader mode doesn't work well for 2 reasons:
1) Intents are used to resolve, but in reader mode we already
know where to resolve to. Additionally, dispatching an intent
causes additional latency.
2) Using intents with foreground dispatch was tricky; for every
call to onNewIntent() with a new tag, there was a call to
onPause(), which effectively disabled reader mode again,
causing a discovery loop.
Instead, let the app register a callback, and call that when
we discover a new tag. Also, add new flag to disable platform
sounds, and to change the presence check delay.
Bug: 10360259
Change-Id: I8373543d6cf2f7ca73c9b3e42bb8b51e3ac48cac
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I855330b255a12cce309aa11e0b7cde5b8e061043
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
1. Added support for selecting a printer from the all printers activity
that is not in the initial printer selection drop down. The user
initially sees a sub set of the printers in the drop down and the
last option is to see all printers in a separate activity. Some
of the printers in the all printers activity are not shown in the
initial drop down.
2. Refactored printer discovery by adding (private for now) printer
discovery app facing APIs. These APIs are needed to support multiple
printer selection activities (print dialog and all printers activities)
and also the settings for showing all printers for a service.
Now multiple apps can request observing for printers and there is
a centralized mediator that ensures the same printer discovery
session is used. The mediator dispatches printer discovery specific
requests to print services. It also aggregates discovered printers
and delivers them to the interested apps. The mediator minimizes
printer discovery session creation and starting and stopping discovery
by sharing the same discovery session and discovery window with
multiple apps. Lastly, the mediator takes care of print services
enabled during discovery by bringing them up to the current
discovery state (create discovery session and start discovery if
needed). The mediator also reports disappearing of the printers
of a service removed during discovery and notifies a newly
registered observers for the currnet printers if the observers are
added during an active printer discovery session.
3. Fixed bugs in the print UI and implemented some UX tweaks.
Change-Id: I4d0b0c5a6c6f1809b2ba5dbc8e9d63ab3d48f1ef
|
|\ \ \ \
| |/ / /
|/| / /
| |/ /
| | |
| | |
| | | |
code html generation in docs builds." into jb-mr2-docs
* commit '978ec174fbbbda4a844178f645e83365861a0d4c':
Temporarily disable sample code html generation in docs builds.
|
| |\ \
| | |/
| | |
| | |
| | |
| | |
| | | |
generation in docs builds." into jb-mr2-docs
* commit 'de525b442f6a0a467074ab216543c3372786139e':
Temporarily disable sample code html generation in docs builds.
|
| | |
| | |
| | |
| | | |
Change-Id: Ibcf0e4d5ab63968211528f528cc5bee914d7a556
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This switches the PacProcessor over to an Android Service. The service
is bound and unbound by the PacManager, which also adds it to the
ServiceManager, allowing for Context-Free access by the PacProxySelector
in all DVMs.
bug:10182711
Change-Id: Id1ff7660be56e8976cdcccd76e041feb47a17a61
|
|\ \ \ \ |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
1. Added past printer history tracking and merging favorite printers
with discovered printers.
2. Added save as PDF support.
3. Added all printers activity with search capability and optional
add printers chooser (if any print service provides add printers
activity)
4. Refactored the printer discovery session APIs. Now one session
can have multiple window discovery windows and the session stores
the printers found during past discovery periods.
5. Merged the print spooler and the print spooler service - much
simpler and easier to maintain.
Change-Id: I4830b0eb6367e1c748b768a5ea9ea11baf36cfad
|
|\ \ \ \
| |/ / /
|/| / /
| |/ /
| | |
| | |
| | | |
changes: Samples dir and file starters.
* commit '2d9ee70703cb52a16d726eb177f6f4e0be4f93e2':
doc change: Samples browsing first changes: Samples dir and file starters.
|
| |\ \
| | |/
| | |
| | |
| | |
| | |
| | | |
Samples dir and file starters.
* commit '364fe3a856e7bd0c0a35724c2f42d381d8616370':
doc change: Samples browsing first changes: Samples dir and file starters.
|
| | |
| | |
| | |
| | | |
Change-Id: I6cc8c03bf4c2bcc771d4531619db5b3acd62601f
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I0fb0e276d3a06322697bb5d46323779aca1f78c5
|
|\ \ \ \
| |/ / /
|/| | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
bug:9301872
Change-Id: I5a7edfdbd2b78a65119d11acad491eae350c0870
|
|\ \ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
1. Factored out the printer discovery APIs of a print service in a
dedicated session object that is created by the print service on
demand. This ensures that added/removed/updated printers from
one session do not interfere with another session.
2. Updated the app facing APIs to pass in a document info along
with a printed file. Also exposed the print file adapter so
apps that create a temporary file for printing can intercept
when it is read by the system so the file can be deleted.
3. Updated the print service documentation.
Change-Id: I3473d586c26d8bda1cf7e2bdacb441aa9df982ed
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
bug:10116530
Change-Id: I57d022005bcff5bc3e56438a81ac92566f957744
|
|/ / /
| | |
| | |
| | | |
Change-Id: Ia3a57d869dfb3f067a1b95fa66d54f311ddcfdc3
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
PAC (Proxy auto-config) files contain a single javascript function,
FindProxyForURL(url, host). It gets called to determine what proxy should be
used for a specific request.
This adds PAC support to the system. The ProxyProperties has been modified
to hold the PAC file when one is present. The Proxy method
setHttpProxySystemProperty has been modified to insert a PacProxySelector
as the default ProxySelector when it is required. This new ProxySelector
makes calls to the ConnectivityService to parse the PAC file.
The ConnectivityService and the WifiConfigStore have been modified to support
saving the extra PAC file data.
The ConnectivityService now has a class attached (PacProxyNative) that
interfaces to the native calls for PAC files. The parsing of the PAC file
is handled by libpac (which is being added to external/) which utilizes
libv8 to parse the javascript.
As a fallback to applications that don't use the java ProxySelector, the proxy
is setup to point to a local proxy server that will handle the pac parsing.
bug:10182711
Change-Id: I5eb8df893c632fd3e1b732385cb7720ad646f401
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Also fix a bug where we were not correctly unparcelling service
duration data.
Change-Id: Ie9113b2e3a747622441b1939ffc45edb5803a10f
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- New INfcCardEmulation interface to allow apps to interface
with card emulation system.
- New BIND_NFC_SERVICE permission to prevent malicious apps
from binding to card emulation services.
- ApduServiceInfo is now in the framework.
- Added constants to Settings.Secure for storing defaults.
- Modified XML grammar a bit.
Change-Id: I56b3fa6b42eb5dc132c91c1386ab1e6bac779059
|
|\ \ \ \
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | | |
release also update platform version number for doc builds
* commit '30483952528469c612c61c7370e99db9e40b3262':
update sizes/sums for tools 22.0.5 release also update platform version number for doc builds
|
| |\ \ \
| | | |/
| | |/|
| | | |
| | | |
| | | |
| | | | |
update platform version number for doc builds
* commit '1d7516a79883dded43e6c370bf071feb9527971e':
update sizes/sums for tools 22.0.5 release also update platform version number for doc builds
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
also update platform version number for doc builds
Change-Id: Ib3e644c3bfe618137516398aebf3f778ebdd1e81
|
| |_|/
|/| |
| | |
| | | |
Change-Id: I77b7939e199f9fe8e12a59393c24cff08097448c
|