Lines Matching defs:iface

47     /** {@link #iface} value when interface details unavailable. */
78 private String[] iface;
89 public String iface;
108 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets,
110 this.iface = iface;
141 builder.append("iface=").append(iface);
160 && iface.equals(e.iface);
171 this.iface = new String[initialSize];
183 this.iface = EmptyArray.STRING;
199 iface = parcel.createStringArray();
215 dest.writeStringArray(iface);
239 String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) {
241 iface, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, 0L);
245 public NetworkStats addValues(String iface, int uid, int set, int tag, long rxBytes,
248 iface, uid, set, tag, rxBytes, rxPackets, txBytes, txPackets, operations));
258 iface = Arrays.copyOf(iface, newLength);
270 iface[size] = entry.iface;
289 entry.iface = iface[i];
327 public NetworkStats combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets,
330 iface, uid, SET_DEFAULT, tag, rxBytes, rxPackets, txBytes, txPackets, operations);
333 public NetworkStats combineValues(String iface, int uid, int set, int tag, long rxBytes,
336 iface, uid, set, tag, rxBytes, rxPackets, txBytes, txPackets, operations));
345 final int i = findIndex(entry.iface, entry.uid, entry.set, entry.tag);
373 public int findIndex(String iface, int uid, int set, int tag) {
376 && Objects.equals(iface, this.iface[i])) {
388 public int findIndexHinted(String iface, int uid, int set, int tag, int hintIndex) {
401 && Objects.equals(iface, this.iface[i])) {
410 * on matching {@link #uid} and {@link #tag} rows. Ignores {@link #iface},
415 final int j = stats.findIndex(iface[i], uid[i], set[i], tag[i]);
429 for (String iface : this.iface) {
430 if (iface != IFACE_ALL) {
431 ifaces.add(iface);
480 * the requested {@link #iface}.
492 * the requested {@link #iface} and {@link #uid}.
494 * @param limitIface Set of {@link #iface} to include in total; or {@code
501 entry.iface = IFACE_ALL;
513 final boolean matchesIface = (limitIface == null) || (limitIface.contains(iface[i]));
595 entry.iface = left.iface[i];
601 final int j = right.findIndexHinted(entry.iface, entry.uid, entry.set, entry.tag, i);
637 * Return total statistics grouped by {@link #iface}; doesn't mutate the
653 entry.iface = iface[i];
672 entry.iface = IFACE_ALL;
716 pw.print(" iface="); pw.print(iface[i]);
816 * VPN accounting. Move some VPN's underlying traffic to other UIDs that use tun0 iface.
822 * This method performs adjustments for one active VPN package and one VPN iface at a time.
828 * @param tunIface iface of the vpn tunnel
829 * @param underlyingIface the primary underlying network iface used by the VPN application
871 "Cannot adjust VPN accounting on an iface aggregated NetworkStats.");
878 && Objects.equals(underlyingIface, recycle.iface)) {
882 if (recycle.tag == TAG_NONE && Objects.equals(tunIface, recycle.iface)) {
903 tmpEntry.iface = underlyingIface;
905 if (Objects.equals(iface[i], tunIface)) {
952 moved.iface = underlyingIface;