Skip to content
Snippets Groups Projects
  1. Nov 01, 2019
  2. Oct 31, 2019
  3. Oct 30, 2019
    • Brad Ebinger's avatar
      Remove shell commands for setting default SMS app · 67e099b9
      Brad Ebinger authored
      Use RoleManager shell commands directly instead of telephony
      commands for setting the default sms app.
      
      Bug: 142419519
      Test: GtsTelephonyTestCases:ImsServiceTest
      Merged-In: Ib150ff57ecd0872ba732b273b5e7363375723639
      Change-Id: Ib150ff57ecd0872ba732b273b5e7363375723639
      67e099b9
    • Brad Ebinger's avatar
      Add new system level APIs for accessing IMS state · 5c040e12
      Brad Ebinger authored
      1) Adds new system APIs that provide more access to IMS state.
      2) Remove dependence on IPackageManager, which is not accessible
      in mainline.
      
      Bug: 141457496
      Bug: 122098288
      Test: atest FrameworksTelephonyTests
      Merged-In: I17cbad4642ad3099668a354bb2588f2b55602311
      Change-Id: I17cbad4642ad3099668a354bb2588f2b55602311
      5c040e12
    • Treehugger Robot's avatar
    • Treehugger Robot's avatar
    • Marco Nelissen's avatar
      Remove unused link libraries from libmedia_jni_utils · e83368fc
      Marco Nelissen authored
      Test: build
      Change-Id: If11573e26f1b4e610b936d63870da962c8e128a2
      e83368fc
    • markchien's avatar
      [Tether05] Migrate UpstreamNetworkMonitor into module · d020e557
      markchien authored
      Bug: 136040414
      Test: -build, flash, boot
            -atest TetheringTests
            -atest FrameworksNetTests
      
      Change-Id: Ic1d9deecb66aaba0a4264a57f2e6579ea491ac9b
      d020e557
    • wilsonshih's avatar
      Consolidate ActivityStack#finishCurrentActivityLocked checking · d528106f
      wilsonshih authored
      This CL is to fix a bug that found in
      TransitionSelectionTests#testCloseTask_BothWallpaper_SlowStop may flaky
      because when TopActivity launched & call finish(), the activity will destroy
      too soon before BottomActivity resume & idle.
      
      When TopActivity launched, suppose BottomActivity's nowVisible state should
      be false because both activities are fullscreen activity & TopActivity should
      cover BottomActivity.
      
      After TopActivity called finish(), normally the activity should wait for
      BottomActivity visible and then destroy, and this test is to verify if
      TRANSIT_WALLPAPER_INTRA_CLOSE state will coming when opening & closing animation
      target with wallpaper theme are animating case.
      
      But the flakiness may happen if device is in low-performance stage, when
      TopActivity launched, system calls setClientHidden for BottomActivity's all
      windows to update its viewVisibility but can't update in time, and then
      the next relayoutWindow comes, mis-detected BottomActivity's Floating child
      window as drawn state, so that can't update BottomActivity's nowVisible
      state as invisible with onWindowsGone().
      
      So when TopActivity called finish(), TopActivity will soon going to destroy
      state since BottomActivity is still in nowVisible state.
      
      The fix is to add isNextNotYetVisible, if the next activity the nowVisible or visible
      is not yet true, which means we need to add the current finishing
      activity into stopping list and destory until the next activity idle.
      
      Bug: 140088359
      Test: atest TransitionSelectionTests
      Change-Id: If1907d71135158bafea69881205f351ab666025e
      Merged-In: If1907d71135158bafea69881205f351ab666025e
      d528106f
    • markchien's avatar
      [Tether04] Migrate EntitlementManager into module · f303c5a8
      markchien authored
      Bug: 136040414
      Test: -build, flash, boot
            -atest TetheringTests
            -atest FrameworksNetTests
      
      Change-Id: Ifdfc6cd95377351c37946a146b60896f07ece59d
      Merged-In: Ifdfc6cd95377351c37946a146b60896f07ece59d
      f303c5a8
    • Nicolas Geoffray's avatar
    • Ruoyao Liu (刘若尧)'s avatar
      Add API to set the sll_protocol on PacketSocket · 51038e8b
      Ruoyao Liu (刘若尧) authored
      Problem & Root cause:
      the mInterfaceBroadcastAddr.sll_protocol is not assigned when the
      interface initializes, sll_protocol is 0x0000 by default.
      This causes packets to be filtered incorrectly in packet capture,
      typically with tcpdump. The previous API is used by DhcpClient, causing
      DHCP tx messages to not be recognized properly.
      
      Background: inside the kernel packets carry both an ethertype metadata
      (skb->protocol) and may also carry a real ethertype in the mac header.
      
      Previously skb->protocol would be inherited from the socket either from
      the protocol from socket() creation or from bind().  This was zero,
      so skb->protocol would end up 0, even though the DHCP packets we actually
      wrote would have the right on-the-wire ethertype populated in the bytes
      passed to send().
      
      As such DHCP packets would look correctly on the wire, but were lacking
      the skb->protocol metadata to correctly tag them as IPv4.
      
      This results in 'tc' and packet hooks potentially not triggering
      correctly, and can thus result in tcpdump 'ipv4' filters discarding
      these packets leading to confusing/erroneous tcpdump output.
      
      In newer kernels (somewhere around 5.3), if socket protocol is 0, we
      actually parse out the right ethertype from the mac header during send().
      
      However, for old kernels we can't rely on this kernel magic, and the
      right fix is simply to make sure that socket bound protocol is correctly
      set to ipv4 [htons(ETH_P_IP)] in the bind() system call.
      
      Solution:
        Add a new constructor in SocketUtils to set the protocol parameter.
      Bug: 133196453
      Test: manual test
      Change-Id: I07887b82e0e32aadb0cbb9f930f2b2fa3e277ca9
      51038e8b
    • Jiyong Park's avatar
      Build API stub with less number of source files · 3c8f37f4
      Jiyong Park authored
      The metalava fix 09094fc5e566a380b7aa1a4c3948ac66cebc0aba allows us to
      not include source files having class definitions that are referenced by
      private constructors of the API classes.
      
      Removing the now uncessary source files from the input list so that
      metalava can run faster.
      
      Bug: 141149570
      Test: m
      Change-Id: Ib203221600baa0e57393b0d448125676d01bcb8e
      3c8f37f4
    • Xiangyu/Malcolm Chen's avatar
    • Treehugger Robot's avatar
    • Treehugger Robot's avatar
Loading