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

12

/frameworks/av/media/libmediaplayerservice/
H A DRemoteDisplay.cpp30 const char *iface)
41 mSource->start(iface);
28 RemoteDisplay( const sp<IRemoteDisplayClient> &client, const char *iface) argument
/frameworks/base/tools/aidl/
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;
/frameworks/base/core/java/android/net/
H A DStaticIpConfiguration.java84 public List<RouteInfo> getRoutes(String iface) { argument
87 RouteInfo connectedRoute = new RouteInfo(ipAddress, null, iface);
90 routes.add(RouteInfo.makeHostRoute(gateway, iface));
94 routes.add(new RouteInfo((IpPrefix) null, gateway, iface));
105 public LinkProperties toLinkProperties(String iface) { argument
107 lp.setInterfaceName(iface);
111 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.java296 for (String iface : getMobileIfaces()) {
297 total += getTxPackets(iface);
313 for (String iface : getMobileIfaces()) {
314 total += getRxPackets(iface);
330 for (String iface : getMobileIfaces()) {
331 total += getTxBytes(iface);
347 for (String iface : getMobileIfaces()) {
348 total += getRxBytes(iface);
356 for (String iface : getMobileIfaces()) {
357 final long stat = nativeGetIfaceStat(iface, TYPE_TCP_RX_PACKET
378 getTxPackets(String iface) argument
383 getRxPackets(String iface) argument
388 getTxBytes(String iface) argument
393 getRxBytes(String iface) argument
637 nativeGetIfaceStat(String iface, int type) argument
[all...]
H A DLinkProperties.java118 * @param iface The name of the network interface used for this link.
121 public void setInterfaceName(String iface) { argument
122 mIfaceName = iface;
499 * @param iface The interface name of the link to remove.
503 public boolean removeStackedLink(String iface) { argument
504 if (iface != null) {
505 LinkProperties removed = mStackedLinks.remove(iface);
794 String iface = stacked.getInterfaceName();
795 if (!stacked.equals(target.mStackedLinks.get(iface))) {
1036 String iface
[all...]
H A DNetworkStats.java45 /** {@link #iface} value when interface details unavailable. */
69 private String[] iface; field in class:NetworkStats
80 public String iface; field in class:NetworkStats.Entry
99 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, argument
101 this.iface = iface;
132 builder.append("iface=").append(iface);
151 && iface.equals(e.iface);
229 addIfaceValues( String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
236 addValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
318 combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
324 combineValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
364 findIndex(String iface, int uid, int set, int tag) argument
379 findIndexHinted(String iface, int uid, int set, int tag, 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.java84 public NetlinkTracker(String iface, Callback callback) { argument
85 TAG = "NetlinkTracker/" + iface;
86 mInterfaceName = iface;
93 private void maybeLog(String operation, String iface, LinkAddress address) { argument
95 Log.d(TAG, operation + ": " + address + " on " + iface +
107 public void addressUpdated(String iface, LinkAddress address) { argument
108 if (mInterfaceName.equals(iface)) {
109 maybeLog("addressUpdated", iface, address);
121 public void addressRemoved(String iface, LinkAddress address) { argument
122 if (mInterfaceName.equals(iface)) {
163 interfaceDnsServerInfo(String iface, long lifetime, String[] addresses) argument
[all...]
/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.java236 private void assertAllRoutesHaveInterface(String iface, LinkProperties lp) { argument
238 assertEquals(iface, r.getInterface());
H A DNetworkStatsTest.java185 final NetworkStats iface = new NetworkStats(TEST_START, 2)
188 assertEquals(384L, iface.getTotalBytes());
323 private static void assertValues(NetworkStats stats, int index, String iface, int uid, int set, argument
326 assertValues(entry, iface, uid, set, tag);
331 NetworkStats.Entry entry, String iface, int uid, int set, int tag) {
332 assertEquals(iface, entry.iface);
330 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/base/media/java/android/media/
H A DRemoteDisplay.java43 private native long nativeListen(String iface); argument
65 * @param iface The interface address and port in the form "x.x.x.x:y".
69 public static RemoteDisplay listen(String iface, Listener listener, Handler handler) { argument
70 if (iface == null) {
71 throw new IllegalArgumentException("iface must not be null");
81 display.startListening(iface);
115 private void startListening(String iface) { argument
116 mPtr = nativeListen(iface);
119 + "remote display connection on \"" + iface + "\"");
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNat464Xlat.java216 private LinkAddress getLinkAddress(String iface) { argument
218 InterfaceConfiguration config = mNMService.getInterfaceConfig(iface);
226 private void maybeSetIpv6NdOffload(String iface, boolean on) { argument
231 Slog.d(TAG, (on ? "En" : "Dis") + "abling ND offload on " + iface);
232 mNMService.setInterfaceIpv6NdOffload(iface, on);
234 Slog.w(TAG, "Changing IPv6 ND offload on " + iface + "failed: " + e);
239 public void interfaceLinkStateChanged(String iface, boolean up) { argument
241 if (isStarted() && up && mIface.equals(iface)) {
242 Slog.i(TAG, "interface " + iface + " is up, mIsRunning " + mIsRunning + "->true");
245 LinkAddress clatAddress = getLinkAddress(iface);
260 interfaceRemoved(String iface) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiTrafficPoller.java72 WifiTrafficPoller(Context context, String iface) { argument
73 mInterface = iface;
/frameworks/av/media/libmedia/
H A DIMediaPlayerService.cpp187 const String8& iface)
192 data.writeString8(iface);
325 String8 iface(data.readString8());
326 sp<IRemoteDisplay> display(listenForRemoteDisplay(client, iface));
186 listenForRemoteDisplay(const sp<IRemoteDisplayClient>& client, const String8& iface) argument
/frameworks/base/core/java/android/os/
H A DBinder.java185 public static final boolean isProxy(IInterface iface) { argument
186 return iface.asBinder() != iface;
/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.cpp41 jfieldID iface; member in struct:android::__anon882
53 char iface[32]; member in struct:android::stats_line
150 // Next field is iface.
152 while (*pos != ' ' && *pos != 0 && ifaceIdx < (int)(sizeof(s.iface)-1)) {
153 s.iface[ifaceIdx] = *pos;
158 ALOGE("bad iface: %s", buffer);
162 s.iface[ifaceIdx] = 0;
164 // Is this an iface the caller is interested in?
167 if (limitIfaces[i] == s.iface) {
174 //ALOGI("skipping due to iface
[all...]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
H A DEthernetNetworkFactory.java128 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
193 maybeTrackInterface(String iface) argument
204 stopTrackingInterface(String iface) argument
436 setInterfaceInfoLocked(String iface, String hwAddr) argument
[all...]
/frameworks/opt/net/wifi/service/lib/
H A Dwifi_hal.cpp47 wifi_error wifi_get_iface_name(wifi_interface_handle iface, char *name, size_t size) { argument
52 wifi_interface_handle iface, wifi_event_handler eh) {
56 wifi_error wifi_reset_iface_event_handler(wifi_request_id id, wifi_interface_handle iface) { argument
60 wifi_error wifi_start_gscan(wifi_request_id id, wifi_interface_handle iface, argument
65 wifi_error wifi_stop_gscan(wifi_request_id id, wifi_interface_handle iface) { argument
69 wifi_error wifi_get_cached_gscan_results(wifi_interface_handle iface, byte flush, argument
74 wifi_error wifi_get_cached_gscan_results(wifi_interface_handle iface, byte flush, argument
79 wifi_error wifi_set_bssid_hotlist(wifi_request_id id, wifi_interface_handle iface, argument
84 wifi_error wifi_reset_bssid_hotlist(wifi_request_id id, wifi_interface_handle iface) { argument
88 wifi_error wifi_set_significant_change_handler(wifi_request_id id, wifi_interface_handle iface, argument
51 wifi_set_iface_event_handler(wifi_request_id id, wifi_interface_handle iface, wifi_event_handler eh) argument
93 wifi_reset_significant_change_handler(wifi_request_id id, wifi_interface_handle iface) argument
102 wifi_set_link_stats(wifi_interface_handle iface, wifi_link_layer_params params) argument
106 wifi_get_link_stats(wifi_request_id id, wifi_interface_handle iface, wifi_stats_result_handler handler) argument
111 wifi_clear_link_stats(wifi_interface_handle iface, u32 stats_clear_req_mask, u32 *stats_clear_rsp_mask, u8 stop_req, u8 *stop_rsp) argument
122 wifi_rtt_range_request(wifi_request_id id, wifi_interface_handle iface, unsigned num_rtt_config, wifi_rtt_config rtt_config[], wifi_rtt_event_handler handler) argument
128 wifi_rtt_range_cancel(wifi_request_id id, wifi_interface_handle iface, unsigned num_devices, mac_addr addr[]) argument
133 wifi_set_nodfs_flag(wifi_interface_handle iface, u32 nodfs) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkPolicyManagerServiceTest.java873 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 DNetworkStatsServiceTest.java971 private static void assertValues(NetworkStats stats, String iface, int uid, int set, argument
975 final int i = stats.findIndex(iface, uid, SET_DEFAULT, tag);
981 final int i = stats.findIndex(iface, uid, SET_FOREGROUND, tag);
1021 private static NetworkState buildMobile4gState(String iface) { argument
1025 prop.setInterfaceName(iface);

Completed in 8007 milliseconds

12