/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/ |
D | FalsingDataProviderTest.java | 19 import static org.hamcrest.CoreMatchers.is; 68 assertThat(motionEventList.size(), is(3)); in test_trackMotionEvents() 69 assertThat(motionEventList.get(0).getActionMasked(), is(MotionEvent.ACTION_DOWN)); in test_trackMotionEvents() 70 assertThat(motionEventList.get(1).getActionMasked(), is(MotionEvent.ACTION_MOVE)); in test_trackMotionEvents() 71 assertThat(motionEventList.get(2).getActionMasked(), is(MotionEvent.ACTION_UP)); in test_trackMotionEvents() 72 assertThat(motionEventList.get(0).getEventTime(), is(1L)); in test_trackMotionEvents() 73 assertThat(motionEventList.get(1).getEventTime(), is(2L)); in test_trackMotionEvents() 74 assertThat(motionEventList.get(2).getEventTime(), is(3L)); in test_trackMotionEvents() 75 assertThat(motionEventList.get(0).getX(), is(2f)); in test_trackMotionEvents() 76 assertThat(motionEventList.get(1).getX(), is(4f)); in test_trackMotionEvents() [all …]
|
D | ZigZagClassifierTest.java | 19 import static org.hamcrest.CoreMatchers.is; 54 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_fewTouchesVertical() 56 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_fewTouchesVertical() 58 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_fewTouchesVertical() 66 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_vertical() 71 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_fewTouchesHorizontal() 73 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_fewTouchesHorizontal() 75 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_fewTouchesHorizontal() 83 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_horizontal() 92 assertThat(mClassifier.isFalseTouch(), is(true)); in testFail_minimumTouchesVertical() [all …]
|
D | DiagonalClassifierTest.java | 22 import static org.hamcrest.CoreMatchers.is; 72 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_UnknownAngle() 78 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_VerticalSwipe() 81 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_VerticalSwipe() 87 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_MostlyVerticalSwipe() 90 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_MostlyVerticalSwipe() 93 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_MostlyVerticalSwipe() 96 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_MostlyVerticalSwipe() 103 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_BarelyVerticalSwipe() 107 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_BarelyVerticalSwipe() [all …]
|
D | TypeClassifierTest.java | 28 import static org.hamcrest.CoreMatchers.is; 66 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_QuickSettings() 69 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_QuickSettings() 78 assertThat(mClassifier.isFalseTouch(), is(true)); in testFalse_QuickSettings() 82 assertThat(mClassifier.isFalseTouch(), is(true)); in testFalse_QuickSettings() 92 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_PulseExpand() 95 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_PulseExpand() 104 assertThat(mClassifier.isFalseTouch(), is(true)); in testFalse_PulseExpand() 108 assertThat(mClassifier.isFalseTouch(), is(true)); in testFalse_PulseExpand() 118 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_NotificationDragDown() [all …]
|
D | DistanceClassifierTest.java | 19 import static org.hamcrest.CoreMatchers.is; 54 assertThat(mClassifier.isFalseTouch(), is(true)); in testPass_noPointer() 61 assertThat(mClassifier.isFalseTouch(), is(true)); in testPass_fling() 64 assertThat(mClassifier.isFalseTouch(), is(true)); in testPass_fling() 67 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_fling() 73 assertThat(mClassifier.isFalseTouch(), is(true)); in testFail_flingShort() 76 assertThat(mClassifier.isFalseTouch(), is(true)); in testFail_flingShort() 79 assertThat(mClassifier.isFalseTouch(), is(true)); in testFail_flingShort() 87 assertThat(mClassifier.isFalseTouch(), is(true)); in testFail_flingSlowly() 90 assertThat(mClassifier.isFalseTouch(), is(true)); in testFail_flingSlowly() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageManagerSettingsTests.java | 25 import static org.hamcrest.CoreMatchers.is; 94 assertThat(settings.readLPw(createFakeUsers()), is(true)); in testReadKeySetSettings() 109 assertThat(settings.readLPw(createFakeUsers()), is(true)); in testWriteKeySetSettings() 113 assertThat(settings.readLPw(createFakeUsers()), is(true)); in testWriteKeySetSettings() 126 assertThat(settings.readLPw(createFakeUsers()), is(true)); in testSettingsReadOld() 127 assertThat(settings.getPackageLPr(PACKAGE_NAME_3), is(notNullValue())); in testSettingsReadOld() 128 assertThat(settings.getPackageLPr(PACKAGE_NAME_1), is(notNullValue())); in testSettingsReadOld() 131 assertThat(ps.getEnabled(0), is(COMPONENT_ENABLED_STATE_DEFAULT)); in testSettingsReadOld() 132 assertThat(ps.getNotLaunched(0), is(true)); in testSettingsReadOld() 135 assertThat(ps.getStopped(0), is(false)); in testSettingsReadOld() [all …]
|
D | PackageUserStateTest.java | 22 import static org.hamcrest.CoreMatchers.is; 47 assertThat(testUserState.equals(null), is(false)); in testPackageUserState01() 48 assertThat(testUserState.equals(testUserState), is(true)); in testPackageUserState01() 49 assertThat(testUserState.equals(oldUserState), is(true)); in testPackageUserState01() 53 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01() 57 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01() 61 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01() 65 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01() 69 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01() 73 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01() [all …]
|
D | ScanTests.java | 33 import static org.hamcrest.core.Is.is; 108 assertThat(scanResult.existingSettingCopied, is(false)); in newInstallSimpleAllNominal() 126 assertThat(scanResult.pkgSetting.readUserState(uid).installed, is(true)); in newInstallForAllUsers() 139 assertThat(scanResult.pkgSetting.realName, is("com.package.real")); in installRealPackageName() 168 assertThat(scanResult.existingSettingCopied, is(true)); in updateSimpleNominal() 175 assertThat(scanResult.pkgSetting.primaryCpuAbiString, is("primaryCpuAbi")); in updateSimpleNominal() 176 assertThat(scanResult.pkgSetting.secondaryCpuAbiString, is("secondaryCpuAbi")); in updateSimpleNominal() 219 assertThat(scanResult.staticSharedLibraryInfo.getPackageName(), is("static.lib.pkg.123")); in installStaticSharedLibrary() 220 assertThat(scanResult.staticSharedLibraryInfo.getName(), is("static.lib")); in installStaticSharedLibrary() 221 assertThat(scanResult.staticSharedLibraryInfo.getLongVersion(), is(123L)); in installStaticSharedLibrary() [all …]
|
/frameworks/base/keystore/tests/src/android/security/ |
D | ParcelableKeyGenParameterSpecTest.java | 19 import static org.hamcrest.Matchers.is; 91 assertThat(spec.getKeystoreAlias(), is(alias)); in validateSpecValues() 92 assertThat(spec.getPurposes(), is(KEY_PURPOSES)); in validateSpecValues() 93 assertThat(spec.getUid(), is(uid)); in validateSpecValues() 94 assertThat(spec.getKeySize(), is(KEYSIZE)); in validateSpecValues() 95 assertThat(spec.getCertificateSubject(), is(SUBJECT)); in validateSpecValues() 96 assertThat(spec.getCertificateSerialNumber(), is(SERIAL)); in validateSpecValues() 97 assertThat(spec.getCertificateNotBefore(), is(NOT_BEFORE)); in validateSpecValues() 98 assertThat(spec.getCertificateNotAfter(), is(NOT_AFTER)); in validateSpecValues() 99 assertThat(spec.getKeyValidityStart(), is(KEY_VALIDITY_START)); in validateSpecValues() [all …]
|
/frameworks/base/tools/powermodel/test/com/android/powermodel/ |
D | CsvParserTest.java | 64 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/ |
D | Doxyfile | 6 # 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 …]
|
D | Doxyfile.orig | 6 # 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/ |
D | Doxyfile.orig | 6 # 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 …]
|
D | Doxyfile | 6 # 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/ |
D | doxygen.config | 6 # 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/ |
D | EGL_ANDROID_native_fence_sync.txt | 33 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/base/core/proto/android/app/ |
D | enums.proto | 11 * distributed under the License is distributed on an "AS IS" BASIS, 44 // here are completely fixed and arbitrary. Order is irrelevant. 48 // Process state that is unknown to this proto file (i.e. is not mapped 53 // Process is a persistent system process. 55 // Process is a persistent system process and is doing UI. 57 // Process is hosting the current top activities. Note that this covers 60 // Process is bound to a TOP app. 62 // Process is hosting a foreground service. 64 // Process is hosting a service bound by the system or another foreground app. 66 // Process is important to the user, and something they are aware of. [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
D | pvmp3_dequantize_sample.cpp | 187 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 …]
|
D | pvmp3_huffman_decoding.cpp | 123 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 …]
|
/frameworks/native/libs/vr/libpdx/ |
D | variant_tests.cpp | 132 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/base/core/proto/android/view/ |
D | enums.proto | 11 * 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/ |
D | Movie.java | 60 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/base/core/tests/coretests/src/android/app/activity/ |
D | IntentSenderTest.java | 34 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, 0); 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, 0); in testLocalReceivePermissionDenied() local [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | MacAuthenticatedInputStreamTest.java | 76 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_Success() local 78 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); in testString1Authenticate_Success() 80 assertTrue(is.isTagEqual(TEST_STRING_1_MAC)); in testString1Authenticate_Success() 87 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_WrongTag_Failure() local 89 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); in testString1Authenticate_WrongTag_Failure() 91 assertFalse(is.isTagEqual(TEST_STRING_1_MAC_BROKEN)); in testString1Authenticate_WrongTag_Failure() 98 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_NullTag_Failure() local 100 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); in testString1Authenticate_NullTag_Failure() 102 assertFalse(is.isTagEqual(null)); in testString1Authenticate_NullTag_Failure() 109 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_ReadSingleByte_Success() local [all …]
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | pixel_format_f32.rsh | 4 // 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 …]
|