/frameworks/av/media/libmediaplayerservice/ |
H A D | RemoteDisplay.cpp | 31 const char *iface) 42 mSource->start(iface); 28 RemoteDisplay( const String16 &opPackageName, const sp<IRemoteDisplayClient> &client, const char *iface) argument
|
/frameworks/native/libs/binder/ |
H A D | IInterface.cpp | 33 sp<IBinder> IInterface::asBinder(const IInterface* iface) argument 35 if (iface == NULL) return NULL; 36 return const_cast<IInterface*>(iface)->onAsBinder(); 40 sp<IBinder> IInterface::asBinder(const sp<IInterface>& iface) argument 42 if (iface == NULL) return NULL; 43 return iface->onAsBinder();
|
/frameworks/base/tools/aidl/ |
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_binder.cpp | 517 generate_binder_interface_class(const interface_type* iface) argument 520 NAMES.Find(iface->package, iface->name.data)); 524 interface->comment = gather_comments(iface->comments_token->extra); 532 NAMES.Find(iface->package, append(iface->name.data, ".Stub").c_str()), 538 NAMES.Find(iface->package, 539 append(iface->name.data, ".Stub.Proxy").c_str()), 548 interface_item_type* item = iface->interface_items;
|
/frameworks/base/core/java/android/net/ |
H A D | StaticIpConfiguration.java | 83 public List<RouteInfo> getRoutes(String iface) { argument 86 RouteInfo connectedRoute = new RouteInfo(ipAddress, null, iface); 89 routes.add(RouteInfo.makeHostRoute(gateway, iface)); 93 routes.add(new RouteInfo((IpPrefix) null, gateway, iface)); 104 public LinkProperties toLinkProperties(String iface) { argument 106 lp.setInterfaceName(iface); 110 for (RouteInfo route : getRoutes(iface)) {
|
H A D | RouteInfo.java | 98 * @param iface the interface name to send packets on 102 public RouteInfo(IpPrefix destination, InetAddress gateway, String iface, int type) { argument 155 mInterface = iface; // Strings are immutable. 163 public RouteInfo(IpPrefix destination, InetAddress gateway, String iface) { argument 164 this(destination, gateway, iface, RTN_UNICAST); 170 public RouteInfo(LinkAddress destination, InetAddress gateway, String iface) { argument 173 gateway, iface); 244 public static RouteInfo makeHostRoute(InetAddress host, String iface) { argument 245 return makeHostRoute(host, null, iface); 251 public static RouteInfo makeHostRoute(InetAddress host, InetAddress gateway, String iface) { argument [all...] |
H A D | TrafficStats.java | 300 for (String iface : getMobileIfaces()) { 301 total += getTxPackets(iface); 317 for (String iface : getMobileIfaces()) { 318 total += getRxPackets(iface); 334 for (String iface : getMobileIfaces()) { 335 total += getTxBytes(iface); 351 for (String iface : getMobileIfaces()) { 352 total += getRxBytes(iface); 360 for (String iface : getMobileIfaces()) { 361 final long stat = nativeGetIfaceStat(iface, TYPE_TCP_RX_PACKET 382 getTxPackets(String iface) argument 387 getRxPackets(String iface) argument 392 getTxBytes(String iface) argument 397 getRxBytes(String iface) argument 641 nativeGetIfaceStat(String iface, int type) argument [all...] |
H A D | LinkProperties.java | 166 * @param iface The name of the network interface used for this link. 169 public void setInterfaceName(String iface) { argument 170 mIfaceName = iface; 561 * @param iface The interface name of the link to remove. 565 public boolean removeStackedLink(String iface) { argument 566 if (iface != null) { 567 LinkProperties removed = mStackedLinks.remove(iface); 669 private boolean hasIPv4AddressOnInterface(String iface) { argument 670 return (mIfaceName.equals(iface) && hasIPv4Address()) || 671 (iface ! [all...] |
H A D | NetworkStats.java | 47 /** {@link #iface} value when interface details unavailable. */ 78 private String[] iface; field in class:NetworkStats 89 public String iface; field in class:NetworkStats.Entry 108 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, argument 110 this.iface = iface; 141 builder.append("iface=").append(iface); 160 && iface.equals(e.iface); 238 addIfaceValues( String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) argument 245 addValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 327 combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 333 combineValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 373 findIndex(String iface, int uid, int set, int tag) argument 388 findIndexHinted(String iface, int uid, int set, int tag, int hintIndex) argument [all...] |
/frameworks/base/core/java/com/android/server/net/ |
H A D | BaseNetworkObserver.java | 31 public void interfaceStatusChanged(String iface, boolean up) { argument 36 public void interfaceRemoved(String iface) { argument 41 public void addressUpdated(String iface, LinkAddress address) { argument 46 public void addressRemoved(String iface, LinkAddress address) { argument 51 public void interfaceLinkStateChanged(String iface, boolean up) { argument 56 public void interfaceAdded(String iface) { argument 66 public void limitReached(String limitName, String iface) { argument 71 public void interfaceDnsServerInfo(String iface, long lifetime, String[] servers) { argument
|
H A D | NetlinkTracker.java | 82 public NetlinkTracker(String iface, Callback callback) { argument 83 TAG = "NetlinkTracker/" + iface; 84 mInterfaceName = iface; 91 private void maybeLog(String operation, String iface, LinkAddress address) { argument 93 Log.d(TAG, operation + ": " + address + " on " + iface + 105 public void addressUpdated(String iface, LinkAddress address) { argument 106 if (mInterfaceName.equals(iface)) { 107 maybeLog("addressUpdated", iface, address); 119 public void addressRemoved(String iface, LinkAddress address) { argument 120 if (mInterfaceName.equals(iface)) { 161 interfaceDnsServerInfo(String iface, long lifetime, String[] addresses) argument [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
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/tests/coretests/src/android/net/ |
H A D | LinkPropertiesTest.java | 241 private void assertAllRoutesHaveInterface(String iface, LinkProperties lp) { argument 243 assertEquals(iface, r.getInterface());
|
H A D | NetworkStatsTest.java | 187 final NetworkStats iface = new NetworkStats(TEST_START, 2) 190 assertEquals(384L, iface.getTotalBytes()); 403 private static void assertContains(NetworkStats stats, String iface, int uid, int set, argument 405 int index = stats.findIndex(iface, uid, set, tag); 407 assertValues(stats, index, iface, uid, set, tag, 411 private static void assertValues(NetworkStats stats, int index, String iface, int uid, int set, argument 414 assertValues(entry, iface, uid, set, tag); 419 NetworkStats.Entry entry, String iface, int uid, int set, int tag) { 420 assertEquals(iface, entry.iface); 418 assertValues( NetworkStats.Entry entry, String iface, int uid, int set, int tag) argument [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
H A D | NetworkStatsFactoryTest.java | 157 private static void assertStatsEntry(NetworkStats stats, String iface, int uid, int set, argument 159 final int i = stats.findIndex(iface, uid, set, tag); 165 private static void assertStatsEntry(NetworkStats stats, String iface, int uid, int set, argument 167 final int i = stats.findIndex(iface, uid, set, tag);
|
/frameworks/base/media/java/android/media/ |
H A D | RemoteDisplay.java | 44 private native long nativeListen(String iface, String opPackageName); argument 67 * @param iface The interface address and port in the form "x.x.x.x:y". 71 public static RemoteDisplay listen(String iface, Listener listener, Handler handler, argument 73 if (iface == null) { 74 throw new IllegalArgumentException("iface must not be null"); 84 display.startListening(iface); 118 private void startListening(String iface) { argument 119 mPtr = nativeListen(iface, mOpPackageName); 122 + "remote display connection on \"" + iface + "\"");
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | Nat464Xlat.java | 213 private LinkAddress getLinkAddress(String iface) { argument 215 InterfaceConfiguration config = mNMService.getInterfaceConfig(iface); 223 private void maybeSetIpv6NdOffload(String iface, boolean on) { argument 228 Slog.d(TAG, (on ? "En" : "Dis") + "abling ND offload on " + iface); 229 mNMService.setInterfaceIpv6NdOffload(iface, on); 231 Slog.w(TAG, "Changing IPv6 ND offload on " + iface + "failed: " + e); 236 public void interfaceLinkStateChanged(String iface, boolean up) { argument 238 if (isStarted() && up && mIface.equals(iface)) { 239 Slog.i(TAG, "interface " + iface + " is up, mIsRunning " + mIsRunning + "->true"); 242 LinkAddress clatAddress = getLinkAddress(iface); 257 interfaceRemoved(String iface) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiTrafficPoller.java | 72 WifiTrafficPoller(Context context, String iface) { argument 73 mInterface = iface;
|
/frameworks/av/media/libmedia/ |
H A D | IMediaPlayerService.cpp | 133 const sp<IRemoteDisplayClient>& client, const String8& iface) 139 data.writeString8(iface); 223 String8 iface(data.readString8()); 224 sp<IRemoteDisplay> display(listenForRemoteDisplay(opPackageName, client, iface)); 132 listenForRemoteDisplay(const String16 &opPackageName, const sp<IRemoteDisplayClient>& client, const String8& iface) argument
|
/frameworks/base/core/java/android/os/ |
H A D | Binder.java | 185 public static final boolean isProxy(IInterface iface) { argument 186 return iface.asBinder() != iface;
|
/frameworks/base/core/jni/ |
H A D | android_net_TrafficStats.cpp | 77 static int parseIfaceStats(const char* iface, struct Stats* stats) { argument 97 if (!iface || !strcmp(iface, cur_iface)) { 128 char iface[32]; local 136 &idx, iface, &tag, &cur_uid, &set, &rxBytes, &rxPackets, 163 static jlong getIfaceStat(JNIEnv* env, jclass clazz, jstring iface, jint type) { argument 164 ScopedUtfChars iface8(env, iface);
|
H A D | com_android_internal_net_NetworkStatsFactory.cpp | 42 jfieldID iface; member in struct:android::__anon923 54 char iface[32]; member in struct:android::stats_line 151 // Next field is iface. 153 while (*pos != ' ' && *pos != 0 && ifaceIdx < (int)(sizeof(s.iface)-1)) { 154 s.iface[ifaceIdx] = *pos; 159 ALOGE("bad iface: %s", buffer); 163 s.iface[ifaceIdx] = 0; 165 // Is this an iface the caller is interested in? 168 if (limitIfaces[i] == s.iface) { 175 //ALOGI("skipping due to iface [all...] |
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
H A D | EthernetNetworkFactory.java | 128 private void updateInterfaceState(String iface, boolean up) { argument 129 if (!mIface.equals(iface)) { 132 Log.d(TAG, "updateInterface: " + iface + " link " + (up ? "up" : "down")); 151 public void interfaceLinkStateChanged(String iface, boolean up) { argument 152 updateInterfaceState(iface, up); 156 public void interfaceAdded(String iface) { argument 157 maybeTrackInterface(iface); 161 public void interfaceRemoved(String iface) { argument 162 stopTrackingInterface(iface); 166 private void setInterfaceUp(String iface) { argument 194 maybeTrackInterface(String iface) argument 205 stopTrackingInterface(String iface) argument 440 setInterfaceInfoLocked(String iface, String hwAddr) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkPolicyManagerServiceTest.java | 873 private void expectSetInterfaceQuota(String iface, long quotaBytes) throws Exception { argument 874 mNetworkManager.setInterfaceQuota(iface, quotaBytes); 878 private void expectRemoveInterfaceQuota(String iface) throws Exception { argument 879 mNetworkManager.removeInterfaceQuota(iface); 883 private void expectSetInterfaceAlert(String iface, long alertBytes) throws Exception { argument 884 mNetworkManager.setInterfaceAlert(iface, alertBytes); 888 private void expectRemoveInterfaceAlert(String iface) throws Exception { argument 889 mNetworkManager.removeInterfaceAlert(iface);
|
H A D | NetworkStatsServiceTest.java | 972 private static void assertValues(NetworkStats stats, String iface, int uid, int set, argument 976 final int i = stats.findIndex(iface, uid, SET_DEFAULT, tag); 982 final int i = stats.findIndex(iface, uid, SET_FOREGROUND, tag); 1022 private static NetworkState buildMobile4gState(String iface) { argument 1026 prop.setInterfaceName(iface);
|