119 Commits

Author SHA1 Message Date
Wink Saville
67e0789cd3 Mobile_radio in battery history is not accurate
Invoke TelephonyManager#listen to connect mPhoneStateListener to receive
the notifications.

Bug: 15568103
Change-Id: I5a3fa6347704e96ceb34289f74ba6e3157bbb333
2014-06-22 14:41:22 +00:00
Christopher Tate
cf1a2f73fc Switch everything to scheduled jobs
Everything that used the IdleMaintenance APIs/broadcasts gets to use the
spiffy new JobScheduler instead.  Hooray!

On top of that, the now-obsolete "idle maintenance" APIs are now gone
entirely.  Double hooray!

Bug 14993295

Change-Id: I5fb67c296ca8cd0ba8a2c8760a0f0d9d962d813b
2014-06-17 12:14:45 -07:00
Wink Saville
fb40dd4d00 Merge kwd to master
Add initial IMS and MSIM support from klp-wireless-dev-mirror

Change-Id: Idb607c0aa32f80fe4fe1539aedea7a221e9e7f04
2014-06-13 13:30:57 +00:00
Christopher Tate
7060b04f6d Out with the old; in with the new
Switch to the official "JobScheduler" etc naming.

Bug 14997851

Change-Id: I73a61aaa9af0740c114d08188bd97c52f3ac86b7
2014-06-10 12:51:55 -07:00
Jae Seo
d5cc4a281e Put TV Input Framework under android.media.tv, including TvContract
Bug: 15345342
Change-Id: I665ca23f0f074ce29cb2e047109b209178532107
2014-06-02 11:02:52 -07:00
Griff Hazen
fe7dbba526 DO NOT MERGE Cherry-pick: Fix build: CheckBuild line for removed wearable package
Change-Id: I26e39dc11add182e07bcc13456a166c86c911210
2014-05-25 19:37:39 -07:00
Dianne Hackborn
0923328962 Make GET_TASKS signature|system.
Normal apps can't hold it now.  If they try to use
getRecentTasks() or getRunningTasks() without the permission,
they will only see their own tasks and home in the list.

Also took this opportunity to eradicate all of the old pending
thumbnail stuff.

Change-Id: I6dc52a06221c78097162e4a8b482027b798bf3ee
2014-05-02 11:51:26 -07:00
RoboErik
5b517bbac6 Add cleanspec for media Session apis.
Change-Id: I58b0acda2a91b3afe6febc3bc00e26fbe27dd431
2014-04-18 14:48:24 -07:00
Jae Seo
3957091ba8 Initial round of Television Input Framework
This provides APIs to control and create individual television inputs on
the system which will later be hosted by television applications.

Change-Id: I6866d28e78175a1bff2c32a85c5d77e94d0cd60c
2014-04-08 13:35:21 -07:00
Svetoslav
8e3feb15c5 Added accessibility APIs for introspecting interactive windows.
1. The old introspection model was allowing querying only the active window
   which is the one the user is touching or the focused one if no window is
   touched. This was limiting as auto completion drop downs were not inspectable,
   there was not way to know when the IME toggles, non-focusable windows were
   not inspectable if the user taps them as until a screen-reader starts
   introspecting the users finger is up, accessibility focus was limited to
   only one window and the user couldn't use gestures to visit the whole UI,
   and other things I can't remember right now.

   The new APIs allow getting all interactive windows, i.e. ones that a
   sighted user can interact with. This prevents an accessibility service
   from interacting with content a sighter user cannot. The list of windows
   can be obtained from an accessibility service or the host window from an
   accessibility node info. Introspecting windows obey the same rules for
   introspecting node, i.e. the service has to declare this capability
   in its manifest.

   When some windows change accessibility services receive a new type
   of event. Initially the types of windows is very limited. We provide
   the bounds in screen, layer, and some other properties which are
   enough for a client to determined the spacial and hierarchical
   relationship of the windows.

2. Update the documentation in AccessibilityService for newer event types.

3. LongArray was not removing elements properly.

4. Composite accessibility node ids were not properly constructed as they
   are composed of two ints, each taking 32 bits. However, the values for
   undefined were -1 so composing a 64 long from -1, -1 prevents from getting
   back these values when unpacking.

5. Some apps were generating inconsistent AccessibilityNodeInfo tree. Added
   a check that enforces such trees to be well formed on dev builds.

6. Removed an necessary code for piping the touch exploration state to
   the policy as it should just use the AccessibilityManager from context.

7. When view's visibility changed it was not firing an event to notify
   clients it disappeared/appeared. Also ViewGroup was sending accessibility
   events for changes if the view is included for accessibility but this is
   wrong as there may be a service that want all nodes, hence events from them.
   The accessibility manager service takes care of delivering events from
   not important for accessibility nodes only to services that want such.

8. Several places were asking for prefetching of sibling but not predecessor
   nodes which resulted in prefetching of unconnected subtrees.

9. The local AccessibilityManager implementation was relying on the backing
   service being ready when it is created but it can be fetched from a context
   before that. If that happens the local manager was in a broken state forever.
   Now it is more robust and starts working properly once the backing service
   is up. Several places were lacking locking.

bug:13331285

Change-Id: Ie51166d4875d5f3def8d29d77973da4b9251f5c8
2014-03-20 16:52:59 +00:00
RoboErik
2f5b057da7 Move Session apis to android.media.session
This is to make it easier to distinguish the new apis from the old
ones.

Change-Id: Ic5eaf65e8bd054a844f87b9118c4bb18f30ac8a7
2014-02-25 16:01:55 -08:00
Amith Yamasani
49782e46c0 am 9158825f: Move some system services to separate directories
* commit '9158825f9c41869689d6b1786d7c7aa8bdd524ce':
  Move some system services to separate directories
2013-12-19 23:30:35 +00:00
Amith Yamasani
9158825f9c Move some system services to separate directories
Refactored the directory structure so that services can be optionally
excluded. This is step 1. Will be followed by another change that makes
it possible to remove services from the build.

Change-Id: Ideacedfd34b5e213217ad3ff4ebb21c4a8e73f85
2013-12-19 15:25:37 -08:00
Svetoslav
a1f9936c6b am 5c880d0d: am 6f688e87: am 8f34715b: Merge "Refactor how the print dialog activity is started." into klp-dev
* commit '5c880d0d1551603dcc4366406ec9ee3b812a8fc4':
  Refactor how the print dialog activity is started.
2013-10-11 10:11:05 -07:00
Svetoslav
7bfbbcb04b Refactor how the print dialog activity is started.
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
2013-10-11 09:11:24 -07:00
Eric Laurent
632d038181 am 66c8aa74: am c9a4349a: am 8a9b694d: Merge "Revert "Headphones volume warning disabled by default"" into klp-dev
* commit '66c8aa7413f6bbd4ecd14048ea03267cd5d96fba':
  Revert "Headphones volume warning disabled by default"
2013-10-10 11:55:15 -07:00
Eric Laurent
f971b1eec5 Revert "Headphones volume warning disabled by default"
This reverts commit 7cf06209dcdbadd41fabd7e4e7229832aa8ffff2.

Bug: 10297243.
Change-Id: I95b9b34bb38550af493f9a585b6940c4e18e39cc
2013-10-10 10:43:13 -07:00
Daniel Sandler
806fa829b4 am 0cc92983: am 4e6f752f: Put soundpooled sounds in the right place.
* commit '0cc9298320fa6f018f0a2b7292057be46964c15c':
  Put soundpooled sounds in the right place.
2013-09-20 11:21:56 -07:00
Daniel Sandler
4e6f752f23 Put soundpooled sounds in the right place.
Bug: 10846839
Change-Id: I5318c2d54ea0e25fa74bbafc35fb4f7a2883b351
2013-09-20 00:27:01 -04:00
Daniel Sandler
c9a48989ec am 5bb7cefa: am 1816375f: Merge "New sounds for K." into klp-dev
* commit '5bb7cefa6f4e068057065c9090a4bb09972487f0':
  New sounds for K.
2013-09-19 08:00:28 -07:00
Daniel Sandler
dcbdd3b420 New sounds for K.
AudioPackage12 uses the new sounds (specifically the default
versions at 44.1kHz); device-specific makefiles can elect to
use the 48k versions instead by including
AudioPackage12_48.mk.

Bug: 9454760
Change-Id: If714fc4b98f6700163f08c92a6376f28f9616382
2013-09-18 23:09:58 -04:00
Glenn Kasten
c8b9ea3d02 am edc538a7: am 0f3e1487: Merge "Remove obsolete assets from target /system/media/video/" into klp-dev
* commit 'edc538a7936925edb9767148dee39f3e78b9ef08':
  Remove obsolete assets from target /system/media/video/
2013-09-13 17:30:57 -07:00
Glenn Kasten
db8c1655ea Remove obsolete assets from target /system/media/video/
These were previously used for background replacement effect, but it seems
like they aren't needed any more and just take up space in filesystem.

Change-Id: I0782ac0c8f109e4f28e9f43c20d30dc6ccd82ef7
2013-09-13 10:27:40 -07:00
Michael Wright
f8d80233ee am add9898c: am 7314eb08: Merge "Fix broken copy of kl/kcm/idc files to system image" into klp-dev
* commit 'add9898c7258563888dfda98e5de0faaaf32a201':
  Fix broken copy of kl/kcm/idc files to system image
2013-09-05 15:36:38 -07:00
Michael Wright
37ad207edc Fix broken copy of kl/kcm/idc files to system image
Bug: 10633915
Change-Id: I244b85dc92d50bf8bdcfdf0fe32556eff8c5d279
2013-09-05 15:27:32 -07:00
Chet Haase
4918e7ad66 resolved conflicts for merge of 09ed0720 to master
Change-Id: I1ce1b48a9fb954caf4fd15237f2f608ac9c478fe
2013-09-04 17:19:44 -07:00
Chet Haase
d82c8ac4db Transition API changes from API council recommendations
Issue #10460684 KLP API Review: android.view.transition and android.animation
Issue #10570740 Transitions: inflate transition targets from xml

Change-Id: I7a3f6d3aece2fcafc5efd555d033f79e86635c98
2013-09-04 14:46:38 -07:00
Chris Craik
24f129f2ba am 5d73148d: am c78f39d8: Merge "Add cleanspec for bitmap jni issue" into klp-dev
* commit '5d73148d4269dce9ce716f022df3a69fc9813195':
  Add cleanspec for bitmap jni issue
2013-08-23 10:20:31 -07:00
Chris Craik
23bf0e5790 Add cleanspec for bitmap jni issue
Change-Id: I0b270a8c1edd28a305e014ad7b0039f56787b25a
2013-08-22 22:15:25 -07:00
Ben Murdoch
5e1aa8ab8d am 8a57aac9: am 490ca9c7: Fix incremental builds.
* commit '8a57aac9ad63e97b507b2fd2e4c4b0b62ddf11a1':
  Fix incremental builds.
2013-08-22 05:05:18 -07:00
Ben Murdoch
490ca9c785 Fix incremental builds.
Add a cleanspec step.

Change-Id: I449fb89334e73037087865e886d7108e7f60ffce
2013-08-22 12:13:44 +01:00
Svetoslav
605775c4ed resolved conflicts for merge of ba35cf7a to master
Change-Id: Id9e6fa12056fc6cef7b77c70c73591dfc82e70a9
2013-08-20 18:18:14 -07:00
Svetoslav Ganov
b4f6a01d51 Adding a clean spec step for removed aidl files
Change-Id: I350bf6c0dfae116898b13c9f2570c7263eff1814
2013-08-20 17:59:01 -07:00
Selim Gurun
d6f46a206a Fix build break in master/chromium-dev
A cleanspec is needed in frameworks/base. Add it.

Change-Id: I205cbab5e52db0a5f4841c4f072479972907f0ca
2013-08-20 17:55:08 -07:00
Jason Monk
9ced3cd9d6 Change PacProcessor to Android Service
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
2013-08-20 17:36:39 -04:00
Ben Murdoch
ed735c9aeb Add missing cleanspec
Change-Id: I92d6329e3c404249876e707048f6808f35fb019b
2013-08-12 09:33:38 +01:00
Svetoslav Ganov
798bed6cc7 Refinement of the print service APIs.
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
2013-08-11 14:40:05 -07:00
Ben Murdoch
5839d17223 Add missing cleanspec.
Change-Id: Ida9f3c7335a84b126f67535ff658b056a59247a9
2013-07-31 10:44:01 +01:00
Selim Gurun
35d2e33136 Update cleanspec
Fix build break in master-chromium branch due to a forgotten cleanspec.

Change-Id: If377c53bf3a82bff775f968ad8eb270e3c666837
2013-07-30 16:31:12 -07:00
JP Abgrall
223cc81815 Use correct variables for the directories in CleanSpec
The comments in the file say what vars to use.
"out" can change and should be replaced with $(OUT_DIR)

Bug: 7183057
Change-Id: I3355d0e044f86709eee12873f47d7491b3f359b6
2013-07-25 08:30:25 -07:00
Colin Cross
0d6e7315eb add static dependency on liblog
Change-Id: I8056aa744b37ef0c31229329a0de79c58c5955ea
2013-07-23 18:04:24 -07:00
Svetoslav
0231409195 Add a clean spec rule due to renamed *.aidl
Change-Id: I87bfd02b8c4f3ceb43594a91ac8f501a867ccfe6
2013-07-16 13:49:44 -07:00
Eric Laurent
7cf06209dc Headphones volume warning disabled by default
Enable headphone volume limitation explicitely for
countries where EN60950 is applicable.

Bug: 8877359.

Change-Id: Ida9e6678ee451350b826492f0085726003f0d39d
2013-07-03 17:59:03 -07:00
Selim Gurun
5907624312 Update cleanspec.
Update cleanspec to handle rename in I0df438e45ef540cc42c9ee5baafc816ebafa1c7b.

Change-Id: Ifc5abe794017d1dbc4a49c645751b71e3b08c0ef
2013-06-24 14:48:03 -07:00
Wink Saville
45ac9645da Allow carrier provisioning to turn toggle radio power.
Previously CarrierProvisioning toggle airplane mode, but now that's
available only by the system.

Bug: 9356811
Change-Id: I5167f8614c07bafb688983a360a008f76403b2b8
2013-06-10 10:10:42 -07:00
Daniel Sandler
5feceebb89 New NotificationListenerService.
This is the best and only way for apps to listen for
notifications: create a NotificationListenerService, wait
for the NoMan to bind to you (as a result of the user
checking a box somewhere in Settings and agreeing to a
scary dialog box), and you'll start receiving notification
posted and dismissed callbacks. Your service, while enabled,
will also be able to clear one or all notifications.

Use this power wisely.

This change moves StatusBarNotification out of
com.android.internal into android.service.notification.
[Internal customers, including System UI and early users of
the system-only listener binder API, will need to be
updated.]

Bug: 8199624
Change-Id: I1be46f823d4b3ddc901109ec1e085cd6deb740c2
2013-04-05 19:54:44 +00:00
Jeff Brown
c28867a1d6 Use input transport for communications between app and IME.
The input method manager service now supplies an input channel for
communication while creating an IME session on behalf of the
application.

This change significanly reduces the overhead of IME event dispatch
by using a standard input channel to send input events rather than
using binder.  This results in fewer thread context switches
and fewer object allocations.

What's more, the IME may perform additional batching of the motion
events that it receives which may help it catch up if it is
getting behind while processing them.

Bug: 7984576
Bug: 8473020
Change-Id: Ibe26311edd0060cdcae80194f1753482e635786f
2013-03-26 15:42:39 -07:00
Michael Wright
52a5352626 Separate sessionCreated and finishedEvents callbacks
Bug: 8276952
Change-Id: If7051086c060fcce5d1e958ebbddec0784c851da
2013-03-21 17:47:40 -07:00
Wink Saville
5a72553ef9 Move a few files from frameworks/opt/telephony to frameworks/base.
Because ISms.aidl imports PendingIntent we couldn't easily
make opt/telephony part of the PDK. So this change moves
ISms.aidl and SmsRawData.*, which ISms.aidl also imports,
back to frameworks/base.

Change-Id: Ia64c6e771d5a292d9bfebb413a43f3745df55c85
2013-02-07 17:03:05 -08:00
Wink Saville
d906a6cfff Cleanstep for SmsRawData.
Change-Id: Ic3ae3a501a733508808866494b3bca0fcc819f3e
2013-02-03 08:29:53 -08:00