Skip to content
Snippets Groups Projects
  1. May 15, 2023
  2. May 12, 2023
  3. May 11, 2023
    • Treehugger Robot's avatar
      Merge changes from topic "tc_change_2305100725_23" into udc-dev · 0d235e3f
      Treehugger Robot authored
      * changes:
        [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 2ccf315f
        Import translations. DO NOT MERGE ANYWHERE
      0d235e3f
    • Xinyi Zhou's avatar
      8be22731
    • chiachangwang's avatar
      Clear calling identity before accessing DeviceConfig · d65aa4ba
      chiachangwang authored
      Creating an AutomaticOnOffKeepalive object is an internal design
      in the AutomaticOnOffKeepaliveTracker which should not require
      callers' permission. Reading DeviceConfig will check if the
      calling uid and calling package name are the same. Clear calling
      identity to align the calling uid and package.
      
      All these accesses require performing this action so move it into
      the Dependencies.
      
      Bug: 279381469
      Test: atest FrameworksNetTests CtsHostsideNetworkTests
      (cherry picked from https://android-review.googlesource.com/q/commit:afda1a5579eabb8d8a02aead932e4d436cc934df)
      Merged-In: Icb4721ce8ca9c8fc7e9118b4e46300147be4e08e
      Change-Id: Icb4721ce8ca9c8fc7e9118b4e46300147be4e08e
      d65aa4ba
    • Treehugger Robot's avatar
    • Treehugger Robot's avatar
    • Paul Hu's avatar
      Use a single SharedLog for all mdns components · 74cc6d3b
      Paul Hu authored
      Use a single SharedLog in NsdService, and making subcomponents
      for DiscoveryManager/Advertiser/SocketProvider. Because each
      logger has 500 maxRecords, so 2000 records in total, which take
      too much memory.
      
      Also address leftover comments in previous logging changes.
      
      Before:
        2023-04-17T15:05:27.409895 - [Client10082-1] Register a DiscoveryListener 3 for service type:_nmt274981618._tcp.local
        2023-04-17T15:05:26.408015 - [Client10082-1] New client. useJavaBackend=true
      
      Advertiser:
        2023-04-17T15:05:27.213023 - [testtap0] Probing finished for service 2
        2023-04-17T15:05:26.409607 - Adding service name: ^Nsd.Test|Non-#AsCiI\Characters&\ufffe テスト 測試, type: _nmt274981618._tcp, hostAddresses: , port: 12345, network: null, txtRecord:  with ID 2
      
      DiscoveryManager:
        2023-04-17T15:05:28.227786 - [_nmt274981618._tcp.local-102] onServiceNameDiscovered: ^Nsd.Test|Non-#AsCiI\Characters&\ufffe テスト 測試
        2023-04-17T15:05:27.409104 - createServiceTypeClient for serviceType:_nmt274981618._tcp.local network:102
        2023-04-17T15:05:27.398075 - Registering listener for serviceType: _nmt274981618._tcp.local
      
      SocketProvider:
        2023-04-17T15:05:28.292106 - Remove socket on net:102
        2023-04-17T15:05:26.441517 - Create socket on net:NetworkAsKey{ network=102 }, ifName:testtap0
        2023-04-17T15:05:26.409005 - Start monitoring sockets.
      
      After:
      Logs:
        2023-04-17T20:51:42.931769 - [MdnsDiscoveryManager._nmt682015268._tcp.local-101] onServiceNameDiscovered: Name: ^Nsd.Test|Non-#AsCiI\Characters&\ufffe テスト 測試, type: _nmt682015268._tcp.local, subtypes: , ip: [100.70.162.138], ipv6: [fe80::9c0e:d0ff:fe7d:e5aa, 2a00:79e1:abc:6f04:9c0e:d0ff:fe7d:e5aa, 2a00:79e1:abc:6f04:eb56:8e39:5e1f:1102], port: 12345, interfaceIndex: 47, network: 101, textStrings: [], textEntries: []
        2023-04-17T20:51:42.032465 - [NsdService.Client10082-1] Register a DiscoveryListener 3 for service type:_nmt682015268._tcp.local
        2023-04-17T20:51:42.026645 - [MdnsDiscoveryManager] createServiceTypeClient for type:_nmt682015268._tcp.local, net:101
        2023-04-17T20:51:41.091555 - [MdnsAdvertiser] Adding service name: ^Nsd.Test|Non-#AsCiI\Characters&\ufffe テスト 測試, type: _nmt682015268._tcp, hostAddresses: , port: 12345, network: null, txtRecord:  with ID 2
        2023-04-17T20:51:41.091037 - [MdnsSocketProvider] Start monitoring sockets.
        2023-04-17T20:51:41.089951 - [NsdService.Client10082-1] New client. useJavaBackend=true
      
      Bug: 275004614
      Test: atest FrameworksNetTests android.net.cts.NsdManagerTest
      (cherry picked from https://android-review.googlesource.com/q/commit:14667deefa98aa91743c25eb2ba8447a866e7602)
      Merged-In: I1c9b7697cc95748f7fe4e6beecea217d39c56fb1
      Change-Id: I1c9b7697cc95748f7fe4e6beecea217d39c56fb1
      74cc6d3b
    • Paul Hu's avatar
    • TreeHugger Robot's avatar
    • TreeHugger Robot's avatar
    • Lorenzo Colitti's avatar
      Make the MTU tests more realistic. · b8c987ab
      Lorenzo Colitti authored
      Currently, the MTU tests work on networks that have not yet been
      connected. This is not very realistic because most MTU changes
      (like most LinkProperties changes in general) happen after the
      network has connected. Change these tests to use connected
      networks instead.
      
      To avoid losing coverage for setting the MTU before the network
      is connected, add a test just for that.
      
      Bug: 143158421
      Test: test-only change
      (cherry picked from https://android-review.googlesource.com/q/commit:b95ca556dbb96e5e839ee1cc3be1dea37b23ac7d)
      Merged-In: I7f808249722924a0b1253e402c5580bb104afd8e
      Change-Id: I7f808249722924a0b1253e402c5580bb104afd8e
      b8c987ab
    • Mark Fasheh's avatar
      Optionally have ConnectivityService kill sockets for frozen apps · 7501e76e
      Mark Fasheh authored
      To do this we register a UidFrozenStateChangedCallback with
      ActivityManager. The callback then queues up work on the Handler thread
      to consume the original callback args and kill appropriate sockets.
      
      Test: atest ConnectivityServiceTests
      Bug: 277100090
      (cherry picked from https://android-review.googlesource.com/q/commit:7c999d8d4cc4cd092d2de52ae98037ca4861e71f)
      Merged-In: I93f174811aef726145a18ea90443ddfc1456478e
      Change-Id: I93f174811aef726145a18ea90443ddfc1456478e
      7501e76e
    • Xinyi Zhou's avatar
      [Clean up] Remove debug logs · 473f69af
      Xinyi Zhou authored
      This should not be included in the production code.
      
      Test: -m
      Bug: 272150669
      Ignore-AOSP-First: nearby_not_in_aosp_yet
      Change-Id: I489ea71b777ec9224c5723a7c097bc7811846e2f
      473f69af
  4. May 10, 2023
  5. May 09, 2023
  6. May 08, 2023
Loading