History log of /frameworks/base/services/java/com/android/server/NsdService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4038724a536c990859866489195add7ed537006b 13-Nov-2013 Vinit Deshapnde <vinitd@google.com> Get rid of a race in NsdService in stopResolveService and getAddrInfo

Both requests are made using same id; and there is a chance that
stopResolve() is not fully completed when getAddrInfo() is issued. That
results getAddrInfo() failure, because both are using same requestId.

This change fixes this problem by creating a new unique id to call
getAddrInfo() with.

Bug: 11597153
Change-Id: I56bd78740e8a40bd31c52705dc797486aff53a50
/frameworks/base/services/java/com/android/server/NsdService.java
8ed09e893f6a4b6a4f6503186515b8f6978baa14 26-Jun-2013 Vinit Deshapnde <vinitd@google.com> Fix an NPE in NsdManager

The NPE happens because NSD Manager doesn't always notify with a 'good'
notification for SERVICE_FOUND. It can get in a situation where a
SERVICE_FOUND is recevied from MDnsDs demon when processing StopDiscovery
on the messaging thread. When that happens, NsdService sends a message
to NsdManager with an invalid index of the listener.

The fix is twofold. First, we fix NsdService to not generate a message if
it doesn't have a good listener index. And second, we also fix NsdManager
to watch for invalid index.

Change-Id: I3d63af10bded13c72e8e437a1ebf74a666760432
/frameworks/base/services/java/com/android/server/NsdService.java
88fe4ebc0b6e0499f247b5d896778dd72304bf9f 20-Dec-2012 Irfan Sheriff <isheriff@android.com> Merge "NsdService: Clear client info after resolution request is serviced."
625239a05401bbf18b04d9874cea3f82da7c29a1 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> Migrate more Secure settings to Global.

Migrate networking, storage, battery, DropBox, and PackageManager
related Secure settings to Global table.

Bug: 7232014, 7231331, 7231198
Change-Id: I772c2a9586a2f708c9db95622477f235064b8f4d
/frameworks/base/services/java/com/android/server/NsdService.java
5ac72a29593ab9a20337a2225df52bdf4754be02 30-Aug-2012 Dianne Hackborn <hackbod@google.com> Improve multi-user broadcasts.

You can now use ALL and CURRENT when sending broadcasts, to specify
where the broadcast goes.

Sticky broadcasts are now correctly separated per user, and registered
receivers are filtered based on the requested target user.

New Context APIs for more kinds of sending broadcasts as users.

Updating a bunch of system code that sends broadcasts to explicitly
specify which user the broadcast goes to.

Made a single version of the code for interpreting the requested
target user ID that all entries to activity manager (start activity,
send broadcast, start service) use.

Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c
/frameworks/base/services/java/com/android/server/NsdService.java
6727e7351e2a95d64017340c51c35239210f1381 05-Aug-2012 Vairavan Srinivasan <vairav@codeaurora.org> NsdService: Clear client info after resolution request is serviced.

Currently, the client requests tracked in mClientIds for resolution
requests isn't cleared at all and causes failues of additional registration
and discovery requests once the number of requests reaches MAX_LIMIT. In
addition, bubble up unhandled native events to default state of nsd state
machine.

Change-Id: Ief14e0fff644aa2698fcddd71f538820f802be58
/frameworks/base/services/java/com/android/server/NsdService.java
095c58b73ac112cc7e00771430765434893d8bc5 29-May-2012 Wink Saville <wink@google.com> Enhance StateMachine Quitting and logging support. DO NOT MERGE

Make StateMachine#quit non-conditional and remove the need to
process the SM_QUIT_CMD it is now private.

Rename halting to onHalting.

Add onQuitting

Change the message specific logging to be more generic and change
the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add
addLogRec(String) and addLogRec(String, State) as the generic logging
methods.

bug: 5678189
Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7

Conflicts:

services/java/com/android/server/NsdService.java
/frameworks/base/services/java/com/android/server/NsdService.java
a7590f32e06c901b30815f8ca7b719e74b4cd8bc 05-Jun-2012 Irfan Sheriff <isheriff@google.com> resolved conflicts for merge of e7884dbb to master

Change-Id: Icb13c37491d3e9f0252198f98d8110740fa1f997
919aca5663be997eb238a9635e742858d29b8592 02-Jun-2012 Irfan Sheriff <isheriff@google.com> Add contentobserver for nsd_on setting

Bug: 6606274
Change-Id: I863b9e2a2446d697f3c9c49f24dcdc2b599f091e
/frameworks/base/services/java/com/android/server/NsdService.java
bbf30dfd767f823f5f40d14b498e2a593454c5c9 29-May-2012 Wink Saville <wink@google.com> Enhance StateMachine Quitting and logging support.

Make StateMachine#quit non-conditional and remove the need to
process the SM_QUIT_CMD it is now private.

Rename halting to onHalting.

Add onQuitting

Change the message specific logging to be more generic and change
the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add
addLogRec(String) and addLogRec(String, State) as the generic logging
methods.


bug: 5678189
Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7
/frameworks/base/services/java/com/android/server/NsdService.java
22af38c5261d2c03796b496e6edb125327cace16 04-May-2012 Irfan Sheriff <isheriff@google.com> API review fixes

- Remove the notion of channel from an application perspective
- Remove the use of DnsSd as part of API and add a protocol type to allow
future extensions
- Use the listener object as a handler for stop and unregister operations. Also,
we now allow multiple active discovery operations.
- Remove init/deinit operations in favour of setting up construction

Bug:6434844
Change-Id: Id15521d571aac9c4053d81184ad66dfc54f636de
/frameworks/base/services/java/com/android/server/NsdService.java
54ac7a510245e5f00c16ff5595b6ae8d002c1c3b 19-Apr-2012 Irfan Sheriff <isheriff@google.com> Fix build

Change-Id: I1968e0d7d25f613fa6cf72f82d79f17224e3d5ab
/frameworks/base/services/java/com/android/server/NsdService.java
3ef889bf561e59561ff2c6c4b2ffb586b9c5af5c 18-Apr-2012 Irfan Sheriff <isheriff@google.com> Add user control to turn on/off nsd

Change-Id: Ide3cc20adb21ac6dffaf6b9b9136d77a129afa3b
/frameworks/base/services/java/com/android/server/NsdService.java
92784670c48759c0db604ddb95c05a7b9bdebed8 13-Apr-2012 Irfan Sheriff <isheriff@google.com> Open network service discovery API

Add support for DNS based network service discovery API. This
allows applications to discover and resolve applications on a
local network such as Wi-Fi

Change-Id: Ie89895edd35d12b7f7a23fb5fed36cb2b2079f7a
/frameworks/base/services/java/com/android/server/NsdService.java
817388e056a5d1d0e7cd7de2c6b0c9c80617bc5f 11-Apr-2012 Irfan Sheriff <isheriff@google.com> Bonjour fixes

Change-Id: I1df1dc470bb42c84abc7e1a46bedf9f206910b65
/frameworks/base/services/java/com/android/server/NsdService.java
7d024d372431effc87168afdc7cbe387680c4935 23-Mar-2012 Irfan Sheriff <isheriff@google.com> Add initial framework for DNS service discovery

Change-Id: I53c0b7ebfd75e520ebb7553612f1aa8413b6b79b
/frameworks/base/services/java/com/android/server/NsdService.java