/frameworks/base/tools/aidl/ |
H A D | aidl.cpp | 816 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 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.h | 12 interface_type* iface); 14 Class* generate_binder_interface_class(const interface_type* iface); 15 Class* generate_rpc_interface_class(const interface_type* iface);
|
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;
|
H A D | generate_java_rpc.cpp | 88 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 D | WifiNative.java | 66 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 D | CommonTimeManagementService.java | 110 public void interfaceStatusChanged(String iface, boolean up) { 113 public void interfaceLinkStateChanged(String iface, boolean up) { 116 public void interfaceAdded(String iface) { 119 public void interfaceRemoved(String iface) { 122 public void limitReached(String limitName, String iface) { } 210 pw.println(String.format(" No iface timeout : %d", NO_INTERFACE_TIMEOUT)); 308 for (String iface : ifaceList) { 312 if (iface.contains(r.mPrefix)) { 321 InterfaceConfiguration config = mNetMgr.getInterfaceConfig(iface); 326 bindIface = iface; [all...] |
H A D | ConnectivityService.java | 776 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 D | NetworkManagementService.java | 232 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 D | TelephonyRegistry.java | 719 String iface = linkProperties.getInterfaceName(); 720 if (iface != null) { 721 intent.putExtra(PhoneConstants.DATA_IFACE_NAME_KEY, iface);
|
H A D | ThrottleService.java | 144 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 D | BatteryStatsService.java | 420 public void noteNetworkInterfaceType(String iface, int type) { argument 423 mStats.noteNetworkInterfaceTypeLocked(iface, type);
|
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/services/java/com/android/server/connectivity/ |
H A D | Tethering.java | 176 // 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 D | Vpn.java | 325 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/display/ |
H A D | WifiDisplayController.java | 583 final String iface = addr.getHostAddress() + ":" + port; 584 mRemoteDisplayInterface = iface; 586 Slog.i(TAG, "Listening for RTSP connection on " + iface 589 mRemoteDisplay = RemoteDisplay.listen(iface, new RemoteDisplay.Listener() { 788 NetworkInterface iface; 790 iface = NetworkInterface.getByName(info.getInterface()); 797 Enumeration<InetAddress> addrs = iface.getInetAddresses();
|
/frameworks/base/services/java/com/android/server/net/ |
H A D | BaseNetworkObserver.java | 29 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 D | LockdownVpnTracker.java | 149 final String iface = vpnConfig.interfaze; 152 if (TextUtils.equals(iface, mAcceptedIface) 157 Slog.d(TAG, "VPN connected using iface=" + iface + ", sourceAddr=" + sourceAddr); 164 mNetService.setFirewallInterfaceRule(iface, true); 168 mAcceptedIface = iface;
|
H A D | NetworkPolicyManagerService.java | 614 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...] |
H A D | NetworkStatsCollection.java | 179 entry.iface = IFACE_ALL;
|
H A D | NetworkStatsRecorder.java | 171 final NetworkIdentitySet ident = ifaceIdent.get(entry.iface); 173 unknownIfaces.add(entry.iface);
|
H A D | NetworkStatsService.java | 218 /** Current default active iface. */ 605 entry.iface = IFACE_ALL; 802 public void limitReached(String limitName, String iface) { 860 * iface} to {@link NetworkStatsHistory}. When multiple {@link NetworkInfo} 861 * are active on a single {@code iface}, they are combined under a single 868 // take one last stats snapshot before updating iface mapping. this 894 final String iface = state.linkProperties.getInterfaceName(); 896 NetworkIdentitySet ident = mActiveIfaces.get(iface); 899 mActiveIfaces.put(iface, ident); 906 if (!contains(mMobileIfaces, iface)) { [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkPolicyManagerServiceTest.java | 853 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 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);
|
/frameworks/base/media/java/android/media/ |
H A D | RemoteDisplay.java | 43 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 + "\"");
|