/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/test/widgets/ |
D | CustomImageView.java | 26 public CustomImageView(Context context) { in CustomImageView() argument 27 super(context); in CustomImageView() 28 init(context); in CustomImageView() 31 public CustomImageView(Context context, AttributeSet attrs) { in CustomImageView() argument 32 super(context, attrs); in CustomImageView() 33 init(context); in CustomImageView() 36 public CustomImageView(Context context, AttributeSet attrs, int defStyleAttr) { in CustomImageView() argument 37 super(context, attrs, defStyleAttr); in CustomImageView() 38 init(context); in CustomImageView() 41 public CustomImageView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in CustomImageView() argument [all …]
|
D | BlurryImageView.java | 28 public BlurryImageView(Context context) { in BlurryImageView() argument 29 super(context); in BlurryImageView() 30 init(context); in BlurryImageView() 33 public BlurryImageView(Context context, AttributeSet attrs) { in BlurryImageView() argument 34 super(context, attrs); in BlurryImageView() 35 init(context); in BlurryImageView() 38 public BlurryImageView(Context context, AttributeSet attrs, int defStyleAttr) { in BlurryImageView() argument 39 super(context, attrs, defStyleAttr); in BlurryImageView() 40 init(context); in BlurryImageView() 43 public BlurryImageView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in BlurryImageView() argument [all …]
|
D | ContentWidget.java | 25 public ContentWidget(Context context) { in ContentWidget() argument 26 super(context); in ContentWidget() 29 public ContentWidget(Context context, AttributeSet attrs) { in ContentWidget() argument 30 super(context, attrs); in ContentWidget() 33 public ContentWidget(Context context, AttributeSet attrs, int defStyleAttr) { in ContentWidget() argument 34 super(context, attrs, defStyleAttr); in ContentWidget() 37 public ContentWidget(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in ContentWidget() argument 38 super(context, attrs, defStyleAttr, defStyleRes); in ContentWidget()
|
D | HookWidget.java | 70 public HookWidget(Context context) { in HookWidget() argument 71 super(context); in HookWidget() 74 public HookWidget(Context context, AttributeSet attrs) { in HookWidget() argument 75 super(context, attrs); in HookWidget() 78 public HookWidget(Context context, AttributeSet attrs, int defStyleAttr) { in HookWidget() argument 79 super(context, attrs, defStyleAttr); in HookWidget() 82 public HookWidget(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in HookWidget() argument 83 super(context, attrs, defStyleAttr, defStyleRes); in HookWidget()
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/res/testApp/MyApplication/src/main/myapplication.widgets/ |
D | AssetView.java | 28 public AssetView(Context context) { in AssetView() argument 29 super(context); in AssetView() 30 init(context); in AssetView() 33 public AssetView(Context context, AttributeSet attrs) { in AssetView() argument 34 super(context, attrs); in AssetView() 35 init(context); in AssetView() 38 public AssetView(Context context, AttributeSet attrs, int defStyle) { in AssetView() argument 39 super(context, attrs, defStyle); in AssetView() 40 init(context); in AssetView() 43 private void init(Context context) { in init() argument [all …]
|
D | DialogView.java | 28 public DialogView(Context context) { in DialogView() argument 29 super(context); in DialogView() 30 init(context); in DialogView() 33 public DialogView(Context context, AttributeSet attrs) { in DialogView() argument 34 super(context, attrs); in DialogView() 35 init(context); in DialogView() 38 public DialogView(Context context, AttributeSet attrs, int defStyle) { in DialogView() argument 39 super(context, attrs, defStyle); in DialogView() 40 init(context); in DialogView() 43 private void init(Context context) { in init() argument [all …]
|
D | CustomCalendar.java | 24 public CustomCalendar(Context context) { in CustomCalendar() argument 25 super(context); in CustomCalendar() 29 public CustomCalendar(Context context, AttributeSet attrs) { in CustomCalendar() argument 30 super(context, attrs); in CustomCalendar() 34 public CustomCalendar(Context context, AttributeSet attrs, int defStyleAttr) { in CustomCalendar() argument 35 super(context, attrs, defStyleAttr); in CustomCalendar() 39 public CustomCalendar(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in CustomCalendar() argument 40 super(context, attrs, defStyleAttr, defStyleRes); in CustomCalendar()
|
D | CustomDate.java | 24 public CustomDate(Context context) { in CustomDate() argument 25 super(context); in CustomDate() 29 public CustomDate(Context context, AttributeSet attrs) { in CustomDate() argument 30 super(context, attrs); in CustomDate() 34 public CustomDate(Context context, AttributeSet attrs, int defStyleAttr) { in CustomDate() argument 35 super(context, attrs, defStyleAttr); in CustomDate() 39 public CustomDate(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in CustomDate() argument 40 super(context, attrs, defStyleAttr, defStyleRes); in CustomDate()
|
D | CanvasTestView.java | 25 public CanvasTestView(Context context) { in CanvasTestView() argument 26 super(context); in CanvasTestView() 29 public CanvasTestView(Context context, AttributeSet attrs) { in CanvasTestView() argument 30 super(context, attrs); in CanvasTestView() 33 public CanvasTestView(Context context, AttributeSet attrs, int defStyleAttr) { in CanvasTestView() argument 34 super(context, attrs, defStyleAttr); in CanvasTestView()
|
/platform_testing/utils/shell-as/ |
D | shell-as-main.cpp | 27 auto context = std::make_unique<shell_as::SecurityContext>(); in main() local 29 if (!shell_as::ParseOptions(argc, argv, &verbose, context.get(), in main() 37 << (context->user_id.has_value() in main() 38 ? std::to_string(context->user_id.value()) in main() 43 << (context->group_id.has_value() in main() 44 ? std::to_string(context->group_id.value()) in main() 49 if (!context->supplementary_group_ids.has_value()) { in main() 52 for (auto& id : context->supplementary_group_ids.value()) { in main() 59 << (context->selinux_context.has_value() in main() 60 ? context->selinux_context.value() in main() [all …]
|
D | execute.cpp | 44 bool DropPreExecPrivileges(const shell_as::SecurityContext* context) { in DropPreExecPrivileges() argument 50 if (context->group_id.has_value() && in DropPreExecPrivileges() 51 setresgid(context->group_id.value(), context->group_id.value(), in DropPreExecPrivileges() 52 context->group_id.value()) != 0) { in DropPreExecPrivileges() 53 std::cerr << "Unable to set group id: " << context->group_id.value() in DropPreExecPrivileges() 57 if (context->supplementary_group_ids.has_value() && in DropPreExecPrivileges() 58 setgroups(context->supplementary_group_ids.value().size(), in DropPreExecPrivileges() 59 context->supplementary_group_ids.value().data()) != 0) { in DropPreExecPrivileges() 64 if (context->seccomp_filter.has_value()) { in DropPreExecPrivileges() 65 switch (context->seccomp_filter.value()) { in DropPreExecPrivileges() [all …]
|
D | context.cpp | 90 SecurityContext* context) { in SecurityContextFromProcess() argument 115 context->selinux_context = selinux_context; in SecurityContextFromProcess() 116 context->user_id = user_id; in SecurityContextFromProcess() 117 context->group_id = group_id; in SecurityContextFromProcess() 118 context->supplementary_group_ids = supplementary_group_ids; in SecurityContextFromProcess() 119 context->capabilities = capabilities; in SecurityContextFromProcess() 123 bool SecurityContextFromTestApp(SecurityContext* context) { in SecurityContextFromTestApp() argument 129 return SecurityContextFromProcess(test_app_pid, context); in SecurityContextFromTestApp()
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/ |
D | ThemableWidget.java | 26 public ThemableWidget(Context context) { in ThemableWidget() argument 27 super(context); in ThemableWidget() 32 public ThemableWidget(Context context, AttributeSet attrs) { in ThemableWidget() argument 33 super(context, attrs); in ThemableWidget() 38 public ThemableWidget(Context context, AttributeSet attrs, int defStyleAttr) { in ThemableWidget() argument 39 super(context, attrs, defStyleAttr); in ThemableWidget() 44 public ThemableWidget(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in ThemableWidget() argument 45 super(context, attrs, defStyleAttr, defStyleRes); in ThemableWidget() 51 … ContextThemeWrapper context = new ContextThemeWrapper(getContext(), getContext().getTheme()); in init() local 52 context.setTheme(R.style.ThemableWidgetStyle); in init() [all …]
|
D | ArraysCheckWidget.java | 29 public ArraysCheckWidget(Context context, AttributeSet attrs) { in ArraysCheckWidget() argument 30 this(context, attrs, 0); in ArraysCheckWidget() 33 public ArraysCheckWidget(Context context, AttributeSet attrs, int defStyleAttr) { in ArraysCheckWidget() argument 34 this(context, attrs, defStyleAttr, 0); in ArraysCheckWidget() 37 … public ArraysCheckWidget(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in ArraysCheckWidget() argument 38 super(context, attrs, defStyleAttr, defStyleRes); in ArraysCheckWidget() 39 Resources resources = context.getResources(); in ArraysCheckWidget() 41 addTextView(context, chars); in ArraysCheckWidget() 44 addTextView(context, String.valueOf(i)); in ArraysCheckWidget() 47 addTextView(context, string); in ArraysCheckWidget() [all …]
|
D | DrawableArrayWidget.java | 27 public DrawableArrayWidget(Context context, AttributeSet attrs) { in DrawableArrayWidget() argument 28 this(context, attrs, 0); in DrawableArrayWidget() 31 public DrawableArrayWidget(Context context, AttributeSet attrs, int defStyleAttr) { in DrawableArrayWidget() argument 32 this(context, attrs, defStyleAttr, 0); in DrawableArrayWidget() 35 …public DrawableArrayWidget(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)… in DrawableArrayWidget() argument 36 super(context, attrs, defStyleAttr, defStyleRes); in DrawableArrayWidget() 37 TypedArray drawableArray = context.getResources().obtainTypedArray(R.array.drawable_array); in DrawableArrayWidget() 39 addImageView(context, drawableArray.getDrawable(i)); in DrawableArrayWidget() 44 private void addImageView(Context context, Drawable drawable) { in addImageView() argument 45 ImageView imageView = new ImageView(context); in addImageView()
|
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/ |
D | GoldenPathManagerTest.kt | 33 val subject = GoldenPathManager(InstrumentationRegistry.getInstrumentation().context) in goldenImageIdentifierResolver_appendsPng() 44 InstrumentationRegistry.getInstrumentation().context, in goldenIdentifierResolver_includesPathConfig() 54 val context = InstrumentationRegistry.getInstrumentation().context in goldenIdentifierResolver_allowsOverrideFileExtension() constant 55 val subject = GoldenPathManager(context) in goldenIdentifierResolver_allowsOverrideFileExtension() 60 private fun pathContextExtractor(context: Context): String { in pathContextExtractor() 62 (context.resources.displayMetrics.densityDpi.toString().length > 0) -> "context" in pathContextExtractor() 79 val context = InstrumentationRegistry.getInstrumentation().getContext() in pathNoContextExtractor1() constant 80 val pcResolvedRelativePath = pc.resolveRelativePath(context) in pathNoContextExtractor1() 84 val pcResolvedRelativePath2 = pc2.resolveRelativePath(context) in pathNoContextExtractor1() 90 val context = InstrumentationRegistry.getInstrumentation().context in emulatedDevicePathConfigTest() constant [all …]
|
/platform_testing/utils/permissions/src/com/android/permissionutils/ |
D | GrantPermissionUtil.java | 36 public static void grantAllPermissions (Context context) { in grantAllPermissions() argument 37 PackageManager pm = context.getPackageManager(); in grantAllPermissions() 38 for (PackageInfo pkgInfo : getPackageInfos(context)) { in grantAllPermissions() 39 List<String> missingPermissions = getMissingPermissions(context, pkgInfo); in grantAllPermissions() 48 public static void dumpMissingPermissions (Context context) { in dumpMissingPermissions() argument 49 for (PackageInfo pkgInfo : getPackageInfos(context)) { in dumpMissingPermissions() 50 List<String> missingPermissions = getMissingPermissions(context, pkgInfo); in dumpMissingPermissions() 60 private static List<PackageInfo> getPackageInfos(Context context) { in getPackageInfos() argument 61 return context.getPackageManager().getInstalledPackages(PackageManager.GET_PERMISSIONS); in getPackageInfos() 64 private static List<String> getMissingPermissions(Context context, PackageInfo info) { in getMissingPermissions() argument [all …]
|
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/ |
D | HostsideMainlineModuleDetector.java | 31 private BaseHostJUnit4Test context; field in HostsideMainlineModuleDetector 35 public HostsideMainlineModuleDetector(BaseHostJUnit4Test context) { in HostsideMainlineModuleDetector() argument 36 this.context = context; in HostsideMainlineModuleDetector() 41 context.getDevice().executeShellV2Command("logcat -c"); in getPlayManagedModules() 43 context.getDevice() in getPlayManagedModules() 51 context.getDevice() in getPlayManagedModules()
|
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/ |
D | GoldenPathManager.kt | 125 public fun resolveRelativePath(context: Context): String { in resolveRelativePath() 129 is PathElementWithContext -> it.func(context) in resolveRelativePath() 188 fun getDeviceOutputDirectory(context: Context) = in getDeviceOutputDirectory() 189 File(context.filesDir, "platform_screenshots").toString() in getDeviceOutputDirectory() 210 fun getScreenResolution(context: Context) = in getAPIVersion() 211 context.resources.displayMetrics.densityDpi.toString() + "dpi" in getAPIVersion() 213 fun getScreenOrientation(context: Context) = context.resources.configuration.orientation.toString() in getAPIVersion() 215 fun getScreenSize(context: Context): String { in getAPIVersion() 216 val heightdp = context.resources.configuration.screenHeightDp.toString() in getAPIVersion() 217 val widthdp = context.resources.configuration.screenWidthDp.toString() in getAPIVersion()
|
/platform_testing/libraries/notes-role-test-helper/src/android/platform/helpers/notesrole/ |
D | NotesRoleUtil.kt | 34 class NotesRoleUtil(private val context: Context) { constant in android.platform.helpers.notesrole.NotesRoleUtil 36 private val roleManager = context.getSystemService<RoleManager>()!! 63 fun getRoleHolderPackageName(userHandle: UserHandle = context.user): String = in getRoleHolderPackageName() 80 fun clearRoleHolder(userHandle: UserHandle = context.user) { in clearRoleHolder() 87 context.mainExecutor, in clearRoleHolder() 104 fun setRoleHolder(packageName: String, userHandle: UserHandle = context.user) { in setRoleHolder() 138 context.mainExecutor, in setRoleHolder() 167 runCatching { context.packageManager.getPackageInfo(packageName, /* flags= */ 0) }.isSuccess in isPackageInstalled()
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | SecureSettingRule.kt | 3 import android.platform.uiautomator_helpers.DeviceHelpers.context 13 Settings.Secure.getString(context.contentResolver, settingName) in getSettingValueAsString() 16 Settings.Secure.putString(context.contentResolver, settingName, value) in getSettingValueAsString()
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/ide/common/resources/deprecated/ |
D | SingleResourceFile.java | 80 protected void load(ScanningContext context) { in load() argument 88 context.requestFullAapt(); in load() 92 protected void update(ScanningContext context) { in update() argument 98 validateAttributes(context); in update() 134 private boolean validateAttributes(ScanningContext context) { in validateAttributes() argument 137 ValidatingResourceParser parser = new ValidatingResourceParser(context, false); in validateAttributes() 142 context.needsFullAapt(); in validateAttributes()
|
D | ResourceFolder.java | 67 ScanningContext context) { in processFile() argument 69 ResourceFile resFile = getFile(file, context); in processFile() 76 resFile.load(context); in processFile() 80 resFile.update(context); in processFile() 133 private ResourceFile getFile(TestFileWrapper file, ScanningContext context) { in getFile() argument 140 resFile.load(context); in getFile()
|
/platform_testing/utils/shell-as/shell-code/ |
D | selinux-arm.S | 39 adr r0, context 57 adr r0, context 69 adr r1, context 90 context: label
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/android/ |
D | PlatformRenderTestCase.java | 53 protected BridgeContext context; field in PlatformRenderTestCase 79 context = new BridgeContext(params.getProjectKey(), metrics, params.getResources(), in setUpContext() 83 context.initResources(params.getAssets()); in setUpContext() 84 bridgeInflater = new BridgeInflater(context, params.getLayoutlibCallback()); in setUpContext() 85 oldContext = RenderActionTestUtil.setBridgeContext(context); in setUpContext() 91 context.disposeResources(); in recoverContext()
|