96334 Commits

Author SHA1 Message Date
Przemyslaw Szczepaniak
13896b7419 woExecute onLoadLanguage in synthesis thread.
Previously, onLoadLanguage was executed without minding synthesis queue.
Now onLoadLanguage is queued item, so it won't be executed before the items
on the queue (previously TTS could receivecall to onLoadLanguage
while synthesizing in completly different language).

I've divided SpeechItem into ControlSpeechItem and UtteranceSpeechItem.
Utterance one dispatches callbacks about synthesis progress.

Bug: 7510063
Bug: 5351864
Change-Id: Ibd156b3cecb190e5c07c4451e61121127b54d51e
2012-11-20 05:08:49 -08:00
Przemyslaw Szczepaniak
228323e759 Make getLanguage return client-set language
Previously, getLanguage returned language set on the TTS service side.
In most cases client wants to receive value that was set on the Client side
(value that was set by last call to the setLanguage). That's true, for
example, for android settings app.

This is not an issue if there's only one client, or when all clients use the same
language. In that cases, service and client languages are in sync.

But if there are multiple clients using different languages, getLanguage might
return values that were not set by the client - and that's not what most of clients expect
to happen.

Change-Id: I5fd8313725e677c20fb2a84a087fc7555897bd30
2012-11-20 04:14:39 -08:00
Przemyslaw Szczepaniak
8f3957cb91 TTS onServiceConnection moved to async task
ITextToSpeechService.setCallback (service rpc call) is no longer
executed on UI thread.

I kept OnInitListener.onInit being called on the UI thread. It's
not specified explicitly, but I don't want to introduce subtle
bugs.

+bonus import fix.

Bug: 6540404
Change-Id: I0136e7efeb374b605ed29ee8b3f550ec2bd2c356
2012-11-20 04:01:09 -08:00
Fabrice Di Meglio
b920b40510 am e784ae8e: am d689e8c3: am b0f895b3: Merge "Fix Javadoc for View layoutDirection / textDirection / textAlignment" into jb-mr1.1-dev
* commit 'e784ae8e6a0eab3d29afc9b19f65714e7b268b97':
  Fix Javadoc for View layoutDirection / textDirection / textAlignment
2012-11-19 15:17:30 -08:00
Fabrice Di Meglio
e784ae8e6a am d689e8c3: am b0f895b3: Merge "Fix Javadoc for View layoutDirection / textDirection / textAlignment" into jb-mr1.1-dev
* commit 'd689e8c3a05f3b200d19879bdc169e6ad6e0436b':
  Fix Javadoc for View layoutDirection / textDirection / textAlignment
2012-11-19 15:14:02 -08:00
Fabrice Di Meglio
d689e8c3a0 am b0f895b3: Merge "Fix Javadoc for View layoutDirection / textDirection / textAlignment" into jb-mr1.1-dev
* commit 'b0f895b330d0d2b6725e7deee158ff20ed9155f8':
  Fix Javadoc for View layoutDirection / textDirection / textAlignment
2012-11-19 14:31:02 -08:00
Fabrice Di Meglio
b0f895b330 Merge "Fix Javadoc for View layoutDirection / textDirection / textAlignment" into jb-mr1.1-dev 2012-11-19 14:27:45 -08:00
Jesse Hall
5b5011b8af Merge "Process all display events in order" 2012-11-19 14:25:30 -08:00
Daniel Sandler
98409d9d73 am ecd7d73c: am 2d8d6856: am 02053d1c: Merge "Show mobile data RSSI for devices that support it." into jb-mr1.1-dev
* commit 'ecd7d73c002561409f6aa291c62dd64df2f6d290':
  Show mobile data RSSI for devices that support it.
2012-11-19 12:04:20 -08:00
Daniel Sandler
ecd7d73c00 am 2d8d6856: am 02053d1c: Merge "Show mobile data RSSI for devices that support it." into jb-mr1.1-dev
* commit '2d8d68566c3798f074148352b22e81f6f7aa4382':
  Show mobile data RSSI for devices that support it.
2012-11-19 12:02:19 -08:00
Daniel Sandler
2d8d68566c am 02053d1c: Merge "Show mobile data RSSI for devices that support it." into jb-mr1.1-dev
* commit '02053d1cce52f11ef1bc3b562279940208f9c54e':
  Show mobile data RSSI for devices that support it.
2012-11-19 11:59:48 -08:00
Daniel Sandler
02053d1cce Merge "Show mobile data RSSI for devices that support it." into jb-mr1.1-dev 2012-11-19 11:56:35 -08:00
Scott Main
092c29c733 am 14120b9c: am 68395a61: am 0d3eb5f1: am 721b370c: Merge "cherrypick from Change-Id: I70cb9111ff5f5a156cecb433b3baf7925a6be1a8 Fix typo" into jb-mr1-dev
* commit '14120b9ce30d8d3f807a7439c7348bed116b66ff':
  cherrypick from Change-Id: I70cb9111ff5f5a156cecb433b3baf7925a6be1a8 Fix typo
2012-11-19 11:56:28 -08:00
Scott Main
14120b9ce3 am 68395a61: am 0d3eb5f1: am 721b370c: Merge "cherrypick from Change-Id: I70cb9111ff5f5a156cecb433b3baf7925a6be1a8 Fix typo" into jb-mr1-dev
* commit '68395a61489c560e68a9f8321df96ccdf776d1b6':
  cherrypick from Change-Id: I70cb9111ff5f5a156cecb433b3baf7925a6be1a8 Fix typo
2012-11-19 11:54:29 -08:00
Scott Main
68395a6148 am 0d3eb5f1: am 721b370c: Merge "cherrypick from Change-Id: I70cb9111ff5f5a156cecb433b3baf7925a6be1a8 Fix typo" into jb-mr1-dev
* commit '0d3eb5f111571f40c1c25dab229a6b8a98e61eeb':
  cherrypick from Change-Id: I70cb9111ff5f5a156cecb433b3baf7925a6be1a8 Fix typo
2012-11-19 11:50:58 -08:00
Scott Main
0d3eb5f111 am 721b370c: Merge "cherrypick from Change-Id: I70cb9111ff5f5a156cecb433b3baf7925a6be1a8 Fix typo" into jb-mr1-dev
* commit '721b370c5a2d787795257ac42317d389445e51f9':
  cherrypick from Change-Id: I70cb9111ff5f5a156cecb433b3baf7925a6be1a8 Fix typo
2012-11-19 11:48:28 -08:00
Scott Main
721b370c5a Merge "cherrypick from Change-Id: I70cb9111ff5f5a156cecb433b3baf7925a6be1a8 Fix typo" into jb-mr1-dev 2012-11-19 11:44:58 -08:00
Jaewan Kim
ff5941399e cherrypick from Change-Id: I70cb9111ff5f5a156cecb433b3baf7925a6be1a8
Fix typo

Change-Id: Idd09f7fea890dbc290589b1ebe4a1a139f98c740
2012-11-19 11:43:56 -08:00
Jesse Hall
16823bd611 Process all display events in order
Display events in each batch received from IPC were being processed in
reverse order, and stopped after the first vsync event (latest
chronologically) was handled. This makes perfect sense for vsync
events, but is broken for hotplug events.

Now we process them all in order, handling all except vsync as we see
them. For vsync events, only the last is reported.

Bug: 7491120
Change-Id: I04528fea8f38c1013734d4aa92fb1955ac24d7cc
2012-11-19 10:53:26 -08:00
Daniel Sandler
5052805cc0 Show mobile data RSSI for devices that support it.
The new test is more general, allowing mobile RSSI to be
shown on devices without voice telephony.

Bug: 7490266
Change-Id: Ib5b243c0d92e74fe4385989c3a6c16edd00a9ec9
2012-11-19 13:33:44 -05:00
Scott Main
6dbfed2f8a Merge "Fix typo" 2012-11-19 10:26:42 -08:00
Satoshi Kataoka
1ee199a4c6 am 9371747e: am 0e1c092a: am 2656abe0: Merge "Fix an inconsistent state with IMMS and Settings when the hard keyboard is connected" into jb-mr1.1-dev
* commit '9371747e752236727be58149a8d04248860c134f':
  Fix an inconsistent state with IMMS and Settings when the hard keyboard is connected
2012-11-17 22:01:57 -08:00
Satoshi Kataoka
9371747e75 am 0e1c092a: am 2656abe0: Merge "Fix an inconsistent state with IMMS and Settings when the hard keyboard is connected" into jb-mr1.1-dev
* commit '0e1c092ab0ee0f2f499dba2bc51223e106f51964':
  Fix an inconsistent state with IMMS and Settings when the hard keyboard is connected
2012-11-17 21:59:18 -08:00
Satoshi Kataoka
0e1c092ab0 am 2656abe0: Merge "Fix an inconsistent state with IMMS and Settings when the hard keyboard is connected" into jb-mr1.1-dev
* commit '2656abe09895088eca25caafc3e92869217d1447':
  Fix an inconsistent state with IMMS and Settings when the hard keyboard is connected
2012-11-17 21:56:09 -08:00
Satoshi Kataoka
2656abe098 Merge "Fix an inconsistent state with IMMS and Settings when the hard keyboard is connected" into jb-mr1.1-dev 2012-11-17 21:53:10 -08:00
Baligh Uddin
ee16821464 am 3e932c45: (-s ours) am 0c78d9ef: am e007c0e8: am bd7ff05e: Merge "Import translations. DO NOT MERGE" into jb-mr1-dev
* commit '3e932c45c6ed698a44b73bc1b06a1bca07205e14':
  Import translations. DO NOT MERGE
2012-11-16 17:59:25 -08:00
Baligh Uddin
3e932c45c6 am 0c78d9ef: am e007c0e8: am bd7ff05e: Merge "Import translations. DO NOT MERGE" into jb-mr1-dev
* commit '0c78d9eff8d4f1398759024f9e3c56fa28111fc8':
  Import translations. DO NOT MERGE
2012-11-16 17:56:30 -08:00
Baligh Uddin
d8d1b05e4a am e4a2c2e3: (-s ours) am 8b658253: am 50a89116: Merge "Import translations. DO NOT MERGE" into jb-mr1.1-dev
* commit 'e4a2c2e37f94050499f5b5411980fac4d074cce1':
  Import translations. DO NOT MERGE
2012-11-16 17:54:41 -08:00
Baligh Uddin
0c78d9eff8 am e007c0e8: am bd7ff05e: Merge "Import translations. DO NOT MERGE" into jb-mr1-dev
* commit 'e007c0e8bc306f13149e6e099753cd110da1ec8c':
  Import translations. DO NOT MERGE
2012-11-16 17:53:35 -08:00
Baligh Uddin
e4a2c2e37f am 8b658253: am 50a89116: Merge "Import translations. DO NOT MERGE" into jb-mr1.1-dev
* commit '8b658253361971b920ebc7faaed96dec91dbb731':
  Import translations. DO NOT MERGE
2012-11-16 17:51:49 -08:00
Baligh Uddin
e007c0e8bc am bd7ff05e: Merge "Import translations. DO NOT MERGE" into jb-mr1-dev
* commit 'bd7ff05e65113cd6fa5b7e0df9c7023e8cd60ac0':
  Import translations. DO NOT MERGE
2012-11-16 17:50:13 -08:00
Baligh Uddin
8b65825336 am 50a89116: Merge "Import translations. DO NOT MERGE" into jb-mr1.1-dev
* commit '50a8911628a27fbbac678dd679aaafadceb65bee':
  Import translations. DO NOT MERGE
2012-11-16 17:48:52 -08:00
Baligh Uddin
00c78c2383 am 706c6613: (-s ours) am 8b024af2: Merge "Import translations. DO NOT MERGE" into jb-mr1-aah-dev
* commit '706c661348c6c904e6e9c22f2bbd996dfdd2b424':
  Import translations. DO NOT MERGE
2012-11-16 17:47:45 -08:00
Baligh Uddin
26c9c7e124 am 12b83163: (-s ours) am b184a168: am 7e5fc453: am 9d45abd4: Import translations. DO NOT MERGE
* commit '12b83163faa2815a762669b285ed7e223f40286a':
  Import translations. DO NOT MERGE
2012-11-16 17:47:41 -08:00
Baligh Uddin
8f6bf733cf am 4492cd96: (-s ours) am 75d66ffe: am 3a3a84e4: Merge "Import translations. DO NOT MERGE" into jb-mr1.1-dev
* commit '4492cd965df364306e4d99939fc7aaf2f2a1c6d7':
  Import translations. DO NOT MERGE
2012-11-16 17:47:32 -08:00
Baligh Uddin
d931f14c9d Merge "Import translations. DO NOT MERGE" 2012-11-16 17:46:36 -08:00
Baligh Uddin
50a8911628 Merge "Import translations. DO NOT MERGE" into jb-mr1.1-dev 2012-11-16 17:45:34 -08:00
Baligh Uddin
706c661348 am 8b024af2: Merge "Import translations. DO NOT MERGE" into jb-mr1-aah-dev
* commit '8b024af2a4490e2e8c83955dd61b455e02921182':
  Import translations. DO NOT MERGE
2012-11-16 17:44:01 -08:00
Baligh Uddin
12b83163fa am b184a168: am 7e5fc453: am 9d45abd4: Import translations. DO NOT MERGE
* commit 'b184a168150b7eda7bc4e691c1f68a0185fcbcc8':
  Import translations. DO NOT MERGE
2012-11-16 17:43:58 -08:00
Baligh Uddin
bd7ff05e65 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-11-16 17:43:56 -08:00
Baligh Uddin
4492cd965d am 75d66ffe: am 3a3a84e4: Merge "Import translations. DO NOT MERGE" into jb-mr1.1-dev
* commit '75d66ffe82a83f90a033c3e7b1f15a67014122cd':
  Import translations. DO NOT MERGE
2012-11-16 17:43:55 -08:00
Baligh Uddin
8b024af2a4 Merge "Import translations. DO NOT MERGE" into jb-mr1-aah-dev 2012-11-16 17:42:20 -08:00
Baligh Uddin
e1d23d3d2c am 0505b8bf: (-s ours) am 17936f01: Merge "Import translations. DO NOT MERGE" into jb-mr1-aah-dev
* commit '0505b8bfab86ce53212e9402e55da4dc243e6d4b':
  Import translations. DO NOT MERGE
2012-11-16 17:41:43 -08:00
Baligh Uddin
b184a16815 am 7e5fc453: am 9d45abd4: Import translations. DO NOT MERGE
* commit '7e5fc45320992d1f7063c1936662d48fde2e00f8':
  Import translations. DO NOT MERGE
2012-11-16 17:40:57 -08:00
Baligh Uddin
75d66ffe82 am 3a3a84e4: Merge "Import translations. DO NOT MERGE" into jb-mr1.1-dev
* commit '3a3a84e4d6e507102ab52df9562191bbb98f4a88':
  Import translations. DO NOT MERGE
2012-11-16 17:40:54 -08:00
Baligh Uddin
7e5fc45320 am 9d45abd4: Import translations. DO NOT MERGE
* commit '9d45abd4aa761af65e27eb2300b50f35526a4b61':
  Import translations. DO NOT MERGE
2012-11-16 17:39:20 -08:00
Baligh Uddin
dd6073bab8 Merge "Import translations. DO NOT MERGE" 2012-11-16 17:39:19 -08:00
Baligh Uddin
0505b8bfab am 17936f01: Merge "Import translations. DO NOT MERGE" into jb-mr1-aah-dev
* commit '17936f0187d4f410a54d32cdc1915e38227d95a0':
  Import translations. DO NOT MERGE
2012-11-16 17:38:10 -08:00
Baligh Uddin
3a3a84e4d6 Merge "Import translations. DO NOT MERGE" into jb-mr1.1-dev 2012-11-16 17:38:07 -08:00
Baligh Uddin
17936f0187 Merge "Import translations. DO NOT MERGE" into jb-mr1-aah-dev 2012-11-16 17:35:08 -08:00