/frameworks/base/core/java/android/net/ |
H A D | INetworkManagementEventObserver.aidl | 28 * @param iface The interface. 31 void interfaceLinkStatusChanged(String iface, boolean link); 36 * @param iface The interface. 38 void interfaceAdded(String iface); 43 * @param iface The interface. 45 void interfaceRemoved(String iface);
|
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 | IConnectivityManager.aidl | 58 int tether(String iface); 60 int untether(String iface); 62 int getLastTetherError(String iface);
|
H A D | ConnectivityManager.java | 439 public int tether(String iface) { argument 441 return mService.tether(iface); 451 public int untether(String iface) { argument 453 return mService.untether(iface); 516 * @param iface The name of the interface we're interested in 521 public int getLastTetherError(String iface) { argument 523 return mService.getLastTetherError(iface);
|
/frameworks/base/tools/aidl/ |
H A D | generate_java.h | 11 interface_type* iface);
|
H A D | aidl.cpp | 723 interface_type* iface = (interface_type*)malloc( local 725 memset(iface, 0, sizeof(interface_type)); 726 iface->document_item.item_type = INTERFACE_TYPE; 727 iface->interface_token.lineno = lineno; 728 iface->interface_token.data = strdup(type); 729 iface->package = packagename ? strdup(packagename) : NULL; 730 iface->name.lineno = lineno; 731 iface->name.data = strdup(classname); 732 iface->open_brace_token.lineno = lineno; 733 iface 905 interface_type* iface = (interface_type*)doc; local [all...] |
H A D | generate_java.cpp | 580 generate_interface_class(const interface_type* iface) argument 583 NAMES.Find(iface->package, iface->name.data)); 587 interface->comment = gather_comments(iface->comments_token->extra); 595 NAMES.Find(iface->package, append(iface->name.data, ".Stub").c_str()), 601 NAMES.Find(iface->package, 602 append(iface->name.data, ".Stub.Proxy").c_str()), 611 interface_item_type* item = iface->interface_items; 625 interface_type* iface) 624 generate_java(const string& filename, const string& originalSrc, interface_type* iface) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | INetworkManagementService.aidl | 52 InterfaceConfiguration getInterfaceConfig(String iface); 57 void setInterfaceConfig(String iface, in InterfaceConfiguration cfg); 98 void tetherInterface(String iface); 103 void untetherInterface(String iface); 186 long getInterfaceTxCounter(String iface); 191 long getInterfaceRxCounter(String iface); 196 void setInterfaceThrottle(String iface, int rxKbps, int txKbps); 202 int getInterfaceRxThrottle(String iface); 208 int getInterfaceTxThrottle(String iface);
|
/frameworks/base/services/java/com/android/server/connectivity/ |
H A D | Tethering.java | 170 // TODO - remove and rely on real notifications of the current iface 176 public void interfaceLinkStatusChanged(String iface, boolean link) { argument 177 Log.d(TAG, "interfaceLinkStatusChanged " + iface + ", " + link); 180 if (isWifi(iface)) { 182 } else if (isUsb(iface)) { 189 TetherInterfaceSM sm = mIfaces.get(iface); 192 sm = new TetherInterfaceSM(iface, mLooper, usb); 193 mIfaces.put(iface, sm); 199 mIfaces.remove(iface); 205 private boolean isUsb(String iface) { argument 212 isWifi(String iface) argument 219 interfaceAdded(String iface) argument 249 interfaceRemoved(String iface) argument 261 tether(String iface) argument 279 untether(String iface) argument 297 getLastTetherError(String iface) argument [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | NetworkManagementService.java | 122 private void notifyInterfaceLinkStatusChanged(String iface, boolean link) { argument 125 obs.interfaceLinkStatusChanged(iface, link); 135 private void notifyInterfaceAdded(String iface) { argument 138 obs.interfaceAdded(iface); 148 private void notifyInterfaceRemoved(String iface) { argument 151 obs.interfaceRemoved(iface); 238 public InterfaceConfiguration getInterfaceConfig(String iface) throws IllegalStateException { argument 241 rsp = mConnector.doCommand("interface getcfg " + iface).get(0); 290 String iface, InterfaceConfiguration cfg) throws IllegalStateException { 291 String cmd = String.format("interface setcfg %s %s %s %s", iface, 289 setInterfaceConfig( String iface, InterfaceConfiguration cfg) argument 403 tetherInterface(String iface) argument 414 untetherInterface(String iface) argument 658 getInterfaceCounter(String iface, boolean rx) argument 698 getInterfaceRxCounter(String iface) argument 702 getInterfaceTxCounter(String iface) argument 706 setInterfaceThrottle(String iface, int rxKbps, int txKbps) argument 717 getInterfaceThrottle(String iface, boolean rx) argument 757 getInterfaceRxThrottle(String iface) argument 761 getInterfaceTxThrottle(String iface) argument [all...] |
H A D | ThrottleService.java | 150 InterfaceObserver(Handler handler, int msg, String iface) { argument 154 mIface = iface; 157 public void interfaceLinkStatusChanged(String iface, boolean link) { argument 159 if (TextUtils.equals(iface, mIface)) { 165 public void interfaceAdded(String iface) { argument 168 if (TextUtils.equals(iface, mIface)) { 173 public void interfaceRemoved(String iface) {} argument 222 // TODO - fetch for the iface 225 public synchronized long getResetTime(String iface) { argument 234 // TODO - fetch for the iface 236 getPeriodStartTime(String iface) argument 246 getCliffThreshold(String iface, int cliff) argument 255 getCliffLevel(String iface, int cliff) argument 270 getByteCount(String iface, int dir, int period, int ago) argument 282 getThrottle(String iface) argument [all...] |
H A D | ConnectivityService.java | 1461 public int tether(String iface) { argument 1465 return mTethering.tether(iface); 1472 public int untether(String iface) { argument 1476 return mTethering.untether(iface); 1483 public int getLastTetherError(String iface) { argument 1487 return mTethering.getLastTetherError(iface); 1493 // TODO - proper iface API for selection by property, inspection, etc 1512 // TODO - move iface listing, queries, etc to new module
|