Home
last modified time | relevance | path

Searched refs:Preconditions (Results 1 – 25 of 44) sorted by relevance

12

/cts/tests/tests/location/src/android/location/cts/asn1/base/
DAsn1Utf8String.java19 import com.google.common.base.Preconditions;
70 Preconditions.checkNotNull(value, "No value set."); in getBerValueLength()
75 Preconditions.checkNotNull(value, "No value set."); in encodeBerValue()
84 Preconditions.checkNotNull(value, "No value set."); in encodePerImpl()
85 Preconditions.checkState( in encodePerImpl()
DAsn1BitString.java21 import com.google.common.base.Preconditions;
68 Preconditions.checkNotNull(value, "No value set."); in getBerValueLength()
74 Preconditions.checkNotNull(value, "No value set."); in encodeBerValue()
75 Preconditions.checkState( in encodeBerValue()
101 Preconditions.checkNotNull(value, "No value set."); in encodePerImpl()
102 Preconditions.checkState( in encodePerImpl()
DAsn1OctetString.java21 import com.google.common.base.Preconditions;
66 Preconditions.checkNotNull(value, "No value set."); in getBerValueLength()
71 Preconditions.checkNotNull(value, "No value set."); in encodeBerValue()
80 Preconditions.checkNotNull(value, "No value set."); in encodePerImpl()
81 Preconditions.checkState( in encodePerImpl()
DAsn1IA5String.java21 import com.google.common.base.Preconditions;
61 Preconditions.checkNotNull(value, "No value set."); in getBerValueLength()
66 Preconditions.checkNotNull(value, "No value set."); in encodeBerValue()
75 Preconditions.checkNotNull(alphabet); in setAlphabet()
76 Preconditions.checkArgument(alphabet.length() > 0, "Empty alphabet"); in setAlphabet()
101 Preconditions.checkArgument(value.length() >= minimumSize, in setValue()
103 Preconditions.checkArgument(maximumSize == null in setValue()
116 Preconditions.checkNotNull(value, "No value set."); in encodePerImpl()
DAsn1BMPString.java21 import com.google.common.base.Preconditions;
79 Preconditions.checkNotNull(value, "No value set."); in encodePerImpl()
81 Preconditions.checkState(length >= minimumSize, "Value too short."); in encodePerImpl()
82 Preconditions.checkState(maximumSize == null || length <= maximumSize, in encodePerImpl()
134 Preconditions.checkState(codepoint <= 0xFFFF, in encodeCharactersPer()
DAsn1GeneralString.java21 import com.google.common.base.Preconditions;
78 Preconditions.checkNotNull(value, "No value set."); in encodePerImpl()
79 Preconditions.checkState(value.length >= minimumSize, "Value too short."); in encodePerImpl()
80 Preconditions.checkState(maximumSize == null || value.length <= maximumSize, in encodePerImpl()
DAsn1Integer.java21 import com.google.common.base.Preconditions;
82 Preconditions.checkNotNull(value, "No value set."); in validateValue()
83 Preconditions.checkState( in validateValue()
86 Preconditions.checkState( in validateValue()
DBitStream.java20 import com.google.common.base.Preconditions;
86 Preconditions.checkArgument(howManyBits < BITS_IN_BYTE); in appendLowBits()
DAsn1SequenceOf.java19 import com.google.common.base.Preconditions;
107 Preconditions.checkState(sequence.size() >= minimumSize, in encodePerImpl()
109 Preconditions.checkState(maximumSize == null in encodePerImpl()
DPerAlignedUtils.java19 import com.google.common.base.Preconditions;
59 Preconditions.checkArgument(range < SIXTYFOUR_K, "range >= 64K"); in encodeNormalizedSmallConstrainedWholeNumber()
60 Preconditions.checkArgument(normalizedValue >= 0, in encodeNormalizedSmallConstrainedWholeNumber()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSettingsStateManager.java25 import com.google.common.base.Preconditions;
45 mContext = Preconditions.checkNotNull(context); in SettingsStateManager()
46 mNamespace = Preconditions.checkNotNull(namespace); in SettingsStateManager()
47 mKey = Preconditions.checkNotNull(key); in SettingsStateManager()
DDeviceConfigStateManager.java29 import com.google.common.base.Preconditions;
55 mContext = Preconditions.checkNotNull(context); in DeviceConfigStateManager()
56 mNamespace = Preconditions.checkNotNull(namespace); in DeviceConfigStateManager()
57 mKey = Preconditions.checkNotNull(key); in DeviceConfigStateManager()
DOneTimeDeviceConfigListener.java26 import com.google.common.base.Preconditions;
53 mNamespace = Preconditions.checkNotNull(namespace); in OneTimeDeviceConfigListener()
54 mKey = Preconditions.checkNotNull(key); in OneTimeDeviceConfigListener()
DStateKeeperRule.java21 import com.google.common.base.Preconditions;
46 mStateManager = Preconditions.checkNotNull(stateManager); in StateKeeperRule()
DStateChangerRule.java22 import com.google.common.base.Preconditions;
50 mStateManager = Preconditions.checkNotNull(stateManager); in StateChangerRule()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DSettingsStateManager.java25 import com.google.common.base.Preconditions;
45 mContext = Preconditions.checkNotNull(context); in SettingsStateManager()
46 mNamespace = Preconditions.checkNotNull(namespace); in SettingsStateManager()
47 mKey = Preconditions.checkNotNull(key); in SettingsStateManager()
DDeviceConfigStateManager.java29 import com.google.common.base.Preconditions;
55 mContext = Preconditions.checkNotNull(context); in DeviceConfigStateManager()
56 mNamespace = Preconditions.checkNotNull(namespace); in DeviceConfigStateManager()
57 mKey = Preconditions.checkNotNull(key); in DeviceConfigStateManager()
DOneTimeDeviceConfigListener.java26 import com.google.common.base.Preconditions;
53 mNamespace = Preconditions.checkNotNull(namespace); in OneTimeDeviceConfigListener()
54 mKey = Preconditions.checkNotNull(key); in OneTimeDeviceConfigListener()
DStateKeeperRule.java21 import com.google.common.base.Preconditions;
46 mStateManager = Preconditions.checkNotNull(stateManager); in StateKeeperRule()
DStateChangerRule.java22 import com.google.common.base.Preconditions;
50 mStateManager = Preconditions.checkNotNull(stateManager); in StateChangerRule()
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DAugmentedUiBot.java32 import com.google.common.base.Preconditions;
65 Preconditions.checkNotNull(focusedId); in assertUiShown()
66 Preconditions.checkNotNull(expectedText); in assertUiShown()
88 Preconditions.checkState(mOkToCallAssertUiGone, "must call assertUiShown() first"); in assertUiGone()
DAugmentedHelper.java39 import com.google.common.base.Preconditions;
89 Preconditions.checkNotNull(activity); in assertBasicRequestInfo()
90 Preconditions.checkNotNull(expectedFocusedId); in assertBasicRequestInfo()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAuthenticationActivity.java38 import com.google.common.base.Preconditions;
98 Preconditions.checkArgument(id > 0, "id must be positive"); in createSender()
99 Preconditions.checkState(sDatasets.get(id) == null, "already have id"); in createSender()
114 Preconditions.checkArgument(id > 0, "id must be positive"); in createSender()
115 Preconditions.checkState(sResponses.get(id) == null, "already have id"); in createSender()
137 Preconditions.checkArgument(id > 0, "id must be positive"); in createSender()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DInMatcher.java35 Preconditions.checkNotNull("values", values); in InMatcher()
40 Preconditions.checkNotNull(values); in InMatcher()
DPreconditions.java27 public final class Preconditions { class
179 private Preconditions() { throw new AssertionError(); } in Preconditions() method in Preconditions

12