Home
last modified time | relevance | path

Searched +full:is +full:- +full:typedarray (Results 1 – 25 of 126) sorted by relevance

123456

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowResourcesTest.java13 import android.content.res.TypedArray;
47 -1, -393729, -1641480, -2562838, -4405043, -6181454, -7892073, -9668483, -11181979, -12760755,
48 -14208458, -15590111, -16777216, -1, -393729, -2296322, -3217680, -4994349, -6770760, -8547171,
49 -10257790, -11836822, -13350318, -14863301, -16376283, -16777216, -1, -720905, -4456478,
50 -8128307, -10036302, -12075112, -14638210, -16742810, -16749487, -16756420, -16762839,
51 -16768746, -16777216, -1, -720905, -4456478, -5901613, -7678281, -9454947, -11231613, -13139095,
52 -15111342, -16756420, -16762839, -16768746, -16777216, -1, -393729, -2361857, -5051393,
53 -7941655, -9783603, -11625551, -13729642, -16750723, -16757153, -16763326, -16769241, -16777216
77 * Robolectric is then missing an identifier for this resource so we must generate a placeholder
158 TypedArray typedArray = in obtainStyledAttributes_shouldCheckXmlFirst_fromAttributeSetBuilder() local
[all …]
DShadowAssetManagerTest.java8 import android.content.res.TypedArray;
43 "This file can not be opened as a file descriptor; it is probably compressed"); in openFd_shouldProvideFileDescriptorForDeflatedAsset()
71 TypedArray typedArray = in multiFormatAttributes_integerDecimalValue() local
74 typedArray.getValue(0, outValue); in multiFormatAttributes_integerDecimalValue()
83 TypedArray typedArray = in multiFormatAttributes_integerHexValue() local
86 typedArray.getValue(0, outValue); in multiFormatAttributes_integerHexValue()
95 TypedArray typedArray = in multiFormatAttributes_stringValue() local
98 typedArray.getValue(0, outValue); in multiFormatAttributes_stringValue()
107 TypedArray typedArray = in multiFormatAttributes_booleanValue() local
110 typedArray.getValue(0, outValue); in multiFormatAttributes_booleanValue()
[all …]
/external/skia/modules/canvaskit/
Dmemory.js7 * Malloc returns a TypedArray backed by the C++ memory of the
15 * Get a TypedArray view around the malloc'd memory (this does not copy anything).
23 * @param {TypedArray} typedArray - constructor for the typedArray.
24 * @param {number} len - number of *elements* to store.
26 CanvasKit.Malloc = function(typedArray, len) { argument
27 var byteLen = len * typedArray.BYTES_PER_ELEMENT;
33 typedArray: null,
40 // Check if the previously allocated array is still usable.
43 if (this.typedArray && this.typedArray.length) {
44 return this.typedArray;
[all …]
DWasmCommon.h4 * Use of this source code is governed by a BSD-style license that can be
25 // Self-documenting types
31 using TypedArray = emscripten::val; variable
40 // the compiler is happy.
41 // These types refer to the TypedArray that the JS interface wrote into or will read out of.
69 * Create a typed-array (in the JS heap) and initialize it with the provided
72 template <typename T> TypedArray MakeTypedArray(int count, const T src[]) { in MakeTypedArray()
91 // Note: Use of this constructor is 5-20x slower than manually copying the data on the JS side
DCHANGELOG.md4 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
10 - `Typeface.MakeFreeTypeFaceFromData` is now `Typeface.MakeTypefaceFromData` to be consistent
13 - Passing a `null` `Typeface` to the `Font` constructor no longer uses the default typeface. See
14 `CanvasKit.Typeface.GetDefault()` as a way to get the compiled-in typeface to replace this
16 - `MakeManagedAnimation` no longer falls back to the built-in typeface if the provided
17 FreeType data is not in the assets map.
20 - `CanvasKit.Typeface.GetDefault()` as a way to explicitly get the compiled-in typeface (if any).
22 ## [0.39.1] - 2023-10-12
25 - `@webgpu/types` is actually a dependency, not just a devDependency.
27 ## [0.39.0] - 2023-10-11
[all …]
/external/setupcompat/main/java/com/google/android/setupcompat/template/
DSystemNavBarMixin.java8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
22 import android.content.res.TypedArray;
78 // Support updating system navigation bar background color and is light system navigation bar in applyPartnerCustomizations()
81 TypedArray a = in applyPartnerCustomizations()
96 TypedArray typedArray = in applyPartnerCustomizations() local
98 int defaultColor = typedArray.getColor(/* index= */ 0, /* defValue= */ 0); in applyPartnerCustomizations()
102 typedArray.recycle(); in applyPartnerCustomizations()
110 * if the activity is running in setup wizard flow.
117 // If full dynamic color enabled which means this activity is running outside of setup in setSystemNavBarBackground()
[all …]
/external/perfetto/ui/src/base/
Darray_buffer_builder.ts7 // http://www.apache.org/licenses/LICENSE-2.0
10 // distributed under the License is distributed on an "AS IS" BASIS,
31 // 32-bit integers take 4 bytes
39 // @param typedArray A Uint8Array view into the buffer to write into.
44 typedArray: Uint8Array,
49 // Encode the string in UTF-8
50 const written = utf8Write(token, typedArray, byteOffset);
54 typedArray.set(token, byteOffset);
57 // 32-bit little-endian value
67 // - string: the ASCII string is appended. Throws an error if there are
[all …]
/external/setupdesign/main/src/com/google/android/setupdesign/items/
DRecyclerItemAdapter.java8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
19 import android.content.res.TypedArray;
55 * Called when an item in this adapter is clicked.
119 final TypedArray typedArray = in onCreateViewHolder() local
122 typedArray.getDrawable( in onCreateViewHolder()
126 typedArray.getDrawable(R.styleable.SudRecyclerItemAdapter_selectableItemBackground); in onCreateViewHolder()
130 // If full dynamic color enabled which means this activity is running outside of setup in onCreateViewHolder()
139 typedArray.getDrawable(R.styleable.SudRecyclerItemAdapter_android_colorBackground); in onCreateViewHolder()
157 typedArray.recycle(); in onCreateViewHolder()
[all …]
DExpandableSwitchItem.java8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
21 import android.content.res.TypedArray;
42 * A switch item which is divided into two parts: the start (left for LTR) side shows the title and
43 * summary, and when that is clicked, will expand to show a longer summary. The end (right for LTR)
44 * side is a switch which can be toggled by the user.
46 * <p>Note: It is highly recommended to use this item with recycler view rather than list view,
48 * handle it. Therefore you might see a double-ripple, one for the expandable area and one for the
94 final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SudExpandableSwitchItem); in ExpandableSwitchItem()
111 /** @return True if the item is currently expanded. */
[all …]
DSwitchItem.java8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
20 import android.content.res.TypedArray;
28 * An item that is displayed with a switch, with methods to manipulate and listen to the checked
29 * state of the switch. Note that by default, only click on the switch will change the on-off state.
39 * Callback when checked state of a {@link SwitchItem} is changed.
55 * Creates a switch item. This constructor is used for inflation from XML.
57 * @param context The context which this item is inflated in.
62 final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SudSwitchItem); in SwitchItem()
78 /** @return True if this switch item is currently checked. */
[all …]
DAbstractItemHierarchy.java8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
20 import android.content.res.TypedArray;
34 /* non-static section */
42 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SudAbstractItem); in AbstractItemHierarchy()
DButtonItem.java8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
21 import android.content.res.TypedArray;
53 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SudButtonItem); in ButtonItem()
108 /** Do not use this since ButtonItem is not directly part of a list. */
141 @SuppressLint("InflateParams") // This is used similar to Button(Context), so it's OK to not
/external/robolectric/integration_tests/ctesque/src/sharedTest/java/android/content/res/
DResourcesTest.java88 assertThat(resources.getString(R.string.interpolate, "value")).isEqualTo("Here is a value!"); in getString_withInterpolation()
113 assertThat(resources.getString(R.string.bad_example)).isEqualTo("This is a bad string."); in getString_StringWithInlinedQuotesAreStripped()
135 // multiline_layout is a layout reference to activity_main layout. in getMultilineLayoutResource_shouldResolveLayoutReferencesWithLineBreaks()
161 // but the actual platform behaviour is to return a string that equals in getText_withLayoutId()
181 TypedArray typedArray = resources.obtainTypedArray(R.array.typed_array_with_resource_id); in withIdReferenceEntry_obtainTypedArray() local
182 assertThat(typedArray.length()).isEqualTo(2); in withIdReferenceEntry_obtainTypedArray()
184 assertThat(typedArray.getResourceId(0, 0)).isEqualTo(R.id.id_declared_in_item_tag); in withIdReferenceEntry_obtainTypedArray()
185 assertThat(typedArray.getResourceId(1, 0)).isEqualTo(R.id.id_declared_in_layout); in withIdReferenceEntry_obtainTypedArray()
190 final TypedArray valuesTypedArray = resources.obtainTypedArray(R.array.typed_array_values); in obtainTypedArray()
212 final TypedArray refsTypedArray = resources.obtainTypedArray(R.array.typed_array_references); in obtainTypedArray()
[all …]
/external/mockito/src/main/java/org/mockito/internal/util/collections/
DHashCodeAndEqualsSafeSet.java3 * This program is made available under the terms of the MIT License.
21 * Useful for holding mocks that have un-stubbable hashCode or equals method,
22 * meaning that in this scenario the real code is always called and will most probably
110 public <T> T[] toArray(T[] typedArray) { in toArray() argument
111 …T[] array = typedArray.length >= size() ? typedArray : (T[]) newInstance(typedArray.getClass().get… in toArray()
/external/setupdesign/main/src/com/google/android/setupdesign/transition/
DTransitionHelper.java8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
26 import android.content.res.TypedArray;
48 * In Setup Wizard, all Just-a-sec style screens (i.e. screens that has an indeterminate
49 * progress bar and automatically finishes itself), should do a cross-fade when entering or
50 * exiting the screen. For all other screens, the transition should be a slide-in-from-right
53 * We use two different ways to override the transitions. The first is calling
54 * overridePendingTransition in code, and the second is using windowAnimationStyle in the theme.
55 * They have the following priority when framework is figuring out what transition to use:
61 * This is why, in general, overridePendingTransition is used to specify the fade animation,
[all …]
/external/setupcompat/main/java/com/google/android/setupcompat/util/
DSystemBarHelper.java8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
23 import android.content.res.TypedArray;
38 * <p>When the useImmersiveMode intent extra is true, a screen in Setup Wizard should hide the
102 * View#SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN} only takes effect when it is added to a view instead of
130 * <p>This will only take effect in versions Lollipop or above. Otherwise this is a no-op.
132 * @deprecated If the layout is instance of TemplateLayout, please use
144 // doesn't work if android.R.boolean.config_enableTranslucentDecor is false. in hideSystemBars()
152 * specify {@link View#SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN} flag so that the content is laid-out
153 * behind the transparent status bar. This is commonly used with {@link
[all …]
/external/accompanist/themeadapter-core/src/main/java/com/google/accompanist/themeadapter/core/
DResourceUtils.kt8 * https://www.apache.org/licenses/LICENSE-2.0 in <lambda>()
11 * distributed under the License is distributed on an "AS IS" BASIS, in <lambda>()
24 import android.content.res.TypedArray in <lambda>()
59 * @param fallbackColor Value to return if the attribute is not defined or can't be coerced to a in <lambda>()
64 ThemeAdapter is deprecated. in <lambda>()
65 For more migration information, please visit https://google.github.io/accompanist/themeadapter-appc… in <lambda>()
68 public fun TypedArray.parseColor( in <lambda>()
84 ThemeAdapter is deprecated. in <lambda>()
85 For more migration information, please visit https://google.github.io/accompanist/themeadapter-appc… in <lambda>()
95 return context.obtainStyledAttributes(id, R.styleable.ThemeAdapterTextAppearance).use { a -> in <lambda>()
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DSliderPreference.java8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
25 import android.content.res.TypedArray;
52 TypedArray a = context.obtainStyledAttributes(attrs, in SliderPreference()
97 protected Object onGetDefaultValue(TypedArray ta,int index) { in onGetDefaultValue()
/external/setupdesign/main/src/com/google/android/setupdesign/util/
DPartnerStyleHelper.java8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
21 import android.content.res.TypedArray;
116 TypedArray a = in shouldApplyPartnerResource()
152 TypedArray a = context.obtainStyledAttributes(new int[] {R.attr.sudUsePartnerHeavyTheme}); in shouldApplyPartnerHeavyThemeResource()
185 TypedArray a = in getDynamicColorAttributeFromTheme()
/external/robolectric/integration_tests/memoryleaks/src/test/java/org/robolectric/integrationtests/memoryleaks/
DBaseMemoryLeaksTest.java12 import android.content.res.TypedArray;
39 * <p>For internal reasons, this class is subclassed rather than inlining {@link #assertNotLeaking}
49 // A weak reference to the application. This is used to ensure that the application can be
92 () -> { in activityCanBeGcdAfterDestroyed()
103 () -> { in activityCanBeGcdAfterConfigChange()
120 () -> { in fragmentCanBeGcdAfterActivityDestroyed()
142 () -> { in fragmentCanBeGcdAfterRemoved()
166 () -> { in typedArrayData()
168 TypedArray typedArray = context.obtainStyledAttributes(new int[] {}); in typedArrayData() local
169 return ReflectionHelpers.getField(typedArray, "mData"); in typedArrayData()
[all …]
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DNumberPickerPreference.java8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
20 import android.content.res.TypedArray;
45 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.NumberPickerPreference); in NumberPickerPreference()
77 protected Object onGetDefaultValue(TypedArray a, int index) { in onGetDefaultValue()
/external/accompanist/appcompat-theme/src/main/java/com/google/accompanist/appcompattheme/
DTypedArrayUtils.kt8 * https://www.apache.org/licenses/LICENSE-2.0 in <lambda>()
11 * distributed under the License is distributed on an "AS IS" BASIS, in <lambda>()
21 import android.content.res.TypedArray in <lambda>()
37 internal fun TypedArray.getComposeColor( in <lambda>()
48 internal fun TypedArray.getFontFamilyOrNull(index: Int): FontFamilyWithWeight? { in <lambda>()
52 "sans-serif" -> FontFamilyWithWeight(FontFamily.SansSerif) in <lambda>()
53 "sans-serif-thin" -> FontFamilyWithWeight(FontFamily.SansSerif, FontWeight.Thin) in <lambda>()
54 "sans-serif-light" -> FontFamilyWithWeight(FontFamily.SansSerif, FontWeight.Light) in <lambda>()
55 "sans-serif-medium" -> FontFamilyWithWeight(FontFamily.SansSerif, FontWeight.Medium) in <lambda>()
56 "sans-serif-black" -> FontFamilyWithWeight(FontFamily.SansSerif, FontWeight.Black) in <lambda>()
[all …]
/external/setupdesign/main/src/com/google/android/setupdesign/view/
DNavigationBar.java8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
21 import android.content.res.TypedArray;
34 * next button. By default, the more button is hidden, and typically the next button will be hidden
35 * if the more button is shown.
54 TypedArray attributes = in getNavbarTheme()
65 // theme is light-on-dark or dark-on-light. in getNavbarTheme()
103 // All the constructors delegate to this init method. The 3-argument constructor is not
DFillContentLayout.java8 * http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
20 import android.content.res.TypedArray;
29 * A layout that will measure its children size based on the space it is given, by using its {@code
33 * <p>Typically this is used to show an illustration image or video on the screen. For optimal UX,
35 * range, and then stop scaling beyond the min/max size attributes. Therefore this view is typically
40 * minHeight given. Therefore it is common for children of this layout to have width / height set to
67 TypedArray a = in init()
77 maxHeight = a.getDimensionPixelSize(R.styleable.SudFillContentLayout_android_maxHeight, -1); in init()
87 maxWidth = a.getDimensionPixelSize(R.styleable.SudFillContentLayout_android_maxWidth, -1); in init()
[all …]
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DHardwareRenderingScreenshot.java5 import android.content.res.TypedArray;
26 * Helper class to provide hardware rendering-based screenshot to {@link ShadowPixelCopy} and {@link
31 // It is important to reuse HardwareRenderer objects, and ensure that after a HardwareRenderer is
57 …* https://googleplex-android.googlesource.com/platform/frameworks/layoutlib/+/refs/heads/master-la…
66 // - Android Bitmap requires ARGB_8888. in takeScreenshot()
67 // - ImageReader is configured as RGBA_8888. in takeScreenshot()
68 // - However the native libs/hwui/pipeline/skia/SkiaHostPipeline.cpp always treats in takeScreenshot()
73 hardwareRenderers.computeIfAbsent(viewRootImpl, k -> new HardwareRenderer()); in takeScreenshot()
104 TypedArray a = context.obtainStyledAttributes(null, R.styleable.Lighting, 0, 0); in setupRendererShadowProperties()

123456