/frameworks/base/core/java/android/net/ |
H A D | INetworkManagementEventObserver.aidl | 28 * @param iface The interface. 31 void interfaceStatusChanged(String iface, boolean up); 37 * @param iface The interface. 40 void interfaceLinkStateChanged(String iface, boolean up); 45 * @param iface The interface. 47 void interfaceAdded(String iface); 52 * @param iface The interface. 54 void interfaceRemoved(String iface); 61 * @param iface The interface on which the limit was detected. 63 void limitReached(String limitName, String iface); [all...] |
H A D | IThrottleManager.aidl | 27 long getByteCount(String iface, int dir, int period, int ago); 29 int getThrottle(String iface); 31 long getResetTime(String iface); 33 long getPeriodStartTime(String iface); 35 long getCliffThreshold(String iface, int cliff); 37 int getCliffLevel(String iface, int cliff);
|
H A D | ThrottleManager.java | 119 public long getResetTime(String iface) { argument 121 return mService.getResetTime(iface); 132 public long getPeriodStartTime(String iface) { argument 134 return mService.getPeriodStartTime(iface); 148 public long getByteCount(String iface, int direction, int period, int ago) { argument 150 return mService.getByteCount(iface, direction, period, ago); 158 * takes effect on the named iface. Currently only cliff #1 is supported (1 step) 161 public long getCliffThreshold(String iface, int cliff) { argument 163 return mService.getCliffThreshold(iface, cliff); 170 * returns the thottling bandwidth (bps) for a given cliff # on the named iface 174 getCliffLevel(String iface, int cliff) argument [all...] |
H A D | TrafficStats.java | 270 for (String iface : getMobileIfaces()) { 271 total += getTxPackets(iface); 284 for (String iface : getMobileIfaces()) { 285 total += getRxPackets(iface); 298 for (String iface : getMobileIfaces()) { 299 total += getTxBytes(iface); 312 for (String iface : getMobileIfaces()) { 313 total += getRxBytes(iface); 325 public static long getTxPackets(String iface) { argument 326 return nativeGetIfaceStat(iface, TYPE_TX_PACKET 336 getRxPackets(String iface) argument 347 getTxBytes(String iface) argument 358 getRxBytes(String iface) argument 592 nativeGetIfaceStat(String iface, int type) argument [all...] |
H A D | EthernetDataTracker.java | 72 public void interfaceStatusChanged(String iface, boolean up) { argument 73 Log.d(TAG, "Interface status changed: " + iface + (up ? "up" : "down")); 76 public void interfaceLinkStateChanged(String iface, boolean up) { argument 77 if (mIface.equals(iface) && mLinkUp != up) { 78 Log.d(TAG, "Interface " + iface + " link " + (up ? "up" : "down")); 91 public void interfaceAdded(String iface) { argument 92 mTracker.interfaceAdded(iface); 95 public void interfaceRemoved(String iface) { argument 96 mTracker.interfaceRemoved(iface); 99 public void limitReached(String limitName, String iface) { argument 114 interfaceAdded(String iface) argument 161 interfaceRemoved(String iface) argument [all...] |
H A D | NetworkStats.java | 42 /** {@link #iface} value when interface details unavailable. */ 63 private String[] iface; field in class:NetworkStats 74 public String iface; field in class:NetworkStats.Entry 93 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, argument 95 this.iface = iface; 126 builder.append("iface=").append(iface); 142 this.iface = new String[initialSize]; 156 iface 194 addIfaceValues( String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) argument 201 addValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 278 combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 284 combineValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 324 findIndex(String iface, int uid, int set, int tag) argument 339 findIndexHinted(String iface, int uid, int set, int tag, int hintIndex) argument [all...] |
H A D | ConnectivityManager.java | 705 public int tether(String iface) { argument 707 return mService.tether(iface); 717 public int untether(String iface) { argument 719 return mService.untether(iface); 804 * @param iface The name of the interface we're interested in 809 public int getLastTetherError(String iface) { argument 811 return mService.getLastTetherError(iface);
|
H A D | IConnectivityManager.aidl | 76 int tether(String iface); 78 int untether(String iface); 80 int getLastTetherError(String iface);
|
/frameworks/base/core/java/android/os/ |
H A D | INetworkManagementService.aidl | 54 InterfaceConfiguration getInterfaceConfig(String iface); 59 void setInterfaceConfig(String iface, in InterfaceConfiguration cfg); 64 void clearInterfaceAddresses(String iface); 69 void setInterfaceDown(String iface); 74 void setInterfaceUp(String iface); 79 void setInterfaceIpv6PrivacyExtensions(String iface, boolean enable); 84 void disableIpv6(String iface); 89 void enableIpv6(String iface); 95 RouteInfo[] getRoutes(String iface); 100 void addRoute(String iface, i [all...] |
/frameworks/base/services/java/com/android/server/net/ |
H A D | BaseNetworkObserver.java | 29 public void interfaceStatusChanged(String iface, boolean up) { argument 34 public void interfaceRemoved(String iface) { argument 39 public void interfaceLinkStateChanged(String iface, boolean up) { argument 44 public void interfaceAdded(String iface) { argument 54 public void limitReached(String limitName, String iface) { argument
|
H A D | LockdownVpnTracker.java | 149 final String iface = vpnConfig.interfaze; 152 if (TextUtils.equals(iface, mAcceptedIface) 157 Slog.d(TAG, "VPN connected using iface=" + iface + ", sourceAddr=" + sourceAddr); 164 mNetService.setFirewallInterfaceRule(iface, true); 168 mAcceptedIface = iface;
|
/frameworks/base/tools/aidl/ |
H A D | generate_java.h | 12 interface_type* iface); 14 Class* generate_binder_interface_class(const interface_type* iface); 15 Class* generate_rpc_interface_class(const interface_type* iface);
|
H A D | generate_java.cpp | 62 interface_type* iface) 66 if (iface->document_item.item_type == INTERFACE_TYPE_BINDER) { 67 cl = generate_binder_interface_class(iface); 69 else if (iface->document_item.item_type == INTERFACE_TYPE_RPC) { 70 cl = generate_rpc_interface_class(iface); 75 if (iface->package) document->package = iface->package; 61 generate_java(const string& filename, const string& originalSrc, interface_type* iface) argument
|
H A D | generate_java_rpc.cpp | 88 DispatcherClass(const interface_type* iface, Expression* target); 108 DispatcherClass::DispatcherClass(const interface_type* iface, Expression* target) argument 290 RpcProxyClass(const interface_type* iface, InterfaceType* interfaceType); 301 RpcProxyClass::RpcProxyClass(const interface_type* iface, InterfaceType* interfaceType) argument 304 this->comment = gather_comments(iface->comments_token->extra); 359 EventListenerClass(const interface_type* iface, Type* listenerType); 374 EventListenerClass::EventListenerClass(const interface_type* iface, Type* listenerType) argument 375 :DispatcherClass(iface, new FieldVariable(THIS_VALUE, "_listener")) 379 this->type = new Type(iface->package ? iface 425 ListenerClass(const interface_type* iface) argument 455 EndpointBaseClass(const interface_type* iface) argument 953 generate_rpc_interface_class(const interface_type* iface) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | RemoteDisplay.java | 43 private native int nativeListen(String iface); argument 63 * @param iface The interface address and port in the form "x.x.x.x:y". 67 public static RemoteDisplay listen(String iface, Listener listener, Handler handler) { argument 68 if (iface == null) { 69 throw new IllegalArgumentException("iface must not be null"); 79 display.startListening(iface); 105 private void startListening(String iface) { argument 106 mPtr = nativeListen(iface); 109 + "remote display connection on \"" + iface + "\"");
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | RemoteDisplay.cpp | 27 const sp<IRemoteDisplayClient> &client, const char *iface) 37 mSource->start(iface); 26 RemoteDisplay( const sp<IRemoteDisplayClient> &client, const char *iface) argument
|
H A D | RemoteDisplay.h | 34 RemoteDisplay(const sp<IRemoteDisplayClient> &client, const char *iface);
|
/frameworks/base/services/java/com/android/server/ |
H A D | NetworkManagementService.java | 232 private void notifyInterfaceStatusChanged(String iface, boolean up) { argument 236 mObservers.getBroadcastItem(i).interfaceStatusChanged(iface, up); 247 private void notifyInterfaceLinkStateChanged(String iface, boolean up) { argument 251 mObservers.getBroadcastItem(i).interfaceLinkStateChanged(iface, up); 261 private void notifyInterfaceAdded(String iface) { argument 265 mObservers.getBroadcastItem(i).interfaceAdded(iface); 275 private void notifyInterfaceRemoved(String iface) { argument 278 mActiveAlerts.remove(iface); 279 mActiveQuotas.remove(iface); 284 mObservers.getBroadcastItem(i).interfaceRemoved(iface); 294 notifyLimitReached(String limitName, String iface) argument 484 getInterfaceConfig(String iface) argument 528 setInterfaceConfig(String iface, InterfaceConfiguration cfg) argument 550 setInterfaceDown(String iface) argument 558 setInterfaceUp(String iface) argument 566 setInterfaceIpv6PrivacyExtensions(String iface, boolean enable) argument 579 clearInterfaceAddresses(String iface) argument 589 enableIpv6(String iface) argument 599 disableIpv6(String iface) argument 839 startReverseTethering(String iface) argument 869 tetherInterface(String iface) argument 879 untetherInterface(String iface) argument 1076 addIdleTimer(String iface, int timeout, String label) argument 1099 removeIdleTimer(String iface) argument 1139 setInterfaceQuota(String iface, long quotaBytes) argument 1162 removeInterfaceQuota(String iface) argument 1188 setInterfaceAlert(String iface, long alertBytes) argument 1216 removeInterfaceAlert(String iface) argument 1348 setInterfaceThrottle(String iface, int rxKbps, int txKbps) argument 1357 getInterfaceThrottle(String iface, boolean rx) argument 1379 getInterfaceRxThrottle(String iface) argument 1385 getInterfaceTxThrottle(String iface) argument 1391 setDefaultInterfaceForDns(String iface) argument 1401 setDnsServersForInterface(String iface, String[] servers) argument 1430 flushInterfaceDnsCache(String iface) argument 1457 setFirewallInterfaceRule(String iface, boolean allow) argument [all...] |
H A D | CommonTimeManagementService.java | 110 public void interfaceStatusChanged(String iface, boolean up) { 113 public void interfaceLinkStateChanged(String iface, boolean up) { 116 public void interfaceAdded(String iface) { 119 public void interfaceRemoved(String iface) { 122 public void limitReached(String limitName, String iface) { } 210 pw.println(String.format(" No iface timeout : %d", NO_INTERFACE_TIMEOUT)); 308 for (String iface : ifaceList) { 312 if (iface.contains(r.mPrefix)) { 321 InterfaceConfiguration config = mNetMgr.getInterfaceConfig(iface); 326 bindIface = iface; [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiNative.java | 66 private native boolean connectToSupplicant(String iface); argument 68 private native void closeSupplicantConnection(String iface); argument 74 private native String waitForEvent(String iface); argument 76 private native boolean doBooleanCommand(String iface, String command); argument 78 private native int doIntCommand(String iface, String command); argument 80 private native String doStringCommand(String iface, String command); argument 82 public WifiNative(String iface) { argument 83 mInterface = iface; 84 mTAG = "WifiNative-" + iface; 404 public boolean startWpsPbc(String iface, Strin argument 417 startWpsPinKeypad(String iface, String pin) argument 431 startWpsPinDisplay(String iface, String bssid) argument 486 setP2pGroupIdle(String iface, int time) argument 498 setP2pPowerSave(String iface, boolean enabled) argument 638 p2pGroupRemove(String iface) argument [all...] |
/frameworks/base/services/java/com/android/server/connectivity/ |
H A D | Tethering.java | 176 // TODO - remove and rely on real notifications of the current iface 208 public void interfaceStatusChanged(String iface, boolean up) { argument 209 if (VDBG) Log.d(TAG, "interfaceStatusChanged " + iface + ", " + up); 213 if (isWifi(iface)) { 215 } else if (isUsb(iface)) { 218 } else if (isBluetooth(iface)) { 223 TetherInterfaceSM sm = mIfaces.get(iface); 226 sm = new TetherInterfaceSM(iface, mLooper, usb); 227 mIfaces.put(iface, sm); 231 if (isUsb(iface)) { 243 interfaceLinkStateChanged(String iface, boolean up) argument 248 isUsb(String iface) argument 257 isWifi(String iface) argument 266 isBluetooth(String iface) argument 275 interfaceAdded(String iface) argument 306 interfaceRemoved(String iface) argument 321 limitReached(String limitName, String iface) argument 325 tether(String iface) argument 343 untether(String iface) argument 361 getLastTetherError(String iface) argument [all...] |
/frameworks/base/services/java/com/android/server/am/ |
H A D | TransferPipe.java | 52 void go(IInterface iface, FileDescriptor fd, String prefix, argument 73 static void go(Caller caller, IInterface iface, FileDescriptor out, argument 75 go(caller, iface, out, prefix, args, DEFAULT_TIMEOUT); 78 static void go(Caller caller, IInterface iface, FileDescriptor out, argument 80 if ((iface.asBinder()) instanceof Binder) { 83 caller.go(iface, out, prefix, args); 91 caller.go(iface, tp.getWriteFd().getFileDescriptor(), prefix, args);
|
/frameworks/base/core/jni/ |
H A D | android_net_TrafficStats.cpp | 84 static int parseIfaceStat(const char* iface, struct IfaceStat* stat) { argument 103 if (!iface || !strcmp(iface, cur_iface)) { 122 static uint64_t getIfaceStatType(const char* iface, IfaceStatType type) { argument 126 if (parseIfaceStat(iface, &stat)) { 148 static jlong getIfaceStat(JNIEnv* env, jclass clazz, jstring iface, jint type) { argument 150 const char* ifaceChars = env->GetStringUTFChars(iface, NULL); 153 env->ReleaseStringUTFChars(iface, ifaceChars);
|
H A D | android_media_RemoteDisplay.cpp | 129 ScopedUtfChars iface(env, ifaceStr); 141 client, String8(iface.c_str())); 144 iface.c_str());
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothTetheringDataTracker.java | 291 private boolean readLinkProperty(String iface) { argument 292 String DhcpPrefix = "dhcp." + iface + "."; 310 mLinkProperties.setInterfaceName(iface); 313 public synchronized void startReverseTether(String iface) { argument 314 mIface = iface; 358 //NetworkUtils.stopDhcp(iface);
|