Searched defs:iface (Results 1 - 25 of 32) sorted by last modified time

12

/frameworks/base/tools/aidl/
H A Daidl.cpp816 interface_type* iface = (interface_type*)malloc( local
818 memset(iface, 0, sizeof(interface_type));
819 iface->document_item.item_type = INTERFACE_TYPE_BINDER;
820 iface->interface_token.lineno = lineno;
821 iface->interface_token.data = strdup(type);
822 iface->package = packagename ? strdup(packagename) : NULL;
823 iface->name.lineno = lineno;
824 iface->name.data = strdup(classname);
825 iface->open_brace_token.lineno = lineno;
826 iface
1006 interface_type* iface = (interface_type*)doc; local
[all...]
H A Dgenerate_java.cpp62 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 Dgenerate_java_binder.cpp517 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;
H A Dgenerate_java_rpc.cpp88 DispatcherClass(const interface_type* iface, Expression* target);
108 DispatcherClass::DispatcherClass(const interface_type* iface, Expression* target) argument
290 RpcProxyClass(const interface_type* iface, InterfaceType* interfaceType);
301 RpcProxyClass::RpcProxyClass(const interface_type* iface, InterfaceType* interfaceType) argument
304 this->comment = gather_comments(iface->comments_token->extra);
359 EventListenerClass(const interface_type* iface, Type* listenerType);
374 EventListenerClass::EventListenerClass(const interface_type* iface, Type* listenerType) argument
375 :DispatcherClass(iface, new FieldVariable(THIS_VALUE, "_listener"))
379 this->type = new Type(iface->package ? iface
425 ListenerClass(const interface_type* iface) argument
455 EndpointBaseClass(const interface_type* iface) argument
953 generate_rpc_interface_class(const interface_type* iface) argument
[all...]
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiNative.java66 private native boolean connectToSupplicant(String iface); argument
68 private native void closeSupplicantConnection(String iface); argument
74 private native String waitForEvent(String iface); argument
76 private native boolean doBooleanCommand(String iface, String command); argument
78 private native int doIntCommand(String iface, String command); argument
80 private native String doStringCommand(String iface, String command); argument
82 public WifiNative(String iface) { argument
83 mInterface = iface;
84 mTAG = "WifiNative-" + iface;
404 public boolean startWpsPbc(String iface, Strin argument
417 startWpsPinKeypad(String iface, String pin) argument
431 startWpsPinDisplay(String iface, String bssid) argument
486 setP2pGroupIdle(String iface, int time) argument
498 setP2pPowerSave(String iface, boolean enabled) argument
638 p2pGroupRemove(String iface) argument
[all...]
/frameworks/base/services/java/com/android/server/
H A DConnectivityService.java776 final String iface = tracker.getLinkProperties().getInterfaceName();
781 networkCostly = mMeteredIfaces.contains(iface);
1562 for (String iface : meteredIfaces) {
1563 mMeteredIfaces.add(iface);
2106 final String iface = thisNet.getLinkProperties().getInterfaceName();
2125 if (timeout > 0 && iface != null) {
2127 mNetd.addIdleTimer(iface, timeout, Integer.toString(type));
2138 final String iface = net.getLinkProperties().getInterfaceName();
2140 if (iface != null && (ConnectivityManager.isNetworkTypeMobile(type) ||
2144 mNetd.removeIdleTimer(iface);
2491 updateDns(String network, String iface, Collection<InetAddress> dnses, String domains) argument
2835 tether(String iface) argument
2846 untether(String iface) argument
2857 getLastTetherError(String iface) argument
[all...]
H A DNetworkManagementService.java232 private void notifyInterfaceStatusChanged(String iface, boolean up) { argument
236 mObservers.getBroadcastItem(i).interfaceStatusChanged(iface, up);
247 private void notifyInterfaceLinkStateChanged(String iface, boolean up) { argument
251 mObservers.getBroadcastItem(i).interfaceLinkStateChanged(iface, up);
261 private void notifyInterfaceAdded(String iface) { argument
265 mObservers.getBroadcastItem(i).interfaceAdded(iface);
275 private void notifyInterfaceRemoved(String iface) { argument
278 mActiveAlerts.remove(iface);
279 mActiveQuotas.remove(iface);
284 mObservers.getBroadcastItem(i).interfaceRemoved(iface);
294 notifyLimitReached(String limitName, String iface) argument
484 getInterfaceConfig(String iface) argument
528 setInterfaceConfig(String iface, InterfaceConfiguration cfg) argument
550 setInterfaceDown(String iface) argument
558 setInterfaceUp(String iface) argument
566 setInterfaceIpv6PrivacyExtensions(String iface, boolean enable) argument
579 clearInterfaceAddresses(String iface) argument
589 enableIpv6(String iface) argument
599 disableIpv6(String iface) argument
839 startReverseTethering(String iface) argument
869 tetherInterface(String iface) argument
879 untetherInterface(String iface) argument
1076 addIdleTimer(String iface, int timeout, String label) argument
1099 removeIdleTimer(String iface) argument
1139 setInterfaceQuota(String iface, long quotaBytes) argument
1162 removeInterfaceQuota(String iface) argument
1188 setInterfaceAlert(String iface, long alertBytes) argument
1216 removeInterfaceAlert(String iface) argument
1348 setInterfaceThrottle(String iface, int rxKbps, int txKbps) argument
1357 getInterfaceThrottle(String iface, boolean rx) argument
1379 getInterfaceRxThrottle(String iface) argument
1385 getInterfaceTxThrottle(String iface) argument
1391 setDefaultInterfaceForDns(String iface) argument
1401 setDnsServersForInterface(String iface, String[] servers) argument
1430 flushInterfaceDnsCache(String iface) argument
1457 setFirewallInterfaceRule(String iface, boolean allow) argument
[all...]
H A DThrottleService.java144 String iface) {
152 mIface = iface;
171 InterfaceObserver(Handler handler, int msg, String iface) { argument
175 mIface = iface;
178 public void interfaceStatusChanged(String iface, boolean up) { argument
180 if (TextUtils.equals(iface, mIface)) {
186 public void interfaceLinkStateChanged(String iface, boolean up) { argument
189 public void interfaceAdded(String iface) { argument
192 if (TextUtils.equals(iface, mIface)) {
197 public void interfaceRemoved(String iface) {} argument
143 ThrottleService(Context context, INetworkManagementService nmService, TrustedTime time, String iface) argument
198 limitReached(String limitName, String iface) argument
258 getResetTime(String iface) argument
270 getPeriodStartTime(String iface) argument
281 getCliffThreshold(String iface, int cliff) argument
290 getCliffLevel(String iface, int cliff) argument
305 getByteCount(String iface, int dir, int period, int ago) argument
316 getThrottle(String iface) argument
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DBatteryStatsService.java420 public void noteNetworkInterfaceType(String iface, int type) { argument
423 mStats.noteNetworkInterfaceTypeLocked(iface, type);
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/services/java/com/android/server/connectivity/
H A DTethering.java176 // TODO - remove and rely on real notifications of the current iface
208 public void interfaceStatusChanged(String iface, boolean up) { argument
209 if (VDBG) Log.d(TAG, "interfaceStatusChanged " + iface + ", " + up);
213 if (isWifi(iface)) {
215 } else if (isUsb(iface)) {
218 } else if (isBluetooth(iface)) {
223 TetherInterfaceSM sm = mIfaces.get(iface);
226 sm = new TetherInterfaceSM(iface, mLooper, usb);
227 mIfaces.put(iface, sm);
231 if (isUsb(iface)) {
243 interfaceLinkStateChanged(String iface, boolean up) argument
248 isUsb(String iface) argument
257 isWifi(String iface) argument
266 isBluetooth(String iface) argument
275 interfaceAdded(String iface) argument
306 interfaceRemoved(String iface) argument
321 limitReached(String limitName, String iface) argument
325 tether(String iface) argument
343 untether(String iface) argument
361 getLastTetherError(String iface) argument
[all...]
H A DVpn.java325 public synchronized void interfaceStatusChanged(String iface, boolean up) { argument
327 mObserver.interfaceStatusChanged(iface, up);
469 final String iface = egress.getInterfaceName();
499 iface, profile.server, "udppsk", profile.ipsecIdentifier,
505 iface, profile.server, "udprsa", privateKey, userCert,
511 iface, profile.server, "xauthpsk", profile.ipsecIdentifier,
517 iface, profile.server, "xauthrsa", privateKey, userCert,
523 iface, profile.server, "hybridrsa",
534 iface, "pptp", profile.server, "1723",
544 iface, "l2t
[all...]
/frameworks/base/services/java/com/android/server/net/
H A DBaseNetworkObserver.java29 public void interfaceStatusChanged(String iface, boolean up) { argument
34 public void interfaceRemoved(String iface) { argument
39 public void interfaceLinkStateChanged(String iface, boolean up) { argument
44 public void interfaceAdded(String iface) { argument
54 public void limitReached(String limitName, String iface) { argument
H A DNetworkPolicyManagerService.java614 public void limitReached(String limitName, String iface) {
619 mHandler.obtainMessage(MSG_LIMIT_REACHED, iface).sendToTarget();
990 // stash identity and iface away for later use
992 final String iface = state.linkProperties.getInterfaceName();
994 networks.put(ident, iface);
1008 final String iface = entry.getValue();
1009 ifaceList.add(iface);
1064 Slog.w(TAG, "shared quota unsupported; generating rule for each iface");
1067 for (String iface : ifaces) {
1068 removeInterfaceQuota(iface);
1960 setInterfaceQuota(String iface, long quotaBytes) argument
1970 removeInterfaceQuota(String iface) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkPolicyManagerServiceTest.java853 private void expectSetInterfaceQuota(String iface, long quotaBytes) throws Exception { argument
854 mNetworkManager.setInterfaceQuota(iface, quotaBytes);
858 private void expectRemoveInterfaceQuota(String iface) throws Exception { argument
859 mNetworkManager.removeInterfaceQuota(iface);
863 private void expectSetInterfaceAlert(String iface, long alertBytes) throws Exception { argument
864 mNetworkManager.setInterfaceAlert(iface, alertBytes);
868 private void expectRemoveInterfaceAlert(String iface) throws Exception { argument
869 mNetworkManager.removeInterfaceAlert(iface);
H A DNetworkStatsServiceTest.java972 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);
/frameworks/base/media/java/android/media/
H A DRemoteDisplay.java43 private native int nativeListen(String iface); argument
63 * @param iface The interface address and port in the form "x.x.x.x:y".
67 public static RemoteDisplay listen(String iface, Listener listener, Handler handler) { argument
68 if (iface == null) {
69 throw new IllegalArgumentException("iface must not be null");
79 display.startListening(iface);
105 private void startListening(String iface) { argument
106 mPtr = nativeListen(iface);
109 + "remote display connection on \"" + iface + "\"");
/frameworks/base/core/tests/coretests/src/android/net/
H A DNetworkStatsTest.java185 final NetworkStats iface = new NetworkStats(TEST_START, 2)
188 assertEquals(384L, iface.getTotalBytes());
313 private static void assertValues(NetworkStats stats, int index, String iface, int uid, int set, argument
316 assertValues(entry, iface, uid, set, tag);
321 NetworkStats.Entry entry, String iface, int uid, int set, int tag) {
322 assertEquals(iface, entry.iface);
320 assertValues( NetworkStats.Entry entry, String iface, int uid, int set, int tag) argument
/frameworks/base/core/tests/coretests/src/com/android/internal/net/
H A DNetworkStatsFactoryTest.java157 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/av/media/libstagefright/wifi-display/source/
H A DWifiDisplaySource.cpp68 status_t WifiDisplaySource::start(const char *iface) { argument
72 msg->setString("iface", iface);
112 AString iface; local
113 CHECK(msg->findString("iface", &iface));
117 ssize_t colonPos = iface.find(":");
122 const char *s = iface.c_str() + colonPos + 1;
130 iface.erase(colonPos, iface
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothTetheringDataTracker.java291 private boolean readLinkProperty(String iface) { argument
292 String DhcpPrefix = "dhcp." + iface + ".";
310 mLinkProperties.setInterfaceName(iface);
313 public synchronized void startReverseTether(String iface) { argument
314 mIface = iface;
358 //NetworkUtils.stopDhcp(iface);
/frameworks/base/core/java/android/net/
H A DConnectivityManager.java705 public int tether(String iface) { argument
707 return mService.tether(iface);
717 public int untether(String iface) { argument
719 return mService.untether(iface);
804 * @param iface The name of the interface we're interested in
809 public int getLastTetherError(String iface) { argument
811 return mService.getLastTetherError(iface);
H A DEthernetDataTracker.java72 public void interfaceStatusChanged(String iface, boolean up) { argument
73 Log.d(TAG, "Interface status changed: " + iface + (up ? "up" : "down"));
76 public void interfaceLinkStateChanged(String iface, boolean up) { argument
77 if (mIface.equals(iface) && mLinkUp != up) {
78 Log.d(TAG, "Interface " + iface + " link " + (up ? "up" : "down"));
91 public void interfaceAdded(String iface) { argument
92 mTracker.interfaceAdded(iface);
95 public void interfaceRemoved(String iface) { argument
96 mTracker.interfaceRemoved(iface);
99 public void limitReached(String limitName, String iface) { argument
114 interfaceAdded(String iface) argument
161 interfaceRemoved(String iface) argument
[all...]
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);
H A DNetworkStats.java42 /** {@link #iface} value when interface details unavailable. */
63 private String[] iface; field in class:NetworkStats
74 public String iface; field in class:NetworkStats.Entry
93 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, argument
95 this.iface = iface;
126 builder.append("iface=").append(iface);
142 this.iface = new String[initialSize];
156 iface
194 addIfaceValues( String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
201 addValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
278 combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
284 combineValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
324 findIndex(String iface, int uid, int set, int tag) argument
339 findIndexHinted(String iface, int uid, int set, int tag, int hintIndex) argument
[all...]

Completed in 211 milliseconds

12