/device/google/atv/MdnsOffloadManagerService/tests/src/com/android/tv/mdnsoffloadmanager/ |
D | FakeMdnsOffloadService.java | 93 public void removeProtocolResponses(int recordKey) throws RemoteException { in removeProtocolResponses() argument 95 offloadData.offloadedRecords.remove(mProtocolDataById.get(recordKey)); in removeProtocolResponses() 97 MdnsProtocolData removed = mProtocolDataById.remove(recordKey); in removeProtocolResponses() 99 log("Removed offloaded record %d.", recordKey); in removeProtocolResponses() 101 log("Failed to remove offloaded record %s.", recordKey); in removeProtocolResponses() 106 public int getAndResetHitCounter(int recordKey) throws RemoteException { in getAndResetHitCounter() argument 107 int count = mHitCounters.getOrDefault(recordKey, 0); in getAndResetHitCounter() 108 mHitCounters.remove(recordKey); in getAndResetHitCounter()
|
D | MdnsOffloadManagerTest.java | 287 int recordKey = mOffloadManagerBinder.addProtocolResponses( in whenOffloadingRecord_propagatesToVendorService() local 291 assertTrue("Expected a valid record key", recordKey > 0); in whenOffloadingRecord_propagatesToVendorService() 357 int recordKey = mOffloadManagerBinder.addProtocolResponses( in removingRecordHoldingInvalidClientBinder_doesNothing() local 363 mOffloadManagerBinder.removeProtocolResponses(recordKey, mClientBinder1); in removingRecordHoldingInvalidClientBinder_doesNothing() 562 int recordKey = mOffloadManagerBinder.addProtocolResponses( in whenVendorServiceBindsLate_offloadsData() local 564 assertTrue("Expected a valid record key", recordKey > 0); in whenVendorServiceBindsLate_offloadsData() 631 int recordKey = mOffloadManagerBinder.addProtocolResponses( in whenInteractiveMode_disablesOffloadAndRetrievesMetrics() local 648 verify(mVendorService).getAndResetHitCounter(eq(recordKey)); in whenInteractiveMode_disablesOffloadAndRetrievesMetrics() 660 int recordKey = mOffloadManagerBinder.addProtocolResponses( in whenNetworkNotAvailable_noOffloadOrPassthrough() local 665 assertTrue("Expected a valid record key", recordKey > 0); in whenNetworkNotAvailable_noOffloadOrPassthrough()
|
/device/google/atv/MdnsOffloadManagerService/src/com/android/tv/mdnsoffloadmanager/ |
D | OffloadIntentStore.java | 67 int recordKey = mNextKey.getAndIncrement(); in registerOffloadIntent() local 69 int priority = mPriorityListManager.getPriority(mdnsProtocolData, recordKey); in registerOffloadIntent() 72 networkInterface, recordKey, mdnsProtocolData, clientToken, priority, appId); in registerOffloadIntent() 73 mOffloadIntentsByRecordKey.put(recordKey, offloadIntent); in registerOffloadIntent() 96 OffloadIntent getAndRemoveOffloadIntent(int recordKey, IBinder clientToken) { in getAndRemoveOffloadIntent() argument 97 OffloadIntent offloadIntent = mOffloadIntentsByRecordKey.get(recordKey); in getAndRemoveOffloadIntent() 100 + recordKey + "}."); in getAndRemoveOffloadIntent() 108 mOffloadIntentsByRecordKey.remove(recordKey); in getAndRemoveOffloadIntent() 220 int recordKey, in OffloadIntent() argument 227 mRecordKey = recordKey; in OffloadIntent()
|
D | PriorityListManager.java | 44 int getPriority(IMdnsOffload.MdnsProtocolData protocolData, int recordKey) { in getPriority() argument 49 return getPriority(qname, recordKey); in getPriority() 52 .orElse(recordKey); in getPriority()
|
D | OffloadWriter.java | 110 for (int recordKey : recordKeys) { in retrieveAndClearMetrics() 112 int hitCounter = mVendorService.getAndResetHitCounter(recordKey); in retrieveAndClearMetrics() 113 Log.d(TAG, "Hits for record " + recordKey + " : " + hitCounter); in retrieveAndClearMetrics() 115 Log.e(TAG, "getAndResetHitCounter failure for recordKey {" + recordKey + "}", e); in retrieveAndClearMetrics()
|
D | MdnsOffloadManagerService.java | 303 public void removeProtocolResponses(int recordKey, @NonNull IBinder clientToken) { 304 if (recordKey <= 0) { 310 mOffloadIntentStore.getAndRemoveOffloadIntent(recordKey, clientToken);
|
/device/google/atv/MdnsOffloadCmdService/src/com/android/tv/mdnsoffloadcmd/ |
D | MdnsOffloadCmdService.java | 106 int recordKey = mMdnsOffloadManagerService.addProtocolResponses(iface, info, mBinder); in registerProtocolResponse() local 107 Log.d(TAG, "Packet offloaded with recordKey=" + recordKey); in registerProtocolResponse() 126 private void removeProtocolResponse(int recordKey) { in removeProtocolResponse() argument 134 mMdnsOffloadManagerService.removeProtocolResponses(recordKey, mBinder); in removeProtocolResponse() 135 Log.d(TAG, "Removed record " + recordKey); in removeProtocolResponse() 177 int recordKey = intent.getIntExtra("recordKey", -1); in onReceive() local 178 if (recordKey >= 0) { in onReceive() 179 removeProtocolResponse(recordKey); in onReceive()
|
/device/google/atv/mdns_offload/interface/aidl/device/google/atv/mdns_offload/ |
D | IMdnsOffload.aidl | 126 void removeProtocolResponses(int recordKey); in removeProtocolResponses() argument 133 int getAndResetHitCounter(int recordKey); in getAndResetHitCounter() argument
|
D | IMdnsOffloadManager.aidl | 53 void removeProtocolResponses(int recordKey, IBinder clientToken); in removeProtocolResponses() argument
|
/device/google/atv/mdns_offload/interface/aidl/aidl_api/device.google.atv.mdns_offload-aidl/current/device/google/atv/mdns_offload/ |
D | IMdnsOffload.aidl | 25 void removeProtocolResponses(int recordKey); in removeProtocolResponses() argument 26 int getAndResetHitCounter(int recordKey); in getAndResetHitCounter() argument
|
/device/google/atv/mdns_offload/interface/aidl/aidl_api/device.google.atv.mdns_offload_manager-aidl/current/device/google/atv/mdns_offload/ |
D | IMdnsOffloadManager.aidl | 38 void removeProtocolResponses(int recordKey, IBinder clientToken); in removeProtocolResponses() argument
|