Merge "Cleanup copyright dates add missing method."

This commit is contained in:
Wink Saville
2010-09-21 14:55:16 -07:00
committed by Android (Google) Code Review
7 changed files with 19 additions and 10 deletions

View File

@@ -1,7 +1,6 @@
/*
**
** Copyright (C) 2009 Qualcomm Innovation Center, Inc. All Rights Reserved.
** Copyright (C) 2009 The Android Open Source Project
** Copyright (C) 2010 The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.

View File

@@ -146,7 +146,7 @@ public class LinkCapabilities implements Parcelable {
// code these to match
/** Default Role */
public static final String DEFAULT = "0";
public static final String DEFAULT = "default";
/** Bulk down load */
public static final String BULK_DOWNLOAD = "bulk.download";
/** Bulk upload */

View File

@@ -1,7 +1,6 @@
/*
**
** Copyright (C) 2009 Qualcomm Innovation Center, Inc. All Rights Reserved.
** Copyright (C) 2009 The Android Open Source Project
** Copyright (C) 2010 The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2008 The Android Open Source Project
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -195,6 +195,17 @@ public class LinkSocket extends Socket {
if (DBG) log("connect(remoteAddr) EX DEPRECATED");
}
/**
* Connect a duplicate socket socket to the same remote host address and port
* as the original with a timeout parameter.
* @param timeout the timeout value in milliseconds or 0 for infinite timeout
* @throws IOException if the socket is already connected or an error occurs
* while connecting
*/
public void connect(int timeout) throws IOException {
if (DBG) log("connect(timeout) EX");
}
/**
* Connect a duplicate socket socket to the same remote host address and port
* as the original.
@@ -237,9 +248,9 @@ public class LinkSocket extends Socket {
*/
@Override
@Deprecated
public void bind(SocketAddress localAddr) throws IOException {
public void bind(SocketAddress localAddr) throws UnsupportedOperationException {
if (DBG) log("bind(localAddr) EX throws IOException");
throw new IOException("bind is deprecated for LinkSocket");
throw new UnsupportedOperationException("bind is deprecated for LinkSocket");
}
/**

View File

@@ -84,5 +84,5 @@ public interface LinkSocketNotifier {
* Get notified of every capability change
* check for LinkSockets on that Link that are interested in that Capability - call them
*/
public void onCapabilityChanged(LinkSocket socket, LinkCapabilities changedCapabilities);
public void onCapabilitiesChanged(LinkSocket socket, LinkCapabilities changedCapabilities);
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2007 The Android Open Source Project
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.