@Test public void getWithContext_shouldReturnInstance() { final ClientMetadata clientMetadata = ClientMetadata.getInstance(activityContext); assertThat(clientMetadata).isNotNull(); }
public static ClientMetadata getInstance(Context context) { ClientMetadata result = sInstance; if (result == null) { synchronized (ClientMetadata.class) { result = sInstance; if (result == null) { result = new ClientMetadata(context); sInstance = result; } } } return result; }
ClientMetadata { public static ClientMetadata getInstance(Context context) { ClientMetadata result = sInstance; if (result == null) { synchronized (ClientMetadata.class) { result = sInstance; if (result == null) { result = new ClientMetadata(context); sInstance = result; } } } return result; } }
ClientMetadata { public static ClientMetadata getInstance(Context context) { ClientMetadata result = sInstance; if (result == null) { synchronized (ClientMetadata.class) { result = sInstance; if (result == null) { result = new ClientMetadata(context); sInstance = result; } } } return result; } ClientMetadata(Context context); }
ClientMetadata { public static ClientMetadata getInstance(Context context) { ClientMetadata result = sInstance; if (result == null) { synchronized (ClientMetadata.class) { result = sInstance; if (result == null) { result = new ClientMetadata(context); sInstance = result; } } } return result; } ClientMetadata(Context context); static ClientMetadata getInstance(Context context); static ClientMetadata getInstance(); String getOrientationString(); MoPubNetworkType getActiveNetworkType(); float getDensity(); String getNetworkOperatorForUrl(); String getNetworkOperator(); Locale getDeviceLocale(); String getSimOperator(); String getIsoCountryCode(); String getSimIsoCountryCode(); String getNetworkOperatorName(); String getSimOperatorName(); synchronized String getDeviceId(); synchronized boolean isDoNotTrackSet(); synchronized void setAdvertisingInfo(String advertisingId, boolean doNotTrack); synchronized boolean isAdvertisingInfoSet(); String getDeviceManufacturer(); String getDeviceModel(); String getDeviceProduct(); String getDeviceOsVersion(); int getDeviceScreenWidthDip(); int getDeviceScreenHeightDip(); Point getDeviceDimensions(); String getSdkVersion(); String getAppVersion(); String getAppPackageName(); String getAppName(); @Deprecated @VisibleForTesting static void setInstance(ClientMetadata clientMetadata); @VisibleForTesting static void clearForTesting(); }
ClientMetadata { public static ClientMetadata getInstance(Context context) { ClientMetadata result = sInstance; if (result == null) { synchronized (ClientMetadata.class) { result = sInstance; if (result == null) { result = new ClientMetadata(context); sInstance = result; } } } return result; } ClientMetadata(Context context); static ClientMetadata getInstance(Context context); static ClientMetadata getInstance(); String getOrientationString(); MoPubNetworkType getActiveNetworkType(); float getDensity(); String getNetworkOperatorForUrl(); String getNetworkOperator(); Locale getDeviceLocale(); String getSimOperator(); String getIsoCountryCode(); String getSimIsoCountryCode(); String getNetworkOperatorName(); String getSimOperatorName(); synchronized String getDeviceId(); synchronized boolean isDoNotTrackSet(); synchronized void setAdvertisingInfo(String advertisingId, boolean doNotTrack); synchronized boolean isAdvertisingInfoSet(); String getDeviceManufacturer(); String getDeviceModel(); String getDeviceProduct(); String getDeviceOsVersion(); int getDeviceScreenWidthDip(); int getDeviceScreenHeightDip(); Point getDeviceDimensions(); String getSdkVersion(); String getAppVersion(); String getAppPackageName(); String getAppName(); @Deprecated @VisibleForTesting static void setInstance(ClientMetadata clientMetadata); @VisibleForTesting static void clearForTesting();  }