Home
last modified time | relevance | path

Searched refs:mValue (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
DDatasetTest.java58 private final AutofillValue mValue = AutofillValue.forText("ValuableLikeGold"); field in DatasetTest
107 assertThrows(NullPointerException.class, () -> builder.setValue(null, mValue)); in testBuilder_setValueNullId()
113 assertThat(new Dataset.Builder().setValue(mId, mValue).build()).isNotNull(); in testBuilder_setValueWithoutPresentation()
119 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, in testBuilder_setValueWithNullPresentation()
126 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, in testBuilder_setValueWithBothPresentation_nullPresentation()
133 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, in testBuilder_setValueWithBothPresentation_nullInlinePresentation()
140 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, in testBuilder_setValueWithBothPresentation_bothNull()
146 assertThat(new Dataset.Builder(mPresentation).setValue(mId, mValue, (Pattern) null).build()) in testBuilder_setFilteredValueWithNullFilter()
152 assertThat(new Dataset.Builder().setValue(mId, mValue, null, mPresentation).build()) in testBuilder_setFilteredValueWithPresentation_nullFilter()
159 assertThrows(NullPointerException.class, () -> builder.setValue(mId, mValue, mFilter, in testBuilder_setFilteredValueWithPresentation_nullPresentation()
[all …]
DUserDataTest.java80 private final String mValue = mShortValue + "-1"; field in UserDataTest
90 mBuilder = new UserData.Builder(mId, mValue, mCategoryId); in setFixtures()
96 () -> new UserData.Builder(null, mValue, mCategoryId)); in testBuilder_invalid()
98 () -> new UserData.Builder("", mValue, mCategoryId)); in testBuilder_invalid()
107 assertThrows(NullPointerException.class, () -> new UserData.Builder(mId, mValue, null)); in testBuilder_invalid()
108 assertThrows(IllegalArgumentException.class, () -> new UserData.Builder(mId, mValue, "")); in testBuilder_invalid()
117 assertThrows(NullPointerException.class, () -> mBuilder.add(mValue, null)); in testAdd_invalid()
118 assertThrows(IllegalArgumentException.class, () -> mBuilder.add(mValue, "")); in testAdd_invalid()
123 assertThat(new UserData.Builder(mId, mValue, mCategoryId).add(mValue, mCategoryId).build()) in testAdd_duplicatedValue()
125 assertThat(new UserData.Builder(mId, mValue, mCategoryId).add(mValue, mCategoryId2).build()) in testAdd_duplicatedValue()
[all …]
DCompositeUserDataTest.java47 private final String mValue = mShortValue + "-1"; field in CompositeUserDataTest
57 private final UserData mEmptyGenericUserData = new UserData.Builder(mId, mValue, mCategoryId)
59 private final UserData mLoadedGenericUserData = new UserData.Builder(mId, mValue, mCategoryId)
114 assertThat(values[1]).isEqualTo(mValue); in testMerge_bothEmpty()
135 assertThat(values[2]).isEqualTo(mValue); in testMerge_emptyGenericUserData()
166 assertThat(values[1]).isEqualTo(mValue); in testMerge_emptyPackageUserData()
200 assertThat(values[2]).isEqualTo(mValue); in testMerge_bothHaveData()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DTarget.java197 return new Floaty(a.mNumberOfBits, new double[] { a.mValue + b.mValue, in add()
209 return new Floaty(a.mNumberOfBits, new double[] { a.mValue - b.mValue, in subtract()
221 return new Floaty(a.mNumberOfBits, new double[] { a.mValue * b.mValue, in multiply()
235 return new Floaty(a.mNumberOfBits, new double[] { a.mValue / b.mValue, in divide()
252 f.mValue = Math.abs(a.mValue); in abs()
271 double f = Math.sqrt(a.mValue); in sqrt()
317 private double mValue; field in Target.Floaty
327 mValue = a.mValue; in Floaty()
342 mValue = values[0]; in Floaty()
605 public double get() { return mValue; } in get()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DStateChangerRule.java39 private final T mValue; field in StateChangerRule
49 mValue = value; in StateChangerRule()
59 if (!Objects.equals(previousValue, mValue)) { in apply()
60 mStateManager.set(mValue); in apply()
DBlockingCallback.java45 private AtomicReference<E> mValue = new AtomicReference<>(); field in BlockingCallback
49 mValue.set(value); in callbackTriggered()
73 return mValue.get(); in await()
/cts/common/device-side/bedstead/nene/common/src/main/java/com/android/bedstead/nene/appops/
DAppOpsMode.java34 final int mValue; field in AppOpsMode
38 return mValue; in value()
42 this.mValue = value; in AppOpsMode()
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/
DDragSourceCursor.java24 private final String mValue; field in DragSourceCursor
27 mValue = value; in DragSourceCursor()
48 return mValue; in getString()
/cts/common/device-side/bedstead/remoteframeworkclasses/src/types/main/java/com/android/bedstead/remoteframeworkclasses/
DSimpleAccountManagerFuture.java37 private final AtomicReference<V> mValue = new AtomicReference<>(); field in SimpleAccountManagerFuture
65 return mValue.get(); in getResult()
79 mValue.set(result); in setResult()
94 return mValue.get(); in getResult()
/cts/tests/tests/content/src/android/content/res/cts/
DFractionTest.java28 private TypedValue mValue; field in FractionTest
34 mValue = new TypedValue(); in setUp()
78 mResources.getValue(resid, mValue, true); in tryFraction()
79 float res = mValue.getFraction(base, pbase); in tryFraction()
87 + Integer.toHexString(resid) + " " + mValue, diff > prec); in tryFraction()
/cts/tests/tests/slice/src/android/slice/cts/
DSliceProvider.java123 private final int mValue; field in SliceProvider.TestParcel
126 mValue = 42; in TestParcel()
130 mValue = in.readInt(); in TestParcel()
135 dest.writeInt(mValue); in writeToParcel()
147 return p.mValue == mValue; in equals()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DCliIntentExtra.java33 private final String mValue; field in CliIntentExtra
47 mValue = value; in CliIntentExtra()
77 return mValue; in value()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/util/
DLogcatHelper.java60 private String mValue; field in LogcatHelper.Level
63 return mValue; in getValue()
67 mValue = v; in Level()
95 String match = String.format("%s %s: %s", level.mValue, tag, message); in assertLogcatMessage()
134 String match = String.format("%s %s: %s", level.mValue, tag, message); in assertNoLogcatMessage()
/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/
DPlatformInspectableProcessorTest.java86 private final int mValue; field in PlatformInspectableProcessorTest.IntPropertyTest
89 mValue = seed.nextInt(); in IntPropertyTest()
94 return mValue; in getValue()
118 private final int mValue; field in PlatformInspectableProcessorTest.NamedPropertyTest
121 mValue = seed.nextInt(); in NamedPropertyTest()
126 return mValue; in getValue()
281 private final int mValue; field in PlatformInspectableProcessorTest.ValueTypeTest
286 mValue = seed.nextInt(); in ValueTypeTest()
302 return mValue; in getValue()
429 private int mValue; field in PlatformInspectableProcessorTest.IntEnumTest
[all …]
/cts/tests/translation/src/android/translation/cts/unittests/
DTranslationResponseTest.java40 private final TranslationResponseValue mValue = field in TranslationResponseTest
99 .setTranslationResponseValue(0, mValue) in testBuilder_validTranslationResponseValue()
115 .setTranslationResponseValue(0, mValue) in testParceledResponse_validTranslationResponseValues()
146 .setTranslationResponseValue(0, mValue) in testBuilder_mixingAdders()
167 values.set(0, mValue); in testBuilder_mixingSetters()
DTranslationRequestTest.java37 private final TranslationRequestValue mValue = TranslationRequestValue.forText("hello"); field in TranslationRequestTest
66 values.add(mValue); in testBuilder_validTranslationRequestValue()
93 values.add(mValue); in testBuilder_mixingSetters()
120 values.add(mValue); in testParceledRequest_validTranslationRequestValues()
/cts/tests/tests/content/src/android/content/pm/cts/
DInstallSessionParamsUnitTest.java284 private final T mValue; field in InstallSessionParamsUnitTest.Optional
288 mValue = value; in Optional()
299 return mValue; in get()
305 } else if (mValue == null) { in toString()
308 return mValue.toString(); in toString()
318 consumer.accept(mValue); in ifPresent()
/cts/tests/app/app/src/android/app/stubs/
DLocalService.java63 private int mValue = 0; field in LocalService
78 reply.writeInt(mValue);
82 mValue = data.readInt();
/cts/hostsidetests/sustainedperf/shadertoy_android/src/
DGLtestView.java215 if (egl.eglGetConfigAttrib(display, config, attribute, mValue)) { in findConfigAttrib()
216 return mValue[0]; in findConfigAttrib()
323 private int[] mValue = new int[1]; field in GLtestView.ConfigChooser
/cts/tests/tests/util/src/android/util/cts/
DArraySetTest.java105 final int mValue; field in ArraySetTest.ControlledHash
108 mValue = value; in ControlledHash()
116 return mValue == ((ControlledHash)o).mValue; in equals()
121 return mValue/100; in hashCode()
126 return Integer.toString(mValue); in toString()
DArrayMapTest.java111 final int mValue; field in ArrayMapTest.ControlledHash
114 mValue = value; in ControlledHash()
122 return mValue == ((ControlledHash)o).mValue; in equals()
127 return mValue/100; in hashCode()
132 return Integer.toString(mValue); in toString()
142 dest.writeInt(mValue); in writeToParcel()
/cts/tests/tests/animation/src/android/animation/cts/
DPropertyValuesHolderTest.java570 PointF mValue = new PointF(); in testOfObject_Converter()
573 mValue.x = -value.x; in testOfObject_Converter()
574 mValue.y = -value.y; in testOfObject_Converter()
575 return mValue; in testOfObject_Converter()
641 PointF mValue = new PointF(); in testSetConverter()
644 mValue.x = value * (-1f); in testSetConverter()
645 mValue.y = 0f; in testSetConverter()
646 return mValue; in testSetConverter()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/appops/
DAppOps.java54 mPackage.packageName(), mode.mValue); in set()
/cts/tests/tests/netsecpolicy/src/android/security/
DNetworkSecurityPolicyTestBase.java284 private T mValue; field in NetworkSecurityPolicyTestBase.SettableFuture
290 mValue = value; in set()
362 return mValue; in getValue()
/cts/hostsidetests/car/src/android/car/cts/powerpolicy/
DPowerPolicyDef.java191 private final String mValue; field in PowerPolicyDef.PowerComponent
194 mValue = v; in PowerComponent()
198 return mValue; in getValue()

12