Home
last modified time | relevance | path

Searched refs:is (Results 1 – 25 of 2667) sorted by relevance

12345678910>>...107

/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DSurroundingTextTest.java19 import static org.hamcrest.CoreMatchers.is;
37 assertThat(surroundingText1.getText(), is("test")); in testSurroundingTextBasicCreation()
38 assertThat(surroundingText1.getSelectionStart(), is(0)); in testSurroundingTextBasicCreation()
39 assertThat(surroundingText1.getSelectionEnd(), is(0)); in testSurroundingTextBasicCreation()
40 assertThat(surroundingText1.getOffset(), is(0)); in testSurroundingTextBasicCreation()
43 assertThat(surroundingText2.getText(), is("")); in testSurroundingTextBasicCreation()
44 assertThat(surroundingText2.getSelectionStart(), is(-1)); in testSurroundingTextBasicCreation()
45 assertThat(surroundingText2.getSelectionEnd(), is(-1)); in testSurroundingTextBasicCreation()
46 assertThat(surroundingText2.getOffset(), is(-1)); in testSurroundingTextBasicCreation()
49 assertThat(surroundingText3.getText(), is("hello")); in testSurroundingTextBasicCreation()
[all …]
DInputMethodInfoTest.java20 import static org.hamcrest.CoreMatchers.is;
48 assertThat(clone.equals(imi), is(true)); in testEqualsAndHashCode()
56 assertThat(imi.supportsSwitchingToNextInputMethod(), is(false)); in testBooleanAttributes_DefaultValues()
57 assertThat(imi.isInlineSuggestionsEnabled(), is(false)); in testBooleanAttributes_DefaultValues()
58 assertThat(imi.supportsInlineSuggestionsWithTouchExploration(), is(false)); in testBooleanAttributes_DefaultValues()
62 assertThat(clone.supportsSwitchingToNextInputMethod(), is(false)); in testBooleanAttributes_DefaultValues()
63 assertThat(imi.isInlineSuggestionsEnabled(), is(false)); in testBooleanAttributes_DefaultValues()
64 assertThat(imi.supportsInlineSuggestionsWithTouchExploration(), is(false)); in testBooleanAttributes_DefaultValues()
71 assertThat(imi.supportsSwitchingToNextInputMethod(), is(true)); in testSupportsSwitchingToNextInputMethod()
75 assertThat(clone.supportsSwitchingToNextInputMethod(), is(true)); in testSupportsSwitchingToNextInputMethod()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/
DPackageManagerSettingsTests.java29 import static org.hamcrest.CoreMatchers.is;
138 assertThat(settings.readLPw(computer, createFakeUsers()), is(true)); in testReadKeySetSettings()
149 assertThat(settings.readLPw(computer, createFakeUsers()), is(true)); in testWriteKeySetSettings()
153 assertThat(settings.readLPw(computer, createFakeUsers()), is(true)); in testWriteKeySetSettings()
162 assertThat(settings.readLPw(computer, createFakeUsers()), is(true)); in testSettingsReadOld()
163 assertThat(settings.getPackageLPr(PACKAGE_NAME_3), is(notNullValue())); in testSettingsReadOld()
164 assertThat(settings.getPackageLPr(PACKAGE_NAME_1), is(notNullValue())); in testSettingsReadOld()
167 assertThat(ps.getEnabled(0), is(COMPONENT_ENABLED_STATE_DEFAULT)); in testSettingsReadOld()
168 assertThat(ps.getNotLaunched(0), is(true)); in testSettingsReadOld()
171 assertThat(ps.getStopped(0), is(false)); in testSettingsReadOld()
[all …]
DScanTests.java34 import static org.hamcrest.core.Is.is;
147 assertThat(scanResult.mExistingSettingCopied, is(false)); in newInstallSimpleAllNominal()
165 assertThat(scanResult.mPkgSetting.readUserState(uid).isInstalled(), is(true)); in newInstallForAllUsers()
178 assertThat(scanResult.mPkgSetting.getRealName(), is("com.package.real")); in installRealPackageName()
207 assertThat(scanResult.mExistingSettingCopied, is(true)); in updateSimpleNominal()
214 assertThat(scanResult.mPkgSetting.getPrimaryCpuAbi(), is("primaryCpuAbi")); in updateSimpleNominal()
215 assertThat(scanResult.mPkgSetting.getSecondaryCpuAbi(), is("secondaryCpuAbi")); in updateSimpleNominal()
258 assertThat(scanResult.mSdkSharedLibraryInfo.getPackageName(), is("ogl.sdk_123")); in installSdkLibrary()
259 assertThat(scanResult.mSdkSharedLibraryInfo.getName(), is("ogl.sdk")); in installSdkLibrary()
260 assertThat(scanResult.mSdkSharedLibraryInfo.getLongVersion(), is(123L)); in installSdkLibrary()
[all …]
DPackageUserStateTest.java21 import static org.hamcrest.CoreMatchers.is;
58 assertThat(testUserState.equals(null), is(false)); in testPackageUserState01()
59 assertThat(testUserState.equals(testUserState), is(true)); in testPackageUserState01()
60 assertThat(testUserState.equals(oldUserState), is(true)); in testPackageUserState01()
64 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
68 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
72 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
76 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
80 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
84 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
[all …]
/frameworks/base/keystore/tests/src/android/security/
DParcelableKeyGenParameterSpecTest.java19 import static org.hamcrest.Matchers.is;
92 assertThat(spec.getKeystoreAlias(), is(alias)); in validateSpecValues()
93 assertThat(spec.getPurposes(), is(KEY_PURPOSES)); in validateSpecValues()
94 assertThat(spec.getNamespace(), is(namespace)); in validateSpecValues()
95 assertThat(spec.getKeySize(), is(KEYSIZE)); in validateSpecValues()
96 assertThat(spec.getCertificateSubject(), is(SUBJECT)); in validateSpecValues()
97 assertThat(spec.getCertificateSerialNumber(), is(SERIAL)); in validateSpecValues()
98 assertThat(spec.getCertificateNotBefore(), is(NOT_BEFORE)); in validateSpecValues()
99 assertThat(spec.getCertificateNotAfter(), is(NOT_AFTER)); in validateSpecValues()
100 assertThat(spec.getKeyValidityStart(), is(KEY_VALIDITY_START)); in validateSpecValues()
[all …]
/frameworks/base/tools/powermodel/test/com/android/powermodel/
DCsvParserTest.java64 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEmpty() local
67 CsvParser.parse(is, collector); in testEmpty()
76 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testOnlyNewline() local
79 CsvParser.parse(is, collector); in testOnlyNewline()
88 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testTwoLines() local
91 CsvParser.parse(is, collector); in testTwoLines()
103 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedEmpty() local
106 CsvParser.parse(is, collector); in testEscapedEmpty()
116 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedText() local
119 CsvParser.parse(is, collector); in testEscapedText()
[all …]
/frameworks/av/media/libaaudio/
DDoxyfile6 # All text after a double hash (##) is considered a comment and is placed in
7 # front of the TAG it is preceding.
9 # All text after a single hash (#) is considered a comment and will be ignored.
10 # The format is:
21 # that follow. The default is UTF-8 which is also the encoding used for all text
25 # The default value is: UTF-8.
29 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
31 # project for which the documentation is generated. This name is used in the
33 # The default value is: My Project.
39 # control system is used.
[all …]
/frameworks/base/media/native/midi/include/
DDoxyfile6 # All text after a double hash (##) is considered a comment and is placed in
7 # front of the TAG it is preceding.
9 # All text after a single hash (#) is considered a comment and will be ignored.
10 # The format is:
21 # that follow. The default is UTF-8 which is also the encoding used for all text
25 # The default value is: UTF-8.
29 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
31 # project for which the documentation is generated. This name is used in the
33 # The default value is: My Project.
39 # control system is used.
[all …]
/frameworks/av/media/codec2/docs/
Ddoxygen.config6 # All text after a double hash (##) is considered a comment and is placed in
7 # front of the TAG it is preceding.
9 # All text after a single hash (#) is considered a comment and will be ignored.
10 # The format is:
21 # that follow. The default is UTF-8 which is also the encoding used for all text
25 # The default value is: UTF-8.
29 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
31 # project for which the documentation is generated. This name is used in the
33 # The default value is: My Project.
39 # control system is used.
[all …]
/frameworks/native/opengl/specs/
DEGL_ANDROID_native_fence_sync.txt33 This extension is written against the wording of the EGL 1.2 Specification
35 EGL_KHR_fence_sync is required.
40 associated with a native synchronization fence object that is referenced
65 in <value> when eglGetSyncAttribKHR is called with <attribute>
79 Returned in <value> when eglGetSyncAttribKHR is called with <attribute>
89 "If <type> is EGL_SYNC_NATIVE_FENCE_ANDROID, an EGL native fence sync
90 object is created. In this case the EGL_SYNC_NATIVE_FENCE_FD_ANDROID
91 attribute may optionally be specified. If this attribute is specified, it
105 If the EGL_SYNC_NATIVE_FENCE_FD_ANDROID attribute is not
106 EGL_NO_NATIVE_FENCE_FD_ANDROID then the EGL_SYNC_CONDITION_KHR attribute is
[all …]
/frameworks/av/media/codecs/mp3dec/src/
Dpvmp3_dequantize_sample.cpp187 void pvmp3_dequantize_sample(int32 is[SUBBANDS_NUMBER*FILTERBANK_BANDS], in pvmp3_dequantize_sample()
296 int32 tmp = fxp_mul32_Q30((is[ss] << 16), power_1_third(pv_abs(is[ ss]))); in pvmp3_dequantize_sample()
305 is[ss] = (tmp >> temp); in pvmp3_dequantize_sample()
309 is[ss] = 0; in pvmp3_dequantize_sample()
314 is[ss] = (tmp << global_gain); in pvmp3_dequantize_sample()
352 int32 tmp = is[ss]; in pvmp3_dequantize_sample()
356 is[ss] = fxp_mul32_Q30(tmp, two_raise_one_fourth) >> global_gain; in pvmp3_dequantize_sample()
358 tmp = is[ss+1]; in pvmp3_dequantize_sample()
362 is[ss+1] = fxp_mul32_Q30(tmp, two_raise_one_fourth) >> global_gain; in pvmp3_dequantize_sample()
368 pv_memset(&is[ mp3_sfBandIndex[sfreq].l[cb]], in pvmp3_dequantize_sample()
[all …]
Dpvmp3_huffman_decoding.cpp123 int32 *is, in pvmp3_huffman_quad_decoding() argument
180 *is = v; in pvmp3_huffman_quad_decoding()
181 *(is + 1) = w; in pvmp3_huffman_quad_decoding()
182 *(is + 2) = x; in pvmp3_huffman_quad_decoding()
183 *(is + 3) = y; in pvmp3_huffman_quad_decoding()
190 int32 *is, in pvmp3_huffman_pair_decoding() argument
228 *is = x; in pvmp3_huffman_pair_decoding()
229 *(is + 1) = y; in pvmp3_huffman_pair_decoding()
233 *is = 0; in pvmp3_huffman_pair_decoding()
234 *(is + 1) = 0; in pvmp3_huffman_pair_decoding()
[all …]
Dpvmp3_huffman_parsing.cpp125 int32 pvmp3_huffman_parsing(int32 is[SUBBANDS_NUMBER*FILTERBANK_BANDS], in pvmp3_huffman_parsing()
197 (*pt_huff)(h, &is[i], pMainData); in pvmp3_huffman_parsing()
212 (*pt_huff)(h, &is[i], pMainData); in pvmp3_huffman_parsing()
227 (*pt_huff)(h, &is[i], pMainData); in pvmp3_huffman_parsing()
243 (*pt_huff)(h, &is[i], pMainData); in pvmp3_huffman_parsing()
257 (*pt_huff)(h, &is[i], pMainData); in pvmp3_huffman_parsing()
274 (*pt_huff)(h, &is[i], pMainData); in pvmp3_huffman_parsing()
288 pvmp3_huffman_quad_decoding(h, &is[i], pMainData); in pvmp3_huffman_parsing()
295 pvmp3_huffman_quad_decoding(h, &is[i], pMainData); in pvmp3_huffman_parsing()
301 is[i] = 0; in pvmp3_huffman_parsing()
[all …]
/frameworks/native/libs/vr/libpdx/
Dvariant_tests.cpp132 ASSERT_FALSE(v.is<int>()); in TEST()
133 ASSERT_FALSE(v.is<bool>()); in TEST()
134 ASSERT_FALSE(v.is<float>()); in TEST()
141 ASSERT_TRUE(v.is<int>()); in TEST()
142 ASSERT_FALSE(v.is<bool>()); in TEST()
143 ASSERT_FALSE(v.is<float>()); in TEST()
151 ASSERT_FALSE(v.is<int>()); in TEST()
152 ASSERT_TRUE(v.is<bool>()); in TEST()
153 ASSERT_FALSE(v.is<float>()); in TEST()
161 ASSERT_FALSE(v.is<int>()); in TEST()
[all …]
/frameworks/proto_logging/stats/enums/server/display/
Denums.proto11 * distributed under the License is distributed on an "AS IS" BASIS,
29 // HBM is off.
31 // HBM is on for HDR playback.
33 // HBM is on for sunlight visibility.
39 // Hbm sunlight visibility is off due to ambient light drop below threshold.
41 // Hbm sunlight visibility is off due to out of time budget.
43 // Hbm sunlight visibility is off due to thermal status exceeding threshold.
45 // Hbm sunlight visibility is off due to HDR playing.
47 // Hbm sunlight visibility is off due to battery saving is on.
49 // Hbm sunlight visibility is off due to display off.
[all …]
/frameworks/proto_logging/stats/enums/view/
Denums.proto11 * distributed under the License is distributed on an "AS IS" BASIS,
25 // The display state is unknown.
27 // The display state is off.
29 // The display state is on.
31 // The display is dozing in a low power state; it is still on but is
32 // optimized for showing system-provided content while the device is
35 // The display is dozing in a suspended low power state; it is still on
36 // but is optimized for showing static system-provided content while the
37 // device is non-interactive.
39 // The display is on and optimized for VR mode.
[all …]
/frameworks/base/graphics/java/android/graphics/
DMovie.java60 public static Movie decodeStream(InputStream is) { in decodeStream() argument
61 if (is == null) { in decodeStream()
64 if (is instanceof AssetManager.AssetInputStream) { in decodeStream()
65 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); in decodeStream()
69 return nativeDecodeStream(is); in decodeStream()
73 private static native Movie nativeDecodeStream(InputStream is); in nativeDecodeStream() argument
80 InputStream is; in decodeFile() local
82 is = new FileInputStream(pathName); in decodeFile()
87 return decodeTempStream(is); in decodeFile()
100 private static Movie decodeTempStream(InputStream is) { in decodeTempStream() argument
[all …]
/frameworks/av/media/libheadtracking/
DREADME.md9 The main entry point into this library is the `HeadTrackingProcessor` class.
10 This class is provided with the following inputs:
18 - Static: only the sound stage pose is taken into account. This will result
21 This will result in an experience where the sound stage is perceived to be
24 into account. This will result in an experience where the sound stage is
31 above and is ready to be fed into a virtualizer.
36 A `recenter()` operation is also available, which indicates to the system that
44 When referring to poses in code, it is always good practice to follow
56 Pose3f worldToHead; // “world” is the reference frame,
57 // “head” is the target frame.
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DMacAuthenticatedInputStreamTest.java78 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_Success() local
80 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); in testString1Authenticate_Success()
82 assertTrue(is.isTagEqual(TEST_STRING_1_MAC)); in testString1Authenticate_Success()
89 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_WrongTag_Failure() local
91 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); in testString1Authenticate_WrongTag_Failure()
93 assertFalse(is.isTagEqual(TEST_STRING_1_MAC_BROKEN)); in testString1Authenticate_WrongTag_Failure()
100 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_NullTag_Failure() local
102 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); in testString1Authenticate_NullTag_Failure()
104 assertFalse(is.isTagEqual(null)); in testString1Authenticate_NullTag_Failure()
111 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_ReadSingleByte_Success() local
[all …]
DLimitedLengthInputStreamTest.java45 InputStream is = new LimitedLengthInputStream(mTestStream1, -1, TEST_STRING1.length); in testConstructor_NegativeOffset_Failure() local
55 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, -1); in testConstructor_NegativeLength_Failure() local
65 InputStream is = new LimitedLengthInputStream(null, 0, 1); in testConstructor_NullInputStream_Failure() local
75 InputStream is = new LimitedLengthInputStream(mTestStream1, Long.MAX_VALUE - 1, in testConstructor_OffsetLengthOverflow_Fail() local
91 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkReadBytesWithOffsetAndLength_WithString1() local
92 assertEquals(length, is.read(temp, 0, temp.length)); in checkReadBytesWithOffsetAndLength_WithString1()
97 assertEquals(-1, is.read(temp, 0, temp.length)); in checkReadBytesWithOffsetAndLength_WithString1()
126 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, TEST_STRING1.length + 10); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success() local
127 assertEquals(TEST_STRING1.length, is.read(temp, 0, TEST_STRING1.length + 10)); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
141 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkReadBytes_WithString1() local
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DIntentSenderTest.java34 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, in testRegisteredReceivePermissionGranted() local
36 is.send(); in testRegisteredReceivePermissionGranted()
38 is.cancel(); in testRegisteredReceivePermissionGranted()
55 …PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, PendingIntent.FLAG_MUTABLE_… in testRegisteredReceivePermissionDenied() local
56 is.send(Activity.RESULT_CANCELED, finish, null); in testRegisteredReceivePermissionDenied()
58 is.cancel(); in testRegisteredReceivePermissionDenied()
63 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, in testLocalReceivePermissionGranted() local
65 is.send(); in testLocalReceivePermissionGranted()
67 is.cancel(); in testLocalReceivePermissionGranted()
82 …PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, PendingIntent.FLAG_MUTABLE_… in testLocalReceivePermissionDenied() local
[all …]
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dpixel_format_f32.rsh4 // FocusPixel is the pixel format in the input image, which serves the
8 // value (actual_depth). The actual_depth field is never changed once set.
11 // whether or not a pixel is on the current target layer. For pixels that are
12 // active or not active but "close enough" to an active pixel, a matte value is
14 // is no larger than dilation_radius defined in LayerInfo_t in "layer_info.rsh".
16 // 3. After each layer is processed from back-most layer to focal depth layer,
17 // the color (red, green, blue) of FocusPixel is updated and ready to be used in
20 // 4. After each layer is processed from front-most layer to focal depth layer,
21 // the color (red, green, blue) of FocusPixel is *not* changed.
23 // 5. After each layer is processed in either of the two passes, the fields
[all …]
/frameworks/compile/slang/tests/F_reflection3264_variable_mismatch_init/
Dstderr.txt.expect1 reflection3264_variable_mismatch_init.rscript:6:7: error: global variable 'b' is initialized differ…
2 reflection3264_variable_mismatch_init.rscript:10:8: error: global variable 'd' is initialized diffe…
3 reflection3264_variable_mismatch_init.rscript:14:6: error: global variable 'f' is initialized diffe…
4 reflection3264_variable_mismatch_init.rscript:18:6: error: global variable 'h' is initialized diffe…
5 reflection3264_variable_mismatch_init.rscript:22:8: error: global variable 'j' is initialized diffe…
6 reflection3264_variable_mismatch_init.rscript:30:5: error: global variable 'k' is initialized diffe…
7 reflection3264_variable_mismatch_init.rscript:38:5: error: global variable 'm' is initialized diffe…
8 reflection3264_variable_mismatch_init.rscript:45:6: error: global variable 'n' is initialized diffe…
9 reflection3264_variable_mismatch_init.rscript:51:8: error: global variable 'jj' is initialized diff…
10 reflection3264_variable_mismatch_init.rscript:59:5: error: global variable 'kk' is initialized diff…
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DDiagMips.inc4 "target '%0' is incompatible with '%1' in %2",
5 "target '%0' is incompatible with '%1' in %2")
8 "target arch '%0' is inconsist with the '%1' in %2",
9 "target arch '%0' is inconsist with the '%1' in %2")
20 "target ABI is incompatible with ABI in %0",
21 "target ABI is incompatible with ABI in %0")
24 "target -mnan=%0 flag is incompatible with -mnan=%1 in %2",
25 "target -mnan=%0 flag is incompatible with -mnan=%1 in %2")
28 "target -mfp flag is incompatible with -mfp in %0",
29 "target -mfp flag is incompatible with -mfp in %0")
[all …]

12345678910>>...107