Home
last modified time | relevance | path

Searched refs:update (Results 1 – 25 of 621) sorted by relevance

12345678910>>...25

/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutBlocksTest.java72 private void update(int startLine, int endLine, int newLineCount) { in update() method in DynamicLayoutBlocksTest
110 update(0, 0, 0); in testFrom0()
113 update(0, 0, 1); in testFrom0()
116 update(0, 0, 10); in testFrom0()
124 update(0, 0, 0); in testFrom1ReplaceByEmpty()
127 update(0, 10, 0); in testFrom1ReplaceByEmpty()
130 update(0, 100, 0); in testFrom1ReplaceByEmpty()
133 update(20, 30, 0); in testFrom1ReplaceByEmpty()
136 update(20, 20, 0); in testFrom1ReplaceByEmpty()
139 update(40, 100, 0); in testFrom1ReplaceByEmpty()
[all …]
/frameworks/base/libs/input/
DSpriteController.cpp127 SpriteUpdate& update = updates.editItemAt(i); in doUpdateSprites() local
129 if (update.state.surfaceControl == NULL && update.state.wantSurfaceVisible()) { in doUpdateSprites()
130 update.state.surfaceWidth = update.state.icon.width(); in doUpdateSprites()
131 update.state.surfaceHeight = update.state.icon.height(); in doUpdateSprites()
132 update.state.surfaceDrawn = false; in doUpdateSprites()
133 update.state.surfaceVisible = false; in doUpdateSprites()
134 update.state.surfaceControl = obtainSurface( in doUpdateSprites()
135 update.state.surfaceWidth, update.state.surfaceHeight); in doUpdateSprites()
136 if (update.state.surfaceControl != NULL) { in doUpdateSprites()
137 update.surfaceChanged = surfaceChanged = true; in doUpdateSprites()
[all …]
/frameworks/minikin/include/minikin/
DHasher.h33 IGNORE_INTEGER_OVERFLOW inline Hasher& update(uint32_t data) { in update() function
40 inline Hasher& update(int32_t data) { in update() function
41 update(static_cast<uint32_t>(data)); in update()
45 inline Hasher& update(uint64_t data) { in update() function
46 update(static_cast<uint32_t>(data)); in update()
47 update(static_cast<uint32_t>(data >> 32)); in update()
51 inline Hasher& update(float data) { in update() function
57 return update(bits.i); in update()
61 update(length); in updateShorts()
64 update((uint32_t)data[i] | ((uint32_t)data[i + 1] << 16)); in updateShorts()
[all …]
DMinikinPaint.h94 .update(size) in hash()
95 .update(scaleX) in hash()
96 .update(skewX) in hash()
97 .update(letterSpacing) in hash()
98 .update(wordSpacing) in hash()
99 .update(fontFlags) in hash()
100 .update(localeListId) in hash()
101 .update(fontStyle.identifier()) in hash()
102 .update(static_cast<uint8_t>(familyVariant)) in hash()
104 .update(font->getId()) in hash()
DLayoutCache.h108 .update(mId) in computeHash()
109 .update(mStart) in computeHash()
110 .update(mCount) in computeHash()
111 .update(mStyle.identifier()) in computeHash()
112 .update(mSize) in computeHash()
113 .update(mScaleX) in computeHash()
114 .update(mSkewX) in computeHash()
115 .update(mLetterSpacing) in computeHash()
116 .update(mWordSpacing) in computeHash()
117 .update(mFontFlags) in computeHash()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorTouchStateTest.java65 mTouchState.update(event1, mConfig); in testUpdate_singleTap()
71 mTouchState.update(event2, mConfig); in testUpdate_singleTap()
77 mTouchState.update(event3, mConfig); in testUpdate_singleTap()
86 mTouchState.update(event1, mConfig); in testUpdate_doubleTap_sameArea()
92 mTouchState.update(event2, mConfig); in testUpdate_doubleTap_sameArea()
98 mTouchState.update(event3, mConfig); in testUpdate_doubleTap_sameArea()
108 mTouchState.update(event1, mConfig); in testUpdate_doubleTap_notSameArea()
114 mTouchState.update(event2, mConfig); in testUpdate_doubleTap_notSameArea()
120 mTouchState.update(event3, mConfig); in testUpdate_doubleTap_notSameArea()
127 mTouchState.update(event4, mConfig); in testUpdate_doubleTap_notSameArea()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/back/
DTouchTrackerTest.java52 mTouchTracker.update(touchX, 0); in generatesProgress_leftEdge()
58 mTouchTracker.update(touchX, 0); in generatesProgress_leftEdge()
64 mTouchTracker.update(touchX, 0); in generatesProgress_leftEdge()
69 mTouchTracker.update(touchX, 0); in generatesProgress_leftEdge()
74 mTouchTracker.update(touchX, 0); in generatesProgress_leftEdge()
80 mTouchTracker.update(touchX, 0); in generatesProgress_leftEdge()
86 mTouchTracker.update(touchX, 0); in generatesProgress_leftEdge()
96 mTouchTracker.update(touchX, 0); in generatesProgress_rightEdge()
102 mTouchTracker.update(touchX, 0); in generatesProgress_rightEdge()
108 mTouchTracker.update(touchX, 0); in generatesProgress_rightEdge()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java160 left.update("com.test.activity1", 200000, Event.ACTIVITY_RESUMED, 1); in testActivity()
168 left.update("com.test.activity1", 350000, ACTIVITY_PAUSED, 1); in testActivity()
175 left.update("com.test.activity1", 400000, ACTIVITY_STOPPED, 1); in testActivity()
182 left.update("com.test.activity1", 500000, ACTIVITY_DESTROYED, 1); in testActivity()
195 left.update("com.test.activity1", 100000, Event.ACTIVITY_RESUMED, 1);
201 left.update(null, 350000, END_OF_DAY, 0);
214 left.update("com.test.activity1", 100000, ACTIVITY_PAUSED, 1);
219 left.update("com.test.activity1", 200000, Event.ACTIVITY_RESUMED, 1);
226 left.update("com.test.activity1", 300000, ACTIVITY_PAUSED, 1);
233 left.update("com.test.activity1", 400000, ACTIVITY_STOPPED, 1);
[all …]
/frameworks/base/core/java/android/appwidget/
DPendingHostUpdate.java40 PendingHostUpdate update = new PendingHostUpdate(appWidgetId, TYPE_VIEWS_UPDATE); in updateAppWidget() local
41 update.views = views; in updateAppWidget()
42 return update; in updateAppWidget()
46 PendingHostUpdate update = new PendingHostUpdate(appWidgetId, TYPE_PROVIDER_CHANGED); in providerChanged() local
47 update.widgetInfo = info; in providerChanged()
48 return update; in providerChanged()
52 PendingHostUpdate update = new PendingHostUpdate(appWidgetId, TYPE_VIEW_DATA_CHANGED); in viewDataChanged() local
53 update.viewId = viewId; in viewDataChanged()
54 return update; in viewDataChanged()
/frameworks/minikin/tests/unittest/
DHasherTest.cpp25 EXPECT_EQ(Hasher().update(1).hash(), Hasher().update(1).hash()); in TEST()
32 hasher.update(1); in TEST()
34 hasher.update(2); in TEST()
40 EXPECT_NE(Hasher().update(x).hash(), Hasher().update(1).hash()); in TEST()
/frameworks/av/camera/include/camera/
DCameraMetadata.h145 status_t update(uint32_t tag,
147 status_t update(uint32_t tag,
149 status_t update(uint32_t tag,
151 status_t update(uint32_t tag,
153 status_t update(uint32_t tag,
155 status_t update(uint32_t tag,
157 status_t update(uint32_t tag,
159 status_t update(const camera_metadata_ro_entry &entry);
163 status_t update(uint32_t tag, Vector<T> data) { in update() function
164 return update(tag, data.array(), data.size()); in update()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
DBubbleDataTest.java246 BubbleData.Update update = mUpdateCaptor.getValue(); in ifSuppress_hideFlyout() local
247 assertThat(update.addedBubble.showFlyout()).isFalse(); in ifSuppress_hideFlyout()
261 BubbleData.Update update = mUpdateCaptor.getValue(); in ifInterruptiveAndNotSuppressed_thenShowFlyout() local
262 assertThat(update.addedBubble.showFlyout()).isTrue(); in ifInterruptiveAndNotSuppressed_thenShowFlyout()
280 BubbleData.Update update = mUpdateCaptor.getValue(); in sameUpdate_InShade_thenHideFlyout() local
281 assertThat(update.updatedBubble.showFlyout()).isFalse(); in sameUpdate_InShade_thenHideFlyout()
302 BubbleData.Update update = mUpdateCaptor.getValue(); in sameUpdate_NotInShade_NotVisuallyInterruptive_dontShowFlyout() local
303 assertThat(update.updatedBubble.showFlyout()).isFalse(); in sameUpdate_NotInShade_NotVisuallyInterruptive_dontShowFlyout()
881 BubbleData.Update update = mUpdateCaptor.getValue(); in test_onMaxBubblesChanged_notExpanded() local
882 assertThat(update.removedBubbles.get(0)).isEqualTo( in test_onMaxBubblesChanged_notExpanded()
[all …]
/frameworks/av/services/camera/libcameraservice/tests/
DRotateAndCropMapperTest.cpp57 deviceInfo.update(ANDROID_SENSOR_INFO_ACTIVE_ARRAY_SIZE, in setupDeviceInfo()
60 deviceInfo.update(ANDROID_SCALER_AVAILABLE_ROTATE_AND_CROP_MODES, in setupDeviceInfo()
72 deviceInfo.update(ANDROID_SCALER_AVAILABLE_ROTATE_AND_CROP_MODES, in TEST()
90 request.update(ANDROID_SCALER_ROTATE_AND_CROP, in TEST()
92 request.update(ANDROID_SCALER_CROP_REGION, in TEST()
94 request.update(ANDROID_CONTROL_AE_REGIONS, in TEST()
113 result.update(ANDROID_STATISTICS_FACE_RECTANGLES, in TEST()
143 request.update(ANDROID_SCALER_ROTATE_AND_CROP, in TEST()
145 request.update(ANDROID_SCALER_CROP_REGION, in TEST()
147 request.update(ANDROID_CONTROL_AE_REGIONS, in TEST()
[all …]
DZoomRatioTest.cpp56 deviceInfo.update(ANDROID_SENSOR_INFO_ACTIVE_ARRAY_SIZE, activeArray, 4); in setupTestMapper()
57 deviceInfo.update(ANDROID_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE, preCorrectArray, 4); in setupTestMapper()
58 deviceInfo.update(ANDROID_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM, &maxDigitalZoom, 1); in setupTestMapper()
60 deviceInfo.update(ANDROID_CONTROL_ZOOM_RATIO_RANGE, zoomRatioRange, 2); in setupTestMapper()
78 deviceInfo.update(ANDROID_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE, in TEST()
80 deviceInfo.update(ANDROID_SENSOR_INFO_ACTIVE_ARRAY_SIZE, testActiveArraySize, 4); in TEST()
85 deviceInfo.update(ANDROID_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM, &maxDigitalZoom, 1); in TEST()
119 deviceInfo.update(ANDROID_CONTROL_ZOOM_RATIO_RANGE, ratioRange, 2); in TEST()
145 res = requestTemplate.update(ANDROID_CONTROL_ZOOM_RATIO, &customRatio, 1); in TEST()
278 metadata.update(ANDROID_SCALER_CROP_REGION, testDefaultCropSize[index], 4); in subCropOverMaxDigitalZoomTest()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccSlotTest.java68 mUiccSlot.update(mSimulatedCommands, mIccCardStatus, 0 /* phoneId */, in onLooperPrepared()
128 mUiccSlot.update(null, iss, 0 /* slotIndex */); in testUpdateInactiveSlotStatus()
155 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateActiveSlotStatus()
183 mUiccSlot.update(null, iss, 0 /* slotIndex */); in testUpdateSlotStatusEuiccIsSupported()
193 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusEuiccIsSupported()
218 mUiccSlot.update(null, iss, 0 /* slotIndex */); in testUpdateSlotStatusEuiccIsNotSupported()
228 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusEuiccIsNotSupported()
253 mUiccSlot.update(null, iss, 0 /* slotIndex */); in testUpdateSlotStatusVoltageClassA()
263 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusVoltageClassA()
288 mUiccSlot.update(null, iss, 0 /* slotIndex */); in testUpdateSlotStatusVoltageClassANoTa()
[all …]
/frameworks/av/camera/ndk/impl/
DACameraMetadata.h67 camera_status_t update(uint32_t tag, uint32_t count, const uint8_t* data);
68 camera_status_t update(uint32_t tag, uint32_t count, const int32_t* data);
69 camera_status_t update(uint32_t tag, uint32_t count, const float* data);
70 camera_status_t update(uint32_t tag, uint32_t count, const double* data);
71 camera_status_t update(uint32_t tag, uint32_t count, const int64_t* data);
72 camera_status_t update(uint32_t tag, uint32_t count, const ACameraMetadata_rational* data);
114 ret = mData->update(tag, reinterpret_cast<const INTERNAL_T*>(data), count); in updateImpl()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSP800Derive.java54 m.update(ByteBuffer.allocate(Integer.BYTES).putInt(v).array()); in update32()
63 m.update(fixedInput); in fixedInput()
75 m.update(label); in withContext()
76 m.update((byte) 0); in withContext()
77 m.update(context); in withContext()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsSamplingTimerTest.java40 timer.update(10, 1, SystemClock.elapsedRealtime() * 1000); in testSettingStalePreservesData()
42 timer.update(20, 2, SystemClock.elapsedRealtime() * 1000); in testSettingStalePreservesData()
66 timer.update(10, 1, SystemClock.elapsedRealtime() * 1000); in testEndSampleAndContinueWhenTimeOrCountDecreases()
75 timer.update(0, 0, SystemClock.elapsedRealtime() * 1000); in testEndSampleAndContinueWhenTimeOrCountDecreases()
78 timer.update(0, 0, SystemClock.elapsedRealtime() * 1000); in testEndSampleAndContinueWhenTimeOrCountDecreases()
92 timer.update(30, 3, SystemClock.elapsedRealtime() * 1000); in testEndSampleAndContinueWhenTimeOrCountDecreases()
95 timer.update(30, 3, SystemClock.elapsedRealtime() * 1000); in testEndSampleAndContinueWhenTimeOrCountDecreases()
117 timer.update(10, 1, SystemClock.elapsedRealtime() * 1000); in testFirstUpdateIsAbsorbed()
126 timer.update(10, 1, SystemClock.elapsedRealtime() * 1000); in testFirstUpdateIsAbsorbed()
217 unparceledOnBatteryTimer.update(10, 10, SystemClock.elapsedRealtime() * 1000); in testSampleTimerSummaryParceling()
[all …]
DMemoryPowerCalculatorTest.java44 stats.getKernelMemoryTimerLocked(0).update(0, 1, 0); in testTimerBasedModel()
45 stats.getKernelMemoryTimerLocked(2).update(0, 1, 0); in testTimerBasedModel()
47 stats.getKernelMemoryTimerLocked(0).update(1000000, 1, 4000000); in testTimerBasedModel()
48 stats.getKernelMemoryTimerLocked(2).update(2000000, 1, 8000000); in testTimerBasedModel()
/frameworks/base/core/java/android/service/notification/
DINotificationListener.aidl34 void onListenerConnected(in NotificationRankingUpdate update); in onListenerConnected() argument
36 in NotificationRankingUpdate update); in onNotificationPosted() argument
40 in NotificationRankingUpdate update, in NotificationStats stats, int reason); in onNotificationRemoved() argument
41 void onNotificationRankingUpdate(in NotificationRankingUpdate update); in onNotificationRankingUpdate() argument
50 …ionHolder notificationHolder, in NotificationChannel channel, in NotificationRankingUpdate update); in onNotificationEnqueuedWithChannel() argument
62 …void onNotificationFeedbackReceived(String key, in NotificationRankingUpdate update, in Bundle fee… in onNotificationFeedbackReceived() argument
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardMessageArea.java77 update(); in onThemeChanged()
81 update(); in reloadColor()
112 update(); in securityMessageChanged()
117 update(); in clearMessage()
120 void update() { in update() method in KeyguardMessageArea
133 update(); in setIsVisible()
/frameworks/base/keystore/java/android/security/keystore2/
DKeyStoreCryptoOperationChunkedStreamer.java64 byte[] update(@NonNull byte[] input) throws KeyStoreException; in update() method
123 public byte[] update(byte[] input, int inputOffset, int inputLength) throws KeyStoreException { in update() method in KeyStoreCryptoOperationChunkedStreamer
145 byte[] o = mKeyStoreStream.update(mChunk); in update()
156 byte[] o = mKeyStoreStream.update(ArrayUtils.subarray(input, inputOffset, in update()
179 byte[] output = update(input, inputOffset, inputLength); in doFinal()
221 public byte[] update(byte[] input) throws KeyStoreException { in update() method in KeyStoreCryptoOperationChunkedStreamer.MainDataStream
222 return mOperation.update(input); in update()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardStateControllerImpl.java123 update(true /* updateAlways */); in KeyguardStateControllerImpl()
133 update(true /* updateAlways */); in KeyguardStateControllerImpl()
235 void update(boolean updateAlways) { in update() method in KeyguardStateControllerImpl
407 update(false /* updateAlways */); in onUserSwitchComplete()
412 update(false /* updateAlways */); in onTrustChanged()
418 update(false /* updateAlways */); in onTrustManagedChanged()
423 update(false /* updateAlways */); in onStartedWakingUp()
431 update(false /* updateAlways */); in onBiometricAuthenticated()
438 update(false /* updateAlways */); in onStrongAuthStateChanged()
443 update(false /* updateAlways */); in onLockedOutStateChanged()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
DUpdatableFontDirTest.java185 dirForPreparation.update(Arrays.asList( in construct()
238 dirForPreparation.update(Arrays.asList( in construct_missingFsverity()
268 dirForPreparation.update(Arrays.asList( in construct_fontNameMismatch()
314 dirForPreparation.update(Arrays.asList( in construct_olderThanPreinstalledFont()
363 dirForPreparation.update(Arrays.asList( in construct_afterBatchFailure()
369 dirForPreparation.update(Arrays.asList( in construct_afterBatchFailure()
401 dir.update(Collections.singletonList(newFontUpdateRequest("test.ttf,1,test", in loadFontFileMap_twice()
416 dir.update(Collections.singletonList(newFontUpdateRequest("test.ttf,1,test", in installFontFile()
433 dir.update(Collections.singletonList(newFontUpdateRequest("test.ttf,1,test", in installFontFile_upgrade()
436 dir.update(Collections.singletonList(newFontUpdateRequest("test.ttf,2,test", in installFontFile_upgrade()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaConnectionTest.java142 connection.update(mDC); in testConnectionStateUpdate()
146 connection.update(mDC); in testConnectionStateUpdate()
162 connection.update(mDC); in testCDMAPostDialPause()
164 connection.update(mDC); in testCDMAPostDialPause()
180 connection.update(mDC); in testGSMPostDialPause()
182 connection.update(mDC); in testGSMPostDialPause()
200 connection.update(mDC); in testPostDialWait()
202 connection.update(mDC); in testPostDialWait()
216 connection.update(mDC); in testHangUpConnection()
243 connection.update(mDC); in testAddressUpdate()
[all …]

12345678910>>...25