From 5d8b7c875da762397c14f58f0d789a369ac98c0a Mon Sep 17 00:00:00 2001 From: Chalard Jean Date: Mon, 11 Mar 2019 20:44:24 +0900 Subject: Add a static to get the Ip Memory Store This is so that there is some AOSP stable API while the memory store is moved to the network. Test: atest FrameworksNetTests Change-Id: Ib51dbee77fcb0d14a5c85240ac711b3b1aa71286 --- core/java/android/net/IpMemoryStore.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/java/android/net/IpMemoryStore.java b/core/java/android/net/IpMemoryStore.java index b35f09743877..2f4d9bc6a89a 100644 --- a/core/java/android/net/IpMemoryStore.java +++ b/core/java/android/net/IpMemoryStore.java @@ -171,4 +171,9 @@ public class IpMemoryStore { throw e.rethrowFromSystemServer(); } } + + /** Gets an instance of the memory store */ + public static IpMemoryStore getMemoryStore(final Context context) { + return (IpMemoryStore) context.getSystemService(Context.IP_MEMORY_STORE_SERVICE); + } } -- cgit v1.2.3-59-g8ed1b