Home
last modified time | relevance | path

Searched refs:Context (Results 1 – 25 of 122) sorted by relevance

12345

/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/test/widgets/
DCustomImageView.java20 import android.content.Context;
26 public CustomImageView(Context context) { in CustomImageView()
31 public CustomImageView(Context context, AttributeSet attrs) { in CustomImageView()
36 public CustomImageView(Context context, AttributeSet attrs, int defStyleAttr) { in CustomImageView()
41 public CustomImageView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in CustomImageView()
46 private void init(Context context) { in init()
DBlurryImageView.java20 import android.content.Context;
28 public BlurryImageView(Context context) { in BlurryImageView()
33 public BlurryImageView(Context context, AttributeSet attrs) { in BlurryImageView()
38 public BlurryImageView(Context context, AttributeSet attrs, int defStyleAttr) { in BlurryImageView()
43 public BlurryImageView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in BlurryImageView()
48 private void init(Context context) { in init()
DContentWidget.java19 import android.content.Context;
25 public ContentWidget(Context context) { in ContentWidget()
29 public ContentWidget(Context context, AttributeSet attrs) { in ContentWidget()
33 public ContentWidget(Context context, AttributeSet attrs, int defStyleAttr) { in ContentWidget()
37 public ContentWidget(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in ContentWidget()
DHookWidget.java19 import android.content.Context;
70 public HookWidget(Context context) { in HookWidget()
74 public HookWidget(Context context, AttributeSet attrs) { in HookWidget()
78 public HookWidget(Context context, AttributeSet attrs, int defStyleAttr) { in HookWidget()
82 public HookWidget(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in HookWidget()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/res/testApp/MyApplication/src/main/myapplication.widgets/
DCustomCalendar.java19 import android.content.Context;
24 public CustomCalendar(Context context) { in CustomCalendar()
29 public CustomCalendar(Context context, AttributeSet attrs) { in CustomCalendar()
34 public CustomCalendar(Context context, AttributeSet attrs, int defStyleAttr) { in CustomCalendar()
39 public CustomCalendar(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in CustomCalendar()
DCustomDate.java19 import android.content.Context;
24 public CustomDate(Context context) { in CustomDate()
29 public CustomDate(Context context, AttributeSet attrs) { in CustomDate()
34 public CustomDate(Context context, AttributeSet attrs, int defStyleAttr) { in CustomDate()
39 public CustomDate(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in CustomDate()
DAssetView.java19 import android.content.Context;
28 public AssetView(Context context) { in AssetView()
33 public AssetView(Context context, AttributeSet attrs) { in AssetView()
38 public AssetView(Context context, AttributeSet attrs, int defStyle) { in AssetView()
43 private void init(Context context) { in init()
DDialogView.java21 import android.content.Context;
28 public DialogView(Context context) { in DialogView()
33 public DialogView(Context context, AttributeSet attrs) { in DialogView()
38 public DialogView(Context context, AttributeSet attrs, int defStyle) { in DialogView()
43 private void init(Context context) { in init()
DCanvasTestView.java19 import android.content.Context;
25 public CanvasTestView(Context context) { in CanvasTestView()
29 public CanvasTestView(Context context, AttributeSet attrs) { in CanvasTestView()
33 public CanvasTestView(Context context, AttributeSet attrs, int defStyleAttr) { in CanvasTestView()
DInsetsWidget.java19 import android.content.Context;
27 public InsetsWidget(Context context, AttributeSet attrs) { in InsetsWidget()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/
DThemableWidget.java19 import android.content.Context;
26 public ThemableWidget(Context context) { in ThemableWidget()
32 public ThemableWidget(Context context, AttributeSet attrs) { in ThemableWidget()
38 public ThemableWidget(Context context, AttributeSet attrs, int defStyleAttr) { in ThemableWidget()
44 public ThemableWidget(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in ThemableWidget()
DDrawableArrayWidget.java19 import android.content.Context;
27 public DrawableArrayWidget(Context context, AttributeSet attrs) { in DrawableArrayWidget()
31 public DrawableArrayWidget(Context context, AttributeSet attrs, int defStyleAttr) { in DrawableArrayWidget()
35 …public DrawableArrayWidget(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)… in DrawableArrayWidget()
44 private void addImageView(Context context, Drawable drawable) { in addImageView()
DArraysCheckWidget.java19 import android.content.Context;
29 public ArraysCheckWidget(Context context, AttributeSet attrs) { in ArraysCheckWidget()
33 public ArraysCheckWidget(Context context, AttributeSet attrs, int defStyleAttr) { in ArraysCheckWidget()
37 … public ArraysCheckWidget(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in ArraysCheckWidget()
51 private void addTextView(Context context, CharSequence string) { in addTextView()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DGoldenPathManager.kt19 import android.content.Context
57 val appContext: Context,
114 val func: ((Context) -> String)
125 public fun resolveRelativePath(context: Context): String { in resolveRelativePath()
188 fun getDeviceOutputDirectory(context: Context) = in getDeviceOutputDirectory()
210 fun getScreenResolution(context: Context) = in getAPIVersion()
213 fun getScreenOrientation(context: Context) = context.resources.configuration.orientation.toString() in getAPIVersion()
215 fun getScreenSize(context: Context): String { in getAPIVersion()
/platform_testing/utils/permissions/src/com/android/permissionutils/
DGrantPermissionUtil.java21 import android.content.Context;
36 public static void grantAllPermissions (Context context) { in grantAllPermissions()
48 public static void dumpMissingPermissions (Context context) { in dumpMissingPermissions()
60 private static List<PackageInfo> getPackageInfos(Context context) { in getPackageInfos()
64 private static List<String> getMissingPermissions(Context context, PackageInfo info) { in getMissingPermissions()
/platform_testing/libraries/junit-rules/src/
DIgnoreOnPortrait.java18 import android.content.Context;
32 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in get()
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DHelperTestUtility.java19 import android.content.Context;
109 Context context = InstrumentationRegistry.getContext(); in wakeUpAndUnlock()
111 (DisplayManager) context.getSystemService(Context.DISPLAY_SERVICE); in wakeUpAndUnlock()
115 (KeyguardManager) context.getSystemService(Context.KEYGUARD_SERVICE); in wakeUpAndUnlock()
/platform_testing/libraries/system-helpers/connectivity-helper/src/android/system/helpers/
DConnectivityHelper.java21 import android.content.Context;
48 private Context mContext = null;
62 return (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in getTelecomManager()
66 return (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in getWifiManager()
71 .getSystemService(Context.CONNECTIVITY_SERVICE); in getConnectivityManager()
76 .getSystemService(Context.DOWNLOAD_SERVICE); in getDownloadManager()
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/listener/
DBatteryTerminator.java18 import android.content.Context;
39 private final Context mContext;
42 public BatteryTerminator(RunNotifier notifier, Map<String, String> args, Context context) { in BatteryTerminator()
/platform_testing/libraries/motion/tests/src/platform/test/motion/testing/
DSampleScene.kt21 import android.content.Context
27 class SampleScene @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) :
/platform_testing/libraries/system-helpers/user-helper/src/android/system/helpers/
DUserHelper.java21 import android.content.Context;
36 private Context mContext = null;
53 return (UserManager)mContext.getSystemService(Context.USER_SERVICE); in getUserManager()
/platform_testing/libraries/system-helpers/device-helper/src/android/system/helpers/
DDeviceHelper.java19 import android.content.Context;
40 private Context mContext = null;
59 Context.WINDOW_SERVICE); in isTablet()
/platform_testing/tests/automotive/snippets/phone/src/com/google/android/mobly/snippet/bundled/
DPhoneSnippet.java19 import android.content.Context;
44 Context context = InstrumentationRegistry.getInstrumentation().getContext(); in PhoneSnippet()
49 context.getSystemService(Context.TELEPHONY_SUBSCRIPTION_SERVICE); in PhoneSnippet()
/platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/helper/
DSimpleGLSurfaceView.java19 import android.content.Context;
32 public SimpleGLSurfaceView(Context context) { in SimpleGLSurfaceView()
/platform_testing/tests/functional/devicehealthchecks/src/com/android/devicehealthchecks/
DSensorsBootCheck.java18 import android.content.Context;
37 private Context mContext;
63 mSensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); in checkSensors()

12345