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

123

/frameworks/base/core/java/android/net/metrics/
H A DWakeupEvent.java29 public String iface; field in class:WakeupEvent
44 j.add(iface);
H A DWakeupStats.java35 public final String iface; field in class:WakeupStats
52 public WakeupStats(String iface) { argument
53 this.iface = iface;
107 j.add(iface);
/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/ethernet/java/com/android/server/ethernet/
H A DEthernetConfigStore.java58 public void write(String iface, IpConfiguration config) { argument
63 modified = mIpConfigurations.remove(iface) != null;
65 IpConfiguration oldConfig = mIpConfigurations.put(iface, config);
H A DEthernetServiceImpl.java101 public IpConfiguration getConfiguration(String iface) { argument
104 if (mTracker.isRestrictedInterface(iface)) {
108 return new IpConfiguration(mTracker.getIpConfiguration(iface));
115 public void setConfiguration(String iface, IpConfiguration config) { argument
122 if (mTracker.isRestrictedInterface(iface)) {
128 mTracker.updateIpConfiguration(iface, new IpConfiguration(config));
135 public boolean isAvailable(String iface) { argument
138 if (mTracker.isRestrictedInterface(iface)) {
142 return mTracker.isTrackingInterface(iface);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DMockWifiMonitor.java42 public void registerHandler(String iface, int what, Handler handler) { argument
43 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface);
46 mHandlerMap.put(iface, ifaceHandlers);
52 public synchronized void startMonitoring(String iface) { argument
59 public void sendMessage(String iface, int what) { argument
60 sendMessage(iface, Message.obtain(null, what));
63 public void sendMessage(String iface, Message message) { argument
64 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface);
66 assertTrue("No handler for iface=" + iface
[all...]
/frameworks/base/core/java/android/net/
H A DEthernetManager.java54 public void onAvailabilityChanged(String iface, boolean isAvailable) {
56 MSG_AVAILABILITY_CHANGED, isAvailable ? 1 : 0, 0, iface).sendToTarget();
66 * @param iface Ethernet interface name
69 void onAvailabilityChanged(String iface, boolean isAvailable); argument
87 public IpConfiguration getConfiguration(String iface) { argument
89 return mService.getConfiguration(iface);
98 public void setConfiguration(String iface, IpConfiguration config) { argument
100 mService.setConfiguration(iface, config);
116 * @param iface Ethernet interface name
118 public boolean isAvailable(String iface) { argument
[all...]
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...]
/frameworks/base/core/java/android/os/
H A DHwBinder.java81 * @param iface fully-qualified interface name for example foo.bar@1.3::IBaz
88 String iface,
91 return getService(iface, serviceName, false /* retry */);
95 * @param iface fully-qualified interface name for example foo.bar@1.3::IBaz
103 String iface,
87 getService( String iface, String serviceName) argument
102 getService( String iface, String serviceName, boolean retry) argument
/frameworks/base/core/java/com/android/internal/usb/
H A DDumpUtils.java107 long id, @NonNull UsbInterface iface) {
110 dump.write("id", UsbInterfaceProto.ID, iface.getId());
112 iface.getAlternateSetting());
113 dump.write("name", UsbInterfaceProto.NAME, iface.getName());
114 dump.write("class", UsbInterfaceProto.CLASS, iface.getInterfaceClass());
115 dump.write("subclass", UsbInterfaceProto.SUBCLASS, iface.getInterfaceSubclass());
116 dump.write("protocol", UsbInterfaceProto.PROTOCOL, iface.getInterfaceProtocol());
118 int numEndpoints = iface.getEndpointCount();
120 writeEndpoint(dump, "endpoints", UsbInterfaceProto.ENDPOINTS, iface.getEndpoint(i));
106 writeInterface(@onNull DualDumpOutputStream dump, @NonNull String idName, long id, @NonNull UsbInterface iface) argument
/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.cpp97 const sp<IRemoteDisplayClient>& client, const String8& iface)
103 data.writeString8(iface);
166 String8 iface(data.readString8());
167 sp<IRemoteDisplay> display(listenForRemoteDisplay(opPackageName, client, iface));
96 listenForRemoteDisplay(const String16 &opPackageName, const sp<IRemoteDisplayClient>& client, const String8& iface) argument
/frameworks/base/core/java/com/android/internal/os/
H A DTransferPipe.java59 void go(IInterface iface, FileDescriptor fd, String prefix, argument
133 static void go(Caller caller, IInterface iface, FileDescriptor out, argument
135 go(caller, iface, out, prefix, args, DEFAULT_TIMEOUT);
138 static void go(Caller caller, IInterface iface, FileDescriptor out, argument
140 if ((iface.asBinder()) instanceof Binder) {
143 caller.go(iface, out, prefix, args);
150 caller.go(iface, tp.getWriteFd().getFileDescriptor(), prefix, args);
/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/tests/net/java/com/android/internal/net/
H A DNetworkStatsFactoryTest.java242 private static void assertStatsEntry(NetworkStats stats, String iface, int uid, int set, argument
244 final int i = stats.findIndex(iface, uid, set, tag, METERED_NO, ROAMING_NO,
247 fail(String.format("no NetworkStats for (iface: %s, uid: %d, set: %d, tag: %d)",
248 iface, uid, set, tag));
255 private static void assertStatsEntry(NetworkStats stats, String iface, int uid, int set, argument
257 final int i = stats.findIndex(iface, uid, set, tag, METERED_NO, ROAMING_NO,
260 fail(String.format("no NetworkStats for (iface: %s, uid: %d, set: %d, tag: %d)",
261 iface, uid, set, tag));
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
H A DWifiAwareNativeManagerTest.java77 public android.hardware.wifi.V1_2.IWifiNanIface mockableCastTo_1_2(IWifiNanIface iface) { argument
78 return (iface == mIWifiNanIface12Mock) ? mIWifiNanIface12Mock : null;
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
H A DSupplicantP2pIfaceCallbackTest.java69 SupplicantP2pIfaceCallbackSpy(String iface, WifiP2pMonitor monitor) { argument
70 super(iface, monitor);
94 public void answer(String iface, WifiP2pDevice device) {
97 assertEquals(iface, mIface);
197 public void answer(String iface, WifiP2pDevice device) {
198 assertEquals(iface, mIface);
239 public void answer(String iface, WifiP2pConfig config) {
240 assertEquals(iface, mIface);
302 public void answer(String iface, WifiP2pGroup group) {
303 assertEquals(iface, mIfac
[all...]
/frameworks/base/core/jni/
H A Dcom_android_internal_net_NetworkStatsFactory.cpp49 jfieldID iface; member in struct:android::__anon926
131 // Next field is iface.
133 while (*pos != ' ' && *pos != 0 && ifaceIdx < (int)(sizeof(s.iface)-1)) {
134 s.iface[ifaceIdx] = *pos;
139 ALOGE("bad iface: %s", buffer);
143 s.iface[ifaceIdx] = 0;
145 // Is this an iface the caller is interested in?
148 if (limitIfaces[i] == s.iface) {
155 //ALOGI("skipping due to iface: %s", buffer);
214 ScopedLocalRef<jobjectArray> iface(en
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNat464Xlat.java68 IDLE, // start() not called. Base iface and stacked iface names are null.
69 STARTING, // start() called. Base iface and stacked iface names are known.
70 RUNNING, // start() called, and the stacked iface is known to be up.
266 private LinkAddress getLinkAddress(String iface) { argument
268 InterfaceConfiguration config = mNMService.getInterfaceConfig(iface);
279 private void handleInterfaceLinkStateChanged(String iface, boolean up) { argument
280 if (!isStarting() || !up || !Objects.equals(mIface, iface)) {
284 LinkAddress clatAddress = getLinkAddress(iface);
301 handleInterfaceRemoved(String iface) argument
322 interfaceLinkStateChanged(String iface, boolean up) argument
327 interfaceRemoved(String iface) argument
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
H A DTetheringConfiguration.java121 public boolean isUsb(String iface) { argument
122 return matchesDownstreamRegexs(iface, tetherableUsbRegexs);
125 public boolean isWifi(String iface) { argument
126 return matchesDownstreamRegexs(iface, tetherableWifiRegexs);
129 public boolean isBluetooth(String iface) { argument
130 return matchesDownstreamRegexs(iface, tetherableBluetoothRegexs);
266 private static boolean matchesDownstreamRegexs(String iface, String[] regexs) { argument
268 if (iface.matches(regex)) return true;
/frameworks/base/services/core/jni/
H A Dcom_android_server_net_NetworkStatsService.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,
172 static jlong getIfaceStat(JNIEnv* env, jclass clazz, jstring iface, jint type, argument
174 ScopedUtfChars iface8(env, iface);
/frameworks/base/services/net/java/android/net/ip/
H A DIpReachabilityMonitor.java157 static Dependencies makeDefault(Context context, String iface) { argument
158 final String lockName = TAG + "." + iface;
237 sb.append("iface{" + mInterfaceParams + "}," + sep);
/frameworks/base/tests/net/java/android/net/
H A DLinkPropertiesTest.java258 private void assertAllRoutesHaveInterface(String iface, LinkProperties lp) { argument
260 assertEquals(iface, r.getInterface());

Completed in 530 milliseconds

123