Commit Graph

94 Commits

Author SHA1 Message Date
Nick Pelly
b015e193b7 Add trailing "\n" to debug output. 2009-08-26 14:11:24 -07:00
Nick Pelly
1eada0d3d6 Add uuids to adb shell dumpsys bluetooth 2009-08-26 10:57:33 -07:00
Nick Pelly
b23d4458a9 Fix authorization check for Audio Source.
Bluez sends the UUID of the local service being accessed in Agent.Authorize,
not the remote service. So check for Audio Source not Audio Sink.

In most cases this was not a problem because Bluez sends us AdvAudioDist UUID
(0x110D) for incoming A2DP connections, which we already check for. This is a
precautionary change.
2009-08-26 10:46:37 -07:00
Jackson Fan
9abcf0982e Use correct UUID to authorize AVRCP 2009-08-24 19:02:58 -07:00
Jean-Baptiste Queru
dd03c6135f resolved conflicts for merge of 081a136d to eclair 2009-08-21 12:59:04 -07:00
Anonymous Coward
081a136d25 Remove third party support for Quick Search Box (aka global search).
- @hides relevant APIs
- removes relevant javadoc
- enforces that only system apps can participate

note: general support is still there, will be easy to reenable when we are ready.
2009-08-21 12:47:14 -07:00
Jaikumar Ganesh
397d8f4f48 Set BondState to Canceled when user cancels pairing. 2009-08-21 11:51:12 -07:00
krosaen
d2d6014f71 NEW API for SearchManager and Activity to 'triggerSearch'.
This is pretty much the same thing as startSearch, except it also launches the
query.  We enforce that this can only be done for the package of the app that is
associated with the search mananger (e.g you can't trigger a contacts search
from anywhere).
2009-08-18 08:56:03 -07:00
Nick Pelly
bd022f423a Bluetooth: API change.
Split BluetoothDevice into BluetoothDevice and BluetoothAdapter.

BluetoothAdapter: Represents the local BT adapter. Operations on the local
                  adapter (start a scan, etc).
BluetoothDevice: Represents a remote BT device. Operations on remote devices
                 (pair, connect, etc).

IBluetoothDevice.aidl -> Bluetooth.aidl
BluetoothDeviceService.java -> BluetoothDeviceService.java

TODO:
Javadoc
2009-08-18 08:24:22 -07:00
Jaikumar Ganesh
9488cbd0b9 Add incoming connections to the cache and change authorization check.
a) Add incoming connections to cache.
b) Some devices like DS970 sends Adv Audio as the UUID for incoming connection.
2009-08-04 10:06:35 -07:00
Android (Google) Code Review
a45c5f07e2 Merge change 9216
* changes:
  Fix UUID typo and allow incoming AVRCP connections.
2009-07-31 10:41:27 -07:00
Jaikumar Ganesh
ade40526c8 Fix UUID typo and allow incoming AVRCP connections. 2009-07-31 10:33:47 -07:00
Android (Google) Code Review
bb2e26c57c am 67fb5728: Merge change 9147 into donut
Merge commit '67fb5728332f7e3f8c11245fb9cb9d1cfe2b5607'

* commit '67fb5728332f7e3f8c11245fb9cb9d1cfe2b5607':
  Fix in-app search shortcut icons
2009-07-30 16:05:59 -07:00
Bjorn Bringert
83dba19a8e Fix in-app search shortcut icons
When the suggstion provider is in a different package from the searchable
activity, the icons stored for shortcuts used the package of the
activity instead of the provider.

Fixes http://b/issue?id=2023993
2009-07-30 13:58:23 +01:00
Android (Google) Code Review
cda5ad5b70 am 9b91d78a: Merge change 8911 into donut
Merge commit '9b91d78a21f6e66f571169f2c6f2f94e638511e8'

* commit '9b91d78a21f6e66f571169f2c6f2f94e638511e8':
  Fix issue #1999179: search -> click result -> press home = search dialog is shown then hidden
2009-07-29 16:45:14 -07:00
Jaikumar Ganesh
0ba3cfaa56 Fix NullPointerException when checking if its a sinkDevice. 2009-07-29 11:43:25 -07:00
Dianne Hackborn
a6ddc8af22 Fix issue #1999179: search -> click result -> press home = search dialog is shown then hidden
Re-arrange various things to ensure that the search dialog is told about system windows being
closed before it is told about the navigation back to home.
2009-07-28 17:55:13 -07:00
Jaikumar Ganesh
6754296487 Add PBAP service start. 2009-07-26 22:54:36 -07:00
Eric Laurent
a553c25b33 Fix issue 1795088 Improve audio routing code
Initial commit for review.
Integrated comments after patch set 1 review.
Fixed lockup in AudioFlinger::ThreadBase::exit()
Fixed lockup when playing tone with AudioPlocyService startTone()
2009-07-23 06:03:39 -07:00
Android (Google) Code Review
ba5e889eae am 6de72ea3: Merge change 8201 into donut
Merge commit '6de72ea39c9c00a2dc5ec539bf5733020c4db52f'

* commit '6de72ea39c9c00a2dc5ec539bf5733020c4db52f':
  Proactively set mVisible attribute in startSearch and stopSearch (not just in message handler).
2009-07-22 11:51:01 -07:00
Karl Rosaen
1c07ebb651 Proactively set mVisible attribute in startSearch and stopSearch (not just in message handler).
This way someone can call searchManger.startSearch() and immediately have searchManger.isVisible() reflect
the correct value.

Fixes failing tests and bug 1993675
2009-07-22 10:11:00 -07:00
Android (Google) Code Review
91aa1ad300 am d5b6b4b7: Merge change 7903 into donut
Merge commit 'd5b6b4b75ef928d02e0d728bebbfe543cae154bc'

* commit 'd5b6b4b75ef928d02e0d728bebbfe543cae154bc':
  Fix back key handling for search dialog.
2009-07-20 14:23:43 -07:00
Karl Rosaen
ea52d29bc4 Fix back key handling for search dialog.
Now that the search manager service handles hiding (not dismissing) and reshowing it
when the user hits back after launching a result, search manager can't cache
"mShowing".  Also noticed a few other minor problems that was hosing the handling
of pause / resume to reshow the dialog, like moving some logic to onHide instead
of onDismiss.
2009-07-20 14:08:24 -07:00
Jaikumar Ganesh
b0eca41de0 Initial support of 2.1 pairing.
Note: Some cases have not been tested yet, as we would need to
get proper UI support.
2009-07-17 17:52:26 -07:00
Jaikumar Ganesh
12cae39747 Revert "Initial support of 2.1 pairing."
This reverts commit 228b2f3a81.
2009-07-17 14:45:22 -07:00
Jaikumar Ganesh
228b2f3a81 Initial support of 2.1 pairing.
Note: Some cases have not been tested yet, as we would need to
get proper UI support.
2009-07-17 14:00:32 -07:00
Jaikumar Ganesh
7f74d534f3 Reconnect to A2DP device only if it supports that profile, fix HF AG UUID. 2009-07-16 23:42:42 -07:00
Nick Pelly
03c707ab6f Register OPUSH - Bluetooth OPP service record. 2009-07-14 21:32:14 -07:00
Android (Google) Code Review
de1acad88d am b3948bbd: Merge change 7133 into donut
Merge commit 'b3948bbd8dfba7fac64d2c06d871386c987692c2'

* commit 'b3948bbd8dfba7fac64d2c06d871386c987692c2':
  Run the search dialog at THREAD_PRIORITY_DEFAULT instead of THREAD_PRIORITY_FOREGROUND.
2009-07-14 16:06:08 -07:00
Karl Rosaen
957eb1d975 Run the search dialog at THREAD_PRIORITY_DEFAULT instead of THREAD_PRIORITY_FOREGROUND.
When running at forground priority, the search dialog seems to starve the soft keyboard, leading
to unresponsiveness.
2009-07-14 16:02:38 -07:00
Dianne Hackborn
dace230043 resolved conflicts for merge of b06ea706 to master 2009-07-14 12:51:00 -07:00
Dianne Hackborn
b06ea70653 Add reporting of activity movement for search manager.
This adds a new API with the activity manager to find out about movement between
activities.  For my sanity, the old IActivityWatcher is now renamed to
IActivityController, and the new activity movement interface is named
IActivityWatcher.

This changes the search manager itself to use the new API to manage its state.
Note that there are still problems when going back to the search dialog after
it was hidden -- the suggestions window no longer appears until you explicitly
dismiss and re-show it.
2009-07-14 11:37:11 -07:00
Android (Google) Code Review
769ebaaa31 am 5c04841e: Merge change 6912 into donut
Merge commit '5c04841ee36ba93c9a8998e7668320d74adc3d22'

* commit '5c04841ee36ba93c9a8998e7668320d74adc3d22':
  JavaDoc for SearchableInfo.getActivityMetaData()
2009-07-13 09:06:16 -07:00
Android (Google) Code Review
5c04841ee3 Merge change 6912 into donut
* changes:
  JavaDoc for SearchableInfo.getActivityMetaData()
2009-07-13 09:04:25 -07:00
Bjorn Bringert
13b24b7904 JavaDoc for SearchableInfo.getActivityMetaData()
See http://b/editIssue?id=1968025
2009-07-13 15:29:59 +01:00
Android (Google) Code Review
e50f1fa605 am 506dd3fc: Merge change 6907 into donut
Merge commit '506dd3fc137df3f002a58ee2edb5b393e1f365cf'

* commit '506dd3fc137df3f002a58ee2edb5b393e1f365cf':
  Initialize searchmanager on demand
2009-07-13 06:13:06 -07:00
Bjorn Bringert
9bc75cb9c2 Initialize searchmanager on demand
The initialization of SearchManagerService is delayed, which caused
problems when other services (e.g. GlobalSearch) start up.
This change makes the SearchManagerService components
initialize when they are first needed, or when the server thread
is done with its other processing, whichever comes first.

Fixes http://b/issue?id=1970975
2009-07-13 13:23:23 +01:00
Android (Google) Code Review
00af1a86a8 am 8440ecce: Merge change 6668 into donut
Merge commit '8440ecce813112493d2af4097608735c4c7a870c'

* commit '8440ecce813112493d2af4097608735c4c7a870c':
  Check if a searchable is null before adding it to the list of searchables
2009-07-09 15:52:02 -07:00
Mike LeBeau
f4422ce829 Check if a searchable is null before adding it to the list of searchables
for web search. If getActivityMetaData returned null for a web search
searchable, previously, this null would get added to the list of searchables
for web search, which was causing GlobalSearch's SearchSettings to crash
with an NPE (which I've guarded against in change 6602).
2009-07-09 14:17:12 -07:00
Android (Google) Code Review
cd964761dc am 91b0a701: Merge change 6284 into donut
Merge commit '91b0a7013e4b6d170087cb4c9a3c35b787f92a6b'

* commit '91b0a7013e4b6d170087cb4c9a3c35b787f92a6b':
  Run search UI on its own thread.
2009-07-08 13:52:26 -07:00
Bjorn Bringert
444c727e0e Run search UI on its own thread.
Details:

- Add a new SearchDialogWrapper class that makes sure
  all access to the SearchDialog is run one a single thread
  other than the main ServerThread.
- Don't save/restore seach dialog state in Activity.
  This resulted in lots of calls to the SearchManager
  throughout the life cycle of all activities, for
  the questionable benefit of restoring the search dialog
  in a few cases.
- Remove search UI state save/restore, and the isVisible()
  method from SearchManagerService. They are no longer used,
  and were tricky to implement since they return values from
  the search UI thread to the service.
- Handle configuration changes in searchDialogWrapper instead
  of calling through from Activity.

Fixes http://b/issue?id=1938101

TODO:
- Activity.performPause() calls stopSearch(). This call may not happen
  until the new activity has been started. If the new activity starts a
  search immediately, this search could be cancelled by the old activity's
  call top stopSearch().
2009-07-08 17:43:49 +01:00
Satish Sampath
f1d0b7cd10 am d21572cd: NEW_API: Expose autoUrlDetect searchable attribute.
Merge commit 'd21572cd446e56efe94689324107927ac2bffd2a'

* commit 'd21572cd446e56efe94689324107927ac2bffd2a':
  NEW_API: Expose autoUrlDetect searchable attribute.
2009-07-08 09:17:21 -07:00
Satish Sampath
d21572cd44 NEW_API: Expose autoUrlDetect searchable attribute.
If provided and true, URLs entered in the search dialog while searching within this activity would be detected and treated as URLs (show a 'go' button in the keyboard and invoke the browser directly when user launches the URL instead of passing the URL to the activity). If set to false any URLs entered are treated as normal query text.
The default value is false. This is an optional attribute.
2009-07-08 15:09:08 +01:00
Android (Google) Code Review
71eb2471a3 am 50d87fbd: Merge change 5879 into donut
Merge commit '50d87fbd691a59759d5bbe12284d322f9fa967dd'

* commit '50d87fbd691a59759d5bbe12284d322f9fa967dd':
  Represent new searchSettingsDescription attribute on searchables in
2009-07-02 14:25:33 -07:00
Mike LeBeau
735b333bf6 Represent new searchSettingsDescription attribute on searchables in
SearchableInfo.
2009-06-30 18:27:40 -07:00
Jaikumar Ganesh
8bc8ce44f7 Rework the property parsing code.
1. Fix and remove CodeDuplication TODO
2. Fix crash while unpairing.
3. For array properties, make it a bit more efficient by passing,
   lesser String objects from JNI.
4. Remove void pointer usage and use union to make code more readble.
2009-06-29 11:41:19 -07:00
Satish Sampath
f86a58ff3d am 41282a35: EnhancedGoogleSearch overrides GoogleSearch if present.
Merge commit '41282a35568b51270440450c46bb31aa00e52caa'

* commit '41282a35568b51270440450c46bb31aa00e52caa':
  EnhancedGoogleSearch overrides GoogleSearch if present.
2009-06-23 14:18:21 -07:00
Satish Sampath
41282a3556 EnhancedGoogleSearch overrides GoogleSearch if present.
This is to fix bug http://b/issue?id=1929993. If user had GoogleSearch
earlier and that was the default, it will get overridden by
EnhancedGoogleSearch when the user installs the latter from the market.
2009-06-23 22:15:09 +01:00
Jaikumar Ganesh
395d102366 Send the name of the device in the DeviceFound signal.
When name resolution is done, we get a DeviceFound signal.
Settings app was not updating the cache.
2009-06-19 17:43:36 -07:00
Android (Google) Code Review
530b7125fa am 03255de3: Merge change 4757 into donut
Merge commit '03255de32d127d17504b6d475e6e79190dd637f8'

* commit '03255de32d127d17504b6d475e6e79190dd637f8':
  Add getBatteryUsageHint() to BluetoothHeadset for power monitoring.
2009-06-19 11:31:37 -07:00