/frameworks/base/services/tests/selinux/src/com/android/server/selinux/ |
D | SelinuxAuditLogsBuilderTest.java | 68 assertThat(mScontextMatcher.reset("u:r:" + TEST_DOMAIN + ":s0").matches()).isTrue(); in testMatcher_scontext() 72 assertThat(mScontextMatcher.reset("u:r:" + TEST_DOMAIN + ":s0:c123,c456").matches()) in testMatcher_scontext() 78 assertThat(mScontextMatcher.reset("u:r:wrong_domain:s0").matches()).isFalse(); in testMatcher_scontext() 79 assertThat(mScontextMatcher.reset("u:object_r:" + TEST_DOMAIN + ":s0").matches()).isFalse(); in testMatcher_scontext() 80 assertThat(mScontextMatcher.reset("u:r:" + TEST_DOMAIN + ":s0:p123").matches()).isFalse(); in testMatcher_scontext() 85 assertThat(mTcontextMatcher.reset("u:object_r:target_type:s0").matches()).isTrue(); in testMatcher_tcontext() 89 assertThat(mTcontextMatcher.reset("u:object_r:target_type2:s0:c666").matches()).isTrue(); in testMatcher_tcontext() 93 assertThat(mTcontextMatcher.reset("u:r:target_type:s0").matches()).isFalse(); in testMatcher_tcontext() 94 assertThat(mTcontextMatcher.reset("u:r:" + TEST_DOMAIN + ":s0:x456").matches()).isFalse(); in testMatcher_tcontext() 99 assertThat(mPathMatcher.reset("\"/data\"").matches()).isTrue(); in testMatcher_path() [all …]
|
/frameworks/base/cmds/incidentd/tests/ |
D | FdBuffer_test.cpp | 129 c2pPipe.readFd().reset(); in TEST_F() 136 c2pPipe.writeFd().reset(); in TEST_F() 155 p2cPipe.writeFd().reset(); in TEST_F() 156 c2pPipe.readFd().reset(); in TEST_F() 159 p2cPipe.readFd().reset(); in TEST_F() 160 c2pPipe.writeFd().reset(); in TEST_F() 164 p2cPipe.readFd().reset(); in TEST_F() 165 c2pPipe.writeFd().reset(); in TEST_F() 185 p2cPipe.writeFd().reset(); in TEST_F() 186 c2pPipe.readFd().reset(); in TEST_F() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | IntRangeManagerTest.java | 84 void reset() { in reset() method in IntRangeManagerTest.TestIntRangeManager 126 testManager.reset(); in testAddSingleChannel() 140 testManager.reset(); in testRemoveSingleChannel() 145 testManager.reset(); in testRemoveSingleChannel() 169 testManager.reset(); in testAddTwoChannels() 175 testManager.reset(); in testAddTwoChannels() 194 testManager.reset(); in testOverlappingChannels() 200 testManager.reset(); in testOverlappingChannels() 206 testManager.reset(); in testOverlappingChannels() 212 testManager.reset(); in testOverlappingChannels() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | PropertyAnimatorTest.java | 119 mAnimationFilter.reset(); in testAnimationStarted() 127 mAnimationFilter.reset(); in testNoAnimationStarted() 134 mAnimationFilter.reset(); in testEndValueUpdated() 144 mAnimationFilter.reset(); in testStartTagUpdated() 153 mAnimationFilter.reset(); in testValueIsSetUnAnimated() 160 mAnimationFilter.reset(); in testAnimationToRightValueUpdated() 163 mAnimationFilter.reset(); in testAnimationToRightValueUpdated() 172 mAnimationFilter.reset(); in testAnimationToRightValueUpdateAnimated() 175 mAnimationFilter.reset(); in testAnimationToRightValueUpdateAnimated() 186 mAnimationFilter.reset(); in testStartTagShiftedWhenChanging() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardIndicationRotateTextViewControllerTest.java | 33 import static org.mockito.Mockito.reset; 170 reset(mView); in testShowTwoRotatingMessages() 189 reset(mView); in testUpdateCurrentMessage() 210 reset(mView); in testUpdateRotatingMessageForUndisplayedIndication() 211 reset(mExecutor); in testUpdateRotatingMessageForUndisplayedIndication() 234 reset(mView); in testUpdateImmediately() 235 reset(mExecutor); in testUpdateImmediately() 249 reset(mView); in testUpdateImmediately() 250 reset(mExecutor); in testUpdateImmediately() 267 reset(mView); in testSameMessage_noIndicationUpdate() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarTransitionsTest.kt | 36 import org.mockito.Mockito.reset 61 reset(batteryView) in <lambda>() 62 reset(statusIcons) in <lambda>() 63 reset(startIcons) in <lambda>() 139 reset(startIcons) in transitionTo_transparentMode_startIconsShown() 170 reset(startIcons) in onHeadsUpStateChanged_true_semiTransparentMode_startIconsShown() 180 reset(startIcons) in onHeadsUpStateChanged_true_opaqueMode_startIconsUseResourceAlpha() 191 reset(startIcons) in onHeadsUpStateChanged_true_lightsOutMode_startIconsUseResourceAlpha() 201 reset(startIcons) in onHeadsUpStateChanged_false_semiTransparentMode_startIconsShown() 211 reset(startIcons) in onHeadsUpStateChanged_false_opaqueMode_startIconsUseResourceAlpha() [all …]
|
/frameworks/base/libs/androidfw/ |
D | FileStream.cpp | 47 buffer_.reset(new uint8_t[buffer_capacity_]); in FileInputStream() 56 buffer_.reset(new uint8_t[buffer_capacity_]); in FileInputStream() 66 buffer_.reset(new uint8_t[buffer_capacity_]); in FileInputStream() 94 buffer_.reset(); in Next() 134 owned_fd_.reset(TEMP_FAILURE_RETRY(::android::base::utf8::open(path.c_str(), mode, 0666))); in FileOutputStream() 139 buffer_.reset(new uint8_t[buffer_capacity_]); in FileOutputStream() 153 buffer_.reset(new uint8_t[buffer_capacity_]); in FileOutputStream() 204 owned_fd_.reset(); in FlushImpl() 206 buffer_.reset(); in FlushImpl()
|
D | ResourceTimer.cpp | 100 bool ResourceTimer::copy(int counter, Timer &dst, bool reset) { in copy() argument 103 dst.reset(); in copy() 104 if (reset) t->reset(); in copy() 107 Timer::copy(dst, *t, reset); in copy() 111 void ResourceTimer::reset() { in reset() function in android::ResourceTimer 114 t->reset(); in reset() 121 reset(); in Timer() 137 void ResourceTimer::Timer::reset() { in reset() function in android::ResourceTimer::Timer 147 void ResourceTimer::Timer::copy(Timer &dst, Timer &src, bool reset) { in copy() argument 151 if (reset) { in copy() [all …]
|
/frameworks/native/libs/gui/ |
D | BitTube.cpp | 58 mReceiveFd.reset(sockets[0]); in init() 59 mSendFd.reset(sockets[1]); in init() 61 mReceiveFd.reset(); in init() 121 mReceiveFd.reset(); in writeToParcel() 126 mSendFd.reset(); in writeToParcel() 131 mReceiveFd.reset(dup(parcel->readFileDescriptor())); in readFromParcel() 133 mReceiveFd.reset(); in readFromParcel() 138 mSendFd.reset(dup(parcel->readFileDescriptor())); in readFromParcel() 140 mSendFd.reset(); in readFromParcel()
|
/frameworks/native/include/binder/ |
D | unique_fd.h | 52 explicit unique_fd(int fd) { reset(fd); } in unique_fd() 53 ~unique_fd() { reset(); } in ~unique_fd() 57 unique_fd(unique_fd&& other) noexcept { reset(other.release()); } in unique_fd() 61 reset(fd); 65 [[clang::reinitializes]] void reset(int new_value = -1) {
|
/frameworks/native/libs/binder/include/binder/ |
D | unique_fd.h | 52 explicit unique_fd(int fd) { reset(fd); } in unique_fd() 53 ~unique_fd() { reset(); } in ~unique_fd() 57 unique_fd(unique_fd&& other) noexcept { reset(other.release()); } in unique_fd() 61 reset(fd); 65 [[clang::reinitializes]] void reset(int new_value = -1) {
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | LegacyLockIconViewControllerWithCoroutinesTest.kt | 33 import org.mockito.Mockito.reset 54 reset(mLockIconView) in testLockIcon_clearsIconWhenUnlocked() 75 reset(mLockIconView) in testLockIcon_updateToAodLock_whenUdfpsEnrolled() 99 reset(mLockIconView) in testBurnInOffsetsUpdated_onDozeAmountChanged() 108 reset(mLockIconView) in testBurnInOffsetsUpdated_onDozeAmountChanged() 126 reset(mLockIconView) in testHideLockIconView_onLockscreenHostedDreamStateChanged() 135 reset(mLockIconView) in testHideLockIconView_onLockscreenHostedDreamStateChanged()
|
/frameworks/av/services/oboeservice/ |
D | SharedMemoryWrapper.cpp | 33 mCounterFd.reset(ashmem_create_region("AAudioSharedMemoryWrapper", WRAPPER_SIZE_IN_BYTES)); in SharedMemoryWrapper() 41 mCounterFd.reset(); in SharedMemoryWrapper() 50 mCounterFd.reset(); in SharedMemoryWrapper() 61 reset(); in ~SharedMemoryWrapper() 95 void SharedMemoryWrapper::reset() { in reset() function in aaudio::SharedMemoryWrapper 96 mFifoBuffer.reset(); in reset() 101 mDataFd.reset(); in reset()
|
/frameworks/base/core/tests/devicestatetests/src/android/hardware/devicestate/ |
D | DeviceStateManagerGlobalTest.java | 24 import static org.mockito.Mockito.reset; 87 reset(callback1); in registerCallback() 88 reset(callback2); in registerCallback() 96 reset(callback1); in registerCallback() 97 reset(callback2); in registerCallback() 104 reset(callback1); in registerCallback() 105 reset(callback2); in registerCallback() 126 reset(callback); in unregisterCallback() 142 reset(callback); in submitRequest() 149 reset(callback); in submitRequest() [all …]
|
/frameworks/native/libs/binder/ |
D | UtilsHost.cpp | 54 pid.reset(); in ~CommandResult() 58 pid.reset(); in ~CommandResult() 107 ret.outPipe.reset(); in execute() 108 ret.errPipe.reset(); in execute() 112 outWrite.reset(); in execute() 116 errWrite.reset(); in execute() 122 outWrite.reset(); in execute() 123 errWrite.reset(); in execute() 135 fd->reset(); in execute()
|
/frameworks/base/cmds/idmap2/ |
D | valgrind.sh | 29 local reset="\e[0m" 32 _log "${green}[ RUN ]${reset} ${label}" 35 _log "${green}[ OK ]${reset} ${label}" 39 _log "${red}[ FAILED ]${reset} ${label}"
|
D | static-checks.sh | 29 local reset="\e[0m" 32 _log "${green}[ RUN ]${reset} ${label}" 35 _log "${green}[ OK ]${reset} ${label}" 39 _log "${red}[ FAILED ]${reset} ${label}"
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioMixer.cpp | 146 mPostDownmixReformatBufferProvider->reset(); in unprepareForDownmix() 152 mDownmixerBufferProvider.reset(nullptr); in unprepareForDownmix() 180 mDownmixerBufferProvider.reset(new DownmixerBufferProvider( in prepareForDownmix() 199 mDownmixerBufferProvider.reset(new ChannelMixBufferProvider(channelMask, in prepareForDownmix() 213 mDownmixerBufferProvider.reset(new RemixBufferProvider(channelMask, in prepareForDownmix() 224 mReformatBufferProvider.reset(nullptr); in unprepareForReformat() 228 mPostDownmixReformatBufferProvider.reset(nullptr); in unprepareForReformat() 246 mReformatBufferProvider.reset(new ReformatBufferProvider( in prepareForReformat() 256 mReformatBufferProvider.reset(new ClampFloatBufferProvider( in prepareForReformat() 262 mPostDownmixReformatBufferProvider.reset(new ReformatBufferProvider( in prepareForReformat() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/log/table/ |
D | TableChangeTest.kt | 34 underTest.reset( in setString_isString() 50 underTest.reset( in setString_null() 66 underTest.reset( in setBoolean_isBoolean() 82 underTest.reset( in setInt_isInt() 98 underTest.reset( in setInt_null() 114 underTest.reset( in setThenReset_isEmpty() 121 underTest.reset( in setThenReset_isEmpty() 167 underTest.reset( in resetThenSet_hasNewValue() 174 underTest.reset(timestamp = 0, columnPrefix = "", columnName = "updated", isInitial = false) in resetThenSet_hasNewValue() 188 underTest.reset( in reset_initialToNotInitial_valDoesNotHaveInitial() [all …]
|
/frameworks/native/opengl/libs/EGL/ |
D | MultifileBlobCache_test.cpp | 44 mTempFile.reset(new TemporaryFile()); in SetUp() 45 mMBC.reset(new MultifileBlobCache(kMaxKeySize, kMaxValueSize, kMaxTotalSize, in SetUp() 51 mMBC.reset(); in TearDown() 291 mMBC.reset(); in TEST_F() 294 mMBC.reset(new MultifileBlobCache(kMaxKeySize, kMaxValueSize, kMaxTotalSize, kMaxTotalEntries, in TEST_F() 354 mMBC.reset(); in TEST_F() 360 mMBC.reset(new MultifileBlobCache(kMaxKeySize, kMaxValueSize, kMaxTotalSize, kMaxTotalEntries, in TEST_F() 374 mMBC.reset(); in TEST_F() 385 mMBC.reset(new MultifileBlobCache(kMaxKeySize, kMaxValueSize, kMaxTotalSize, kMaxTotalEntries, in TEST_F() 399 mMBC.reset(); in TEST_F() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/ |
D | TemporaryViewDisplayControllerTest.kt | 49 import org.mockito.Mockito.reset 181 reset(windowManager) in displayView_twice_viewNotAddedTwice() 226 reset(windowManager) in displayView_viewDoesNotDisappearsBeforeTimeout() 240 reset(windowManager) in displayView_viewDisappearsAfterTimeout() 292 reset(windowManager) in displayScaleChange_viewReinflatedWithMostRecentState() 343 reset(windowManager) in multipleViewsWithDifferentIds_newViewRemoved_previousViewIsDisplayed() 349 reset(windowManager) in multipleViewsWithDifferentIds_newViewRemoved_previousViewIsDisplayed() 365 reset(windowManager) in multipleViewsWithDifferentIds_newViewRemoved_previousViewIsDisplayed() 382 reset(windowManager) in multipleViewsWithDifferentIds_oldViewRemoved_recentViewIsDisplayed() 388 reset(windowManager) in multipleViewsWithDifferentIds_oldViewRemoved_recentViewIsDisplayed() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/ |
D | DreamOverlayCallbackControllerTest.kt | 27 import org.mockito.Mockito.reset 58 reset(callback) in onWakeUpInvokesCallback() 64 reset(callback) in onWakeUpInvokesCallback() 81 reset(callback) in onStartDreamInvokesCallback() 87 reset(callback) in onStartDreamInvokesCallback()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | OneShotTimerTest.cpp | 88 mIdleTimer->reset(); in TEST_F() 108 mIdleTimer->reset(); in TEST_F() 112 mIdleTimer->reset(); in TEST_F() 116 mIdleTimer->reset(); in TEST_F() 120 mIdleTimer->reset(); in TEST_F() 143 mIdleTimer->reset(); in TEST_F() 148 mIdleTimer->reset(); in TEST_F() 157 mIdleTimer->reset(); in TEST_F() 198 mIdleTimer->reset(); in TEST_F() 240 mIdleTimer->reset(); in TEST_F() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | MediaPlayerStateUnitTestTemplate.java | 176 mMediaPlayer.reset(); in setMediaPlayerToIdleStateAfterReset() 179 mMediaPlayer.reset(); in setMediaPlayerToIdleStateAfterReset() 188 mMediaPlayer.reset(); in setMediaPlayerToInitializedState() 198 mMediaPlayer.reset(); in setMediaPlayerToPreparedState() 209 mMediaPlayer.reset(); in setMediaPlayerToPreparedStateAfterStop() 223 mMediaPlayer.reset(); in setMediaPlayerToStartedState() 235 mMediaPlayer.reset(); in setMediaPlayerToStartedStateAfterPause() 260 mMediaPlayer.reset(); in setMediaPlayerToPausedState() 273 mMediaPlayer.reset(); in setMediaPlayerToStoppedState() 286 mMediaPlayer.reset(); in setMediaPlayerToPlaybackCompletedState() [all …]
|
/frameworks/native/cmds/installd/ |
D | unique_file.cpp | 40 reset(); in ~UniqueFile() 53 void UniqueFile::reset() { in reset() function in android::installd::UniqueFile 54 reset(-1, ""); in reset() 57 void UniqueFile::reset(int new_value, std::string path, CleanUpFunction new_cleanup) { in reset() function in android::installd::UniqueFile
|