Searched refs:iface (Results 1 - 25 of 37) sorted by relevance

12

/frameworks/base/core/java/android/net/
H A DINetworkManagementEventObserver.aidl28 * @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 DIThrottleManager.aidl27 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 DThrottleManager.java119 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 DEthernetDataTracker.java69 public void interfaceStatusChanged(String iface, boolean up) { argument
70 Log.d(TAG, "Interface status changed: " + iface + (up ? "up" : "down"));
73 public void interfaceLinkStateChanged(String iface, boolean up) { argument
74 if (mIface.equals(iface) && mLinkUp != up) {
75 Log.d(TAG, "Interface " + iface + " link " + (up ? "up" : "down"));
90 public void interfaceAdded(String iface) { argument
91 mTracker.interfaceAdded(iface);
94 public void interfaceRemoved(String iface) { argument
95 mTracker.interfaceRemoved(iface);
98 public void limitReached(String limitName, String iface) { argument
113 interfaceAdded(String iface) argument
132 interfaceRemoved(String iface) argument
[all...]
H A DNetworkStats.java45 /** {@link #iface} value when interface details unavailable. */
66 private String[] iface; field in class:NetworkStats
77 public String iface; field in class:NetworkStats.Entry
96 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, argument
98 this.iface = iface;
112 builder.append("iface=").append(iface);
128 this.iface = new String[initialSize];
142 iface
180 addIfaceValues( String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
187 addValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
264 combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
270 combineValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
310 findIndex(String iface, int uid, int set, int tag) argument
325 findIndexHinted(String iface, int uid, int set, int tag, int hintIndex) argument
[all...]
H A DIConnectivityManager.aidl74 int tether(String iface);
76 int untether(String iface);
78 int getLastTetherError(String iface);
H A DTrafficStats.java277 public static native long getTxPackets(String iface); argument
286 public static native long getRxPackets(String iface); argument
295 public static native long getTxBytes(String iface); argument
304 public static native long getRxBytes(String iface); argument
H A DConnectivityManager.java634 public int tether(String iface) { argument
636 return mService.tether(iface);
646 public int untether(String iface) { argument
648 return mService.untether(iface);
733 * @param iface The name of the interface we're interested in
738 public int getLastTetherError(String iface) { argument
740 return mService.getLastTetherError(iface);
H A DLinkProperties.java91 public void setInterfaceName(String iface) { argument
92 mIfaceName = iface;
403 String iface = in.readString();
404 if (iface != null) {
406 netProp.setInterfaceName(iface);
/frameworks/base/services/java/com/android/server/net/
H A DNetworkAlertObserver.java26 public void interfaceStatusChanged(String iface, boolean up) { argument
31 public void interfaceRemoved(String iface) { argument
36 public void interfaceLinkStateChanged(String iface, boolean up) { argument
41 public void interfaceAdded(String iface) { argument
H A DNetworkPolicyManagerService.java423 public void limitReached(String limitName, String iface) {
428 mHandler.obtainMessage(MSG_LIMIT_REACHED, iface).sendToTarget();
775 // stash identity and iface away for later use
777 final String iface = state.linkProperties.getInterfaceName();
779 networks.put(ident, iface);
793 final String iface = entry.getValue();
794 ifaceList.add(iface);
837 Slog.w(TAG, "shared quota unsupported; generating rule for each iface");
840 for (String iface : ifaces) {
841 removeInterfaceQuota(iface);
1505 setInterfaceQuota(String iface, long quotaBytes) argument
1515 removeInterfaceQuota(String iface) argument
[all...]
/frameworks/base/core/java/android/os/
H A DINetworkManagementService.aidl54 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/tools/aidl/
H A Dgenerate_java.h11 interface_type* iface);
H A Daidl.cpp751 interface_type* iface = (interface_type*)malloc( local
753 memset(iface, 0, sizeof(interface_type));
754 iface->document_item.item_type = INTERFACE_TYPE;
755 iface->interface_token.lineno = lineno;
756 iface->interface_token.data = strdup(type);
757 iface->package = packagename ? strdup(packagename) : NULL;
758 iface->name.lineno = lineno;
759 iface->name.data = strdup(classname);
760 iface->open_brace_token.lineno = lineno;
761 iface
936 interface_type* iface = (interface_type*)doc; local
[all...]
H A Dgenerate_java.cpp581 generate_interface_class(const interface_type* iface) argument
584 NAMES.Find(iface->package, iface->name.data));
588 interface->comment = gather_comments(iface->comments_token->extra);
596 NAMES.Find(iface->package, append(iface->name.data, ".Stub").c_str()),
602 NAMES.Find(iface->package,
603 append(iface->name.data, ".Stub.Proxy").c_str()),
612 interface_item_type* item = iface->interface_items;
626 interface_type* iface)
625 generate_java(const string& filename, const string& originalSrc, interface_type* iface) argument
[all...]
/frameworks/base/services/java/com/android/server/
H A DNetworkManagementService.java209 private void notifyInterfaceStatusChanged(String iface, boolean up) { argument
212 obs.interfaceStatusChanged(iface, up);
223 private void notifyInterfaceLinkStateChanged(String iface, boolean up) { argument
226 obs.interfaceLinkStateChanged(iface, up);
236 private void notifyInterfaceAdded(String iface) { argument
239 obs.interfaceAdded(iface);
249 private void notifyInterfaceRemoved(String iface) { argument
252 mActiveAlertIfaces.remove(iface);
253 mActiveQuotaIfaces.remove(iface);
257 obs.interfaceRemoved(iface);
267 notifyLimitReached(String limitName, String iface) argument
366 getInterfaceConfig(String iface) argument
420 setInterfaceConfig( String iface, InterfaceConfiguration cfg) argument
439 setInterfaceDown(String iface) argument
451 setInterfaceUp(String iface) argument
463 setInterfaceIpv6PrivacyExtensions(String iface, boolean enable) argument
480 clearInterfaceAddresses(String iface) argument
491 enableIpv6(String iface) argument
502 disableIpv6(String iface) argument
788 tetherInterface(String iface) argument
799 untetherInterface(String iface) argument
1046 getInterfaceCounter(String iface, boolean rx) argument
1101 setInterfaceQuota(String iface, long quotaBytes) argument
1127 removeInterfaceQuota(String iface) argument
1157 setInterfaceAlert(String iface, long alertBytes) argument
1189 removeInterfaceAlert(String iface) argument
1352 setInterfaceThrottle(String iface, int rxKbps, int txKbps) argument
1363 getInterfaceThrottle(String iface, boolean rx) argument
1403 getInterfaceRxThrottle(String iface) argument
1407 getInterfaceTxThrottle(String iface) argument
1411 setDefaultInterfaceForDns(String iface) argument
1424 setDnsServersForInterface(String iface, String[] servers) argument
1458 flushInterfaceDnsCache(String iface) argument
[all...]
H A DThrottleService.java143 String iface) {
151 mIface = iface;
170 InterfaceObserver(Handler handler, int msg, String iface) { argument
174 mIface = iface;
177 public void interfaceStatusChanged(String iface, boolean up) { argument
179 if (TextUtils.equals(iface, mIface)) {
185 public void interfaceLinkStateChanged(String iface, boolean up) { argument
188 public void interfaceAdded(String iface) { argument
191 if (TextUtils.equals(iface, mIface)) {
196 public void interfaceRemoved(String iface) {} argument
142 ThrottleService(Context context, INetworkManagementService nmService, TrustedTime time, String iface) argument
197 limitReached(String limitName, String iface) argument
256 getResetTime(String iface) argument
268 getPeriodStartTime(String iface) argument
279 getCliffThreshold(String iface, int cliff) argument
288 getCliffLevel(String iface, int cliff) argument
303 getByteCount(String iface, int dir, int period, int ago) argument
314 getThrottle(String iface) argument
[all...]
/frameworks/base/services/java/com/android/server/connectivity/
H A DTethering.java173 // TODO - remove and rely on real notifications of the current iface
205 public void interfaceStatusChanged(String iface, boolean up) { argument
206 if (VDBG) Log.d(TAG, "interfaceStatusChanged " + iface + ", " + up);
210 if (isWifi(iface)) {
212 } else if (isUsb(iface)) {
215 } else if (isBluetooth(iface)) {
220 TetherInterfaceSM sm = mIfaces.get(iface);
223 sm = new TetherInterfaceSM(iface, mLooper, usb);
224 mIfaces.put(iface, sm);
228 if (isUsb(iface)) {
240 interfaceLinkStateChanged(String iface, boolean up) argument
245 isUsb(String iface) argument
254 isWifi(String iface) argument
263 isBluetooth(String iface) argument
272 interfaceAdded(String iface) argument
303 interfaceRemoved(String iface) argument
318 limitReached(String limitName, String iface) argument
320 tether(String iface) argument
338 untether(String iface) argument
356 getLastTetherError(String iface) argument
[all...]
/frameworks/base/core/java/android/server/
H A DBluetoothPanProfileHandler.java255 String iface, int state, int role) {
270 ifaceAddr = enableTethering(iface);
281 BluetoothTetheringDataTracker.getInstance().startReverseTether(iface, device);
290 panDevice = new BluetoothPanDevice(state, ifaceAddr, iface, role);
296 panDevice.mIface = iface;
317 BluetoothPanDevice(int state, String ifaceAddr, String iface, int localRole) { argument
320 mIface = iface;
345 private String enableTethering(String iface) { argument
346 debugLog("updateTetherState:" + iface);
365 if (currIface.equals(iface)) {
254 handlePanDeviceStateChange(BluetoothDevice device, String iface, int state, int role) argument
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DTransferPipe.java52 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/java/com/android/internal/net/
H A DNetworkStatsFactory.java67 private static final String KEY_IFACE = "iface";
129 entry.iface = parsed.get(KEY_IFACE);
175 for (String iface : fileListWithoutNull(mStatsXtIface)) {
176 final File ifacePath = new File(mStatsXtIface, iface);
180 knownIfaces.add(iface);
181 activeIfaces.add(iface);
183 knownIfaces.add(iface);
188 entry.iface = iface;
216 entry.iface
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothTetheringDataTracker.java263 public synchronized void startReverseTether(String iface, BluetoothDevice device) { argument
264 mIface = iface;
291 public synchronized void stopReverseTether(String iface) { argument
292 NetworkUtils.stopDhcp(iface);
/frameworks/base/core/java/com/android/internal/app/
H A DIBatteryStats.aidl71 void noteNetworkInterfaceType(String iface, int type);
/frameworks/base/core/tests/coretests/src/com/android/internal/net/
H A DNetworkStatsFactoryTest.java190 private static void assertStatsEntry(NetworkStats stats, String iface, int uid, int set, argument
192 final int i = stats.findIndex(iface, uid, set, tag);
198 private static void assertStatsEntry(NetworkStats stats, String iface, int uid, int set, argument
200 final int i = stats.findIndex(iface, uid, set, tag);
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiNative.java318 public static boolean p2pGroupRemove(String iface) { argument
319 if (iface == null) return false;
320 return doBooleanCommand("P2P_GROUP_REMOVE " + iface);

Completed in 359 milliseconds

12