Searched defs:iface (Results 1 - 25 of 48) sorted by relevance

12

/frameworks/av/media/libmediaplayerservice/
H A DRemoteDisplay.cpp31 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 DIInterface.cpp33 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DMockWifiMonitor.java58 public void answer(String iface, int what, Handler handler) { argument
59 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface);
62 mHandlerMap.put(iface, ifaceHandlers);
71 public void sendMessage(String iface, int what) { argument
72 sendMessage(iface, Message.obtain(null, what));
74 public void sendMessage(String iface, Message message) { argument
75 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface);
77 assertTrue("No handler for iface=" + iface + ",what=" + message.what,
86 assertTrue("No handler for message with nonexistant iface, ifac
[all...]
/frameworks/base/core/java/android/net/
H A DStaticIpConfiguration.java83 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 DRouteInfo.java98 * @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 DTrafficStats.java354 for (String iface : getMobileIfaces()) {
355 total += getTxPackets(iface);
371 for (String iface : getMobileIfaces()) {
372 total += getRxPackets(iface);
388 for (String iface : getMobileIfaces()) {
389 total += getTxBytes(iface);
405 for (String iface : getMobileIfaces()) {
406 total += getRxBytes(iface);
414 for (String iface : getMobileIfaces()) {
415 final long stat = nativeGetIfaceStat(iface, TYPE_TCP_RX_PACKET
436 getTxPackets(String iface) argument
441 getRxPackets(String iface) argument
446 getTxBytes(String iface) argument
451 getRxBytes(String iface) argument
747 nativeGetIfaceStat(String iface, int type) argument
[all...]
H A DLinkProperties.java170 * @param iface The name of the network interface used for this link.
173 public void setInterfaceName(String iface) { argument
174 mIfaceName = iface;
565 * @param iface The interface name of the link to remove.
569 public boolean removeStackedLink(String iface) { argument
570 if (iface != null) {
571 LinkProperties removed = mStackedLinks.remove(iface);
673 private boolean hasIPv4AddressOnInterface(String iface) { argument
675 return (Objects.equals(iface, mIfaceName) && hasIPv4Address()) ||
676 (iface !
[all...]
H A DNetworkStats.java47 /** {@link #iface} value when interface details unavailable. */
87 private String[] iface; field in class:NetworkStats
99 public String iface; field in class:NetworkStats.Entry
124 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, argument
126 this(iface, uid, set, tag, ROAMING_NO, rxBytes, rxPackets, txBytes, txPackets,
130 public Entry(String iface, int uid, int set, int tag, int roaming, long rxBytes, argument
132 this.iface = iface;
164 builder.append("iface=").append(iface);
266 addIfaceValues( String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
273 addValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
280 addValues(String iface, int uid, int set, int tag, int roaming, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
365 combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
372 combineValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
412 findIndex(String iface, int uid, int set, int tag, int roaming) argument
427 findIndexHinted(String iface, int uid, int set, int tag, int roaming, int hintIndex) argument
[all...]
/frameworks/base/core/java/com/android/server/net/
H A DBaseNetworkObserver.java31 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 DNetlinkTracker.java82 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 interfaceRemoved(String iface) { argument
106 maybeLog("interfaceRemoved", iface);
107 if (mInterfaceName.equals(iface)) {
118 public void addressUpdated(String iface, LinkAddress address) { argument
119 if (mInterfaceName.equals(iface)) {
132 addressRemoved(String iface, LinkAddress address) argument
174 interfaceDnsServerInfo(String iface, long lifetime, String[] addresses) argument
[all...]
/frameworks/av/media/libmedia/
H A DIMediaPlayerService.cpp115 const sp<IRemoteDisplayClient>& client, const String8& iface)
121 data.writeString8(iface);
197 String8 iface(data.readString8());
198 sp<IRemoteDisplay> display(listenForRemoteDisplay(opPackageName, client, iface));
114 listenForRemoteDisplay(const String16 &opPackageName, const sp<IRemoteDisplayClient>& client, const String8& iface) argument
/frameworks/base/core/java/com/android/internal/os/
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/tests/coretests/src/android/net/
H A DLinkPropertiesTest.java247 private void assertAllRoutesHaveInterface(String iface, LinkProperties lp) { argument
249 assertEquals(iface, r.getInterface());
H A DNetworkStatsTest.java246 final NetworkStats iface = new NetworkStats(TEST_START, 2)
249 assertEquals(384L, iface.getTotalBytes());
513 private static void assertContains(NetworkStats stats, String iface, int uid, int set, argument
516 int index = stats.findIndex(iface, uid, set, tag, roaming);
518 assertValues(stats, index, iface, uid, set, tag, roaming,
522 private static void assertValues(NetworkStats stats, int index, String iface, int uid, int set, argument
526 assertValues(entry, iface, uid, set, tag, roaming);
531 NetworkStats.Entry entry, String iface, int uid, int set, int tag, int roaming) {
532 assertEquals(iface, entry.iface);
530 assertValues( NetworkStats.Entry entry, String iface, int uid, int set, int tag, int roaming) argument
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/net/
H A DNetworkStatsFactoryTest.java158 private static void assertStatsEntry(NetworkStats stats, String iface, int uid, int set, argument
160 final int i = stats.findIndex(iface, uid, set, tag, ROAMING_NO);
166 private static void assertStatsEntry(NetworkStats stats, String iface, int uid, int set, argument
168 final int i = stats.findIndex(iface, uid, set, tag, ROAMING_NO);
/frameworks/base/media/java/android/media/
H A DRemoteDisplay.java44 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 DNat464Xlat.java219 private LinkAddress getLinkAddress(String iface) { argument
221 InterfaceConfiguration config = mNMService.getInterfaceConfig(iface);
229 private void maybeSetIpv6NdOffload(String iface, boolean on) { argument
234 Slog.d(TAG, (on ? "En" : "Dis") + "abling ND offload on " + iface);
235 mNMService.setInterfaceIpv6NdOffload(iface, on);
237 Slog.w(TAG, "Changing IPv6 ND offload on " + iface + "failed: " + e);
242 public void interfaceLinkStateChanged(String iface, boolean up) { argument
244 if (isStarted() && up && mIface.equals(iface)) {
245 Slog.i(TAG, "interface " + iface + " is up, mIsRunning " + mIsRunning + "->true");
248 LinkAddress clatAddress = getLinkAddress(iface);
263 interfaceRemoved(String iface) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiTrafficPoller.java74 WifiTrafficPoller(Context context, Looper looper, String iface) { argument
75 mInterface = iface;
H A DFrameworkFacade.java116 public long getTxPackets(String iface) { argument
117 return TrafficStats.getTxPackets(iface);
120 public long getRxPackets(String iface) { argument
121 return TrafficStats.getRxPackets(iface);
125 Context context, String iface, IpManager.Callback callback) {
126 return new IpManager(context, iface, callback);
124 makeIpManager( Context context, String iface, IpManager.Callback callback) argument
/frameworks/opt/net/wifi/tests/wifitests/jni/
H A Dwifi_nan_hal_mock.cpp52 wifi_interface_handle iface,
128 wifi_interface_handle iface) {
138 wifi_interface_handle iface,
174 wifi_interface_handle iface,
192 wifi_interface_handle iface,
236 transaction_id id, wifi_interface_handle iface,
254 transaction_id id, wifi_interface_handle iface,
280 wifi_interface_handle iface,
287 wifi_interface_handle iface,
294 wifi_interface_handle iface,
51 wifi_nan_enable_request_mock(transaction_id id, wifi_interface_handle iface, NanEnableRequest* msg) argument
127 wifi_nan_disable_request_mock(transaction_id id, wifi_interface_handle iface) argument
137 wifi_nan_publish_request_mock(transaction_id id, wifi_interface_handle iface, NanPublishRequest* msg) argument
173 wifi_nan_publish_cancel_request_mock(transaction_id id, wifi_interface_handle iface, NanPublishCancelRequest* msg) argument
191 wifi_nan_subscribe_request_mock(transaction_id id, wifi_interface_handle iface, NanSubscribeRequest* msg) argument
235 wifi_nan_subscribe_cancel_request_mock( transaction_id id, wifi_interface_handle iface, NanSubscribeCancelRequest* msg) argument
253 wifi_nan_transmit_followup_request_mock( transaction_id id, wifi_interface_handle iface, NanTransmitFollowupRequest* msg) argument
279 wifi_nan_stats_request_mock(transaction_id id, wifi_interface_handle iface, NanStatsRequest* msg) argument
286 wifi_nan_config_request_mock(transaction_id id, wifi_interface_handle iface, NanConfigRequest* msg) argument
293 wifi_nan_tca_request_mock(transaction_id id, wifi_interface_handle iface, NanTCARequest* msg) argument
300 wifi_nan_beacon_sdf_payload_request_mock( transaction_id id, wifi_interface_handle iface, NanBeaconSdfPayloadRequest* msg) argument
307 wifi_nan_register_handler_mock(wifi_interface_handle iface, NanCallbackHandler handlers) argument
319 wifi_nan_get_capabilities_mock(transaction_id id, wifi_interface_handle iface) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_net_TrafficStats.cpp77 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 Dcom_android_internal_net_NetworkStatsFactory.cpp42 jfieldID iface; member in struct:android::__anon958
55 char iface[32]; member in struct:android::stats_line
152 // Next field is iface.
154 while (*pos != ' ' && *pos != 0 && ifaceIdx < (int)(sizeof(s.iface)-1)) {
155 s.iface[ifaceIdx] = *pos;
160 ALOGE("bad iface: %s", buffer);
164 s.iface[ifaceIdx] = 0;
166 // Is this an iface the caller is interested in?
169 if (limitIfaces[i] == s.iface) {
176 //ALOGI("skipping due to iface
[all...]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
H A DEthernetNetworkFactory.java147 private void updateInterfaceState(String iface, boolean up) { argument
148 if (!mIface.equals(iface)) {
151 Log.d(TAG, "updateInterface: " + iface + " link " + (up ? "up" : "down"));
171 public void interfaceLinkStateChanged(String iface, boolean up) { argument
172 updateInterfaceState(iface, up);
176 public void interfaceAdded(String iface) { argument
177 maybeTrackInterface(iface);
181 public void interfaceRemoved(String iface) { argument
182 stopTrackingInterface(iface);
186 private void setInterfaceUp(String iface) { argument
213 maybeTrackInterface(String iface) argument
224 stopTrackingInterface(String iface) argument
500 setInterfaceInfoLocked(String iface, String hwAddr) argument
[all...]
/frameworks/opt/net/wifi/service/jni/
H A Dcom_android_server_wifi_nan_WifiNanNative.cpp213 jint iface) {
215 wifi_interface_handle handle = getIfaceHandle(helper, wifi_native_cls, iface);
242 jint iface,
245 wifi_interface_handle handle = getIfaceHandle(helper, wifi_native_cls, iface);
266 jint iface) {
268 wifi_interface_handle handle = getIfaceHandle(helper, wifi_native_cls, iface);
279 jint iface) {
281 wifi_interface_handle handle = getIfaceHandle(helper, wifi_native_cls, iface);
293 jint iface,
297 wifi_interface_handle handle = getIfaceHandle(helper, wifi_native_cls, iface);
211 android_net_wifi_nan_register_handler(JNIEnv *env, jclass cls, jclass wifi_native_cls, jint iface) argument
239 android_net_wifi_nan_enable_request(JNIEnv *env, jclass cls, jshort transaction_id, jclass wifi_native_cls, jint iface, jobject config_request) argument
263 android_net_wifi_nan_get_capabilities(JNIEnv *env, jclass cls, jshort transaction_id, jclass wifi_native_cls, jint iface) argument
276 android_net_wifi_nan_disable_request(JNIEnv *env, jclass cls, jshort transaction_id, jclass wifi_native_cls, jint iface) argument
289 android_net_wifi_nan_publish(JNIEnv *env, jclass cls, jshort transaction_id, jint publish_id, jclass wifi_native_cls, jint iface, jobject publish_data, jobject publish_settings) argument
357 android_net_wifi_nan_subscribe(JNIEnv *env, jclass cls, jshort transaction_id, jint subscribe_id, jclass wifi_native_cls, jint iface, jobject subscribe_data, jobject subscribe_settings) argument
425 android_net_wifi_nan_send_message(JNIEnv *env, jclass cls, jshort transaction_id, jclass wifi_native_cls, jint iface, jint pub_sub_id, jint req_instance_id, jbyteArray dest, jbyteArray message, jint message_length) argument
460 android_net_wifi_nan_stop_publish(JNIEnv *env, jclass cls, jshort transaction_id, jclass wifi_native_cls, jint iface, jint pub_sub_id) argument
478 android_net_wifi_nan_stop_subscribe(JNIEnv *env, jclass cls, jshort transaction_id, jclass wifi_native_cls, jint iface, jint pub_sub_id) argument
[all...]
/frameworks/base/core/java/android/os/
H A DBinder.java240 public static final boolean isProxy(IInterface iface) { argument
241 return iface.asBinder() != iface;

Completed in 422 milliseconds

12