Home
last modified time | relevance | path

Searched refs:qname (Results 1 – 11 of 11) sorted by relevance

/device/google/atv/MdnsOffloadCmdService/src/com/android/tv/mdnsoffloadcmd/
DMdnsOffloadCmdService.java113 private void registerPassthrough(String qname, String iface) { in registerPassthrough() argument
114 Log.d(TAG, "Registering on iface{" + iface + "} passthrough:" + qname); in registerPassthrough()
120 mMdnsOffloadManagerService.addToPassthroughList(iface, qname, mBinder); in registerPassthrough()
141 private void removePassthrough(String qname, String iface) { in removePassthrough() argument
142 Log.d(TAG, "Removing passthrough:" + qname + " on iface{" + iface + "}"); in removePassthrough()
148 mMdnsOffloadManagerService.removeFromPassthroughList(iface, qname, mBinder); in removePassthrough()
187 String qname = intent.getStringExtra("qname"); in onReceive() local
188 if (iface != null && qname != null) { in onReceive()
189 registerPassthrough(qname, iface); in onReceive()
197 String qname = intent.getStringExtra("qname"); in onReceive() local
[all …]
/device/google/atv/MdnsOffloadManagerService/src/com/android/tv/mdnsoffloadmanager/
DOffloadWriter.java33 private static String convertQNameForVendorService(String qname) { in convertQNameForVendorService() argument
35 if (qname.endsWith(".")) { in convertQNameForVendorService()
36 return qname.substring(0, qname.length() - 1); in convertQNameForVendorService()
38 return qname; in convertQNameForVendorService()
192 for (String qname : qnames) { in deletePassthroughData()
193 if (tryRemoveFromPassthroughList(networkInterface, qname)) { in deletePassthroughData()
194 deleted.add(qname); in deletePassthroughData()
265 private boolean tryRemoveFromPassthroughList(String networkInterface, String qname) { in tryRemoveFromPassthroughList() argument
266 String simpleQName = convertQNameForVendorService(qname); in tryRemoveFromPassthroughList()
271 String msg = "Failed to remove passthrough for qname {" + qname + "}."; in tryRemoveFromPassthroughList()
DPriorityListManager.java40 int getPriority(String qname, int defaultPriority) { in getPriority() argument
41 return mPriorityMap.getOrDefault(canonicalQName(qname), defaultPriority); in getPriority()
47 String qname = MdnsPacketParser.extractFullName( in getPriority()
49 return getPriority(qname, recordKey); in getPriority()
DOffloadIntentStore.java127 String qname, in registerPassthroughIntent() argument
130 String canonicalQName = mPriorityListManager.canonicalQName(qname); in registerPassthroughIntent()
134 networkInterface, qname, canonicalQName, clientToken, priority, appId); in registerPassthroughIntent()
157 boolean removePassthroughIntent(String qname, IBinder clientToken) { in removePassthroughIntent() argument
158 String canonicalQName = mPriorityListManager.canonicalQName(qname); in removePassthroughIntent()
DMdnsOffloadManagerService.java322 @NonNull String qname,
325 Objects.requireNonNull(qname);
331 networkInterface, qname, clientToken, callerUid);
350 @NonNull String qname,
353 Objects.requireNonNull(qname);
356 boolean removed = mOffloadIntentStore.removePassthroughIntent(qname, clientToken);
DInterfaceOffloadManager.java125 mCurrentPassthroughQNames.forEach(qname -> writer.println("* %s".formatted(qname))); in dump()
/device/google/atv/MdnsOffloadManagerService/tests/src/com/android/tv/mdnsoffloadmanager/
DFakeMdnsOffloadService.java120 public boolean addToPassthroughList(String iface, String qname) in addToPassthroughList() argument
124 && qname.length() <= MAX_QNAME_LENGTH) { in addToPassthroughList()
125 offloadData.passthroughQNames.add(qname); in addToPassthroughList()
126 log("Added %s to PT list for iface %s", qname, iface); in addToPassthroughList()
129 log("Failed to add %s to PT list for iface %s", qname, iface); in addToPassthroughList()
134 public void removeFromPassthroughList(String iface, String qname) in removeFromPassthroughList() argument
136 boolean removed = getOffloadData(iface).passthroughQNames.remove(qname); in removeFromPassthroughList()
138 log("Removed %s from PT list for iface %s", qname, iface); in removeFromPassthroughList()
140 log("Failed to remove %s from PT list for iface %s", qname, iface); in removeFromPassthroughList()
/device/google/atv/mdns_offload/interface/aidl/device/google/atv/mdns_offload/
DIMdnsOffloadManager.aidl62 void addToPassthroughList(String networkInterface, String qname, IBinder clientToken); in addToPassthroughList() argument
70 void removeFromPassthroughList(String networkInterface, String qname, IBinder clientToken); in removeFromPassthroughList() argument
DIMdnsOffload.aidl152 boolean addToPassthroughList(String networkInterface, String qname); in addToPassthroughList() argument
158 void removeFromPassthroughList(String networkInterface, String qname); in removeFromPassthroughList() argument
/device/google/atv/mdns_offload/interface/aidl/aidl_api/device.google.atv.mdns_offload_manager-aidl/current/device/google/atv/mdns_offload/
DIMdnsOffloadManager.aidl39 void addToPassthroughList(String networkInterface, String qname, IBinder clientToken); in addToPassthroughList() argument
40 void removeFromPassthroughList(String networkInterface, String qname, IBinder clientToken); in removeFromPassthroughList() argument
/device/google/atv/mdns_offload/interface/aidl/aidl_api/device.google.atv.mdns_offload-aidl/current/device/google/atv/mdns_offload/
DIMdnsOffload.aidl28 boolean addToPassthroughList(String networkInterface, String qname); in addToPassthroughList() argument
29 void removeFromPassthroughList(String networkInterface, String qname); in removeFromPassthroughList() argument