Home
last modified time | relevance | path

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

12345678910>>...33

/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.cpp123 SpriteUpdate& update = updates.editItemAt(i); in doUpdateSprites() local
125 if (update.state.surfaceControl == NULL && update.state.wantSurfaceVisible()) { in doUpdateSprites()
126 update.state.surfaceWidth = update.state.icon.width(); in doUpdateSprites()
127 update.state.surfaceHeight = update.state.icon.height(); in doUpdateSprites()
128 update.state.surfaceDrawn = false; in doUpdateSprites()
129 update.state.surfaceVisible = false; in doUpdateSprites()
130 update.state.surfaceControl = in doUpdateSprites()
131 obtainSurface(update.state.surfaceWidth, update.state.surfaceHeight, in doUpdateSprites()
132 update.state.displayId, update.state.skipScreenshot); in doUpdateSprites()
133 if (update.state.surfaceControl != NULL) { 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()
60 inline Hasher& update(const std::vector<FontFeature>& features) { in update() function
62 update(size); in update()
[all …]
DMinikinPaint.h97 .update(size) in hash()
98 .update(scaleX) in hash()
99 .update(skewX) in hash()
100 .update(letterSpacing) in hash()
101 .update(wordSpacing) in hash()
102 .update(fontFlags) in hash()
103 .update(localeListId) in hash()
104 .update(fontStyle.identifier()) in hash()
105 .update(static_cast<uint8_t>(familyVariant)) in hash()
106 .update(fontFeatureSettings) in hash()
[all …]
DLayoutCache.h111 .update(mId) in computeHash()
112 .update(mStart) in computeHash()
113 .update(mCount) in computeHash()
114 .update(mStyle.identifier()) in computeHash()
115 .update(mSize) in computeHash()
116 .update(mScaleX) in computeHash()
117 .update(mSkewX) in computeHash()
118 .update(mLetterSpacing) in computeHash()
119 .update(mWordSpacing) in computeHash()
120 .update(mFontFlags) in computeHash()
[all …]
/frameworks/base/core/tests/coretests/src/android/window/
DBackTouchTrackerTest.kt53 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
59 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
65 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
70 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
76 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
81 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
87 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_leftEdge()
101 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_rightEdge()
107 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_rightEdge()
113 linearTracker.update(touchX, 0f, velocityX, velocityY) in generatesProgress_rightEdge()
[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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/security/
DSecurityAlgorithmUpdateTest.java41 SecurityAlgorithmUpdate update = new SecurityAlgorithmUpdate( in testEqualsAndHash() local
48 assertThat(update).isEqualTo(sameUpdate); in testEqualsAndHash()
49 assertThat(update.hashCode()).isEqualTo(sameUpdate.hashCode()); in testEqualsAndHash()
54 SecurityAlgorithmUpdate update = new SecurityAlgorithmUpdate( in testNotEqualsAndHash() local
61 assertThat(update).isNotEqualTo(sameUpdate); in testNotEqualsAndHash()
62 assertThat(update.hashCode()).isNotEqualTo(sameUpdate.hashCode()); in testNotEqualsAndHash()
67 SecurityAlgorithmUpdate update = new SecurityAlgorithmUpdate( in testGetters() local
71 assertThat(update.getConnectionEvent()).isEqualTo(CONNECTION_EVENT_VOLTE_SIP); in testGetters()
72 assertThat(update.getEncryption()).isEqualTo(SECURITY_ALGORITHM_EEA2); in testGetters()
73 assertThat(update.getIntegrity()).isEqualTo(SECURITY_ALGORITHM_HMAC_SHA1_96); in testGetters()
[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/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsUidStateTrackerTest.java127 .update(); in testNoCapability()
142 .update(); in testForegroundWithMicrophoneCapability()
158 .update(); in testBackgroundWithMicrophoneCapability()
174 .update(); in testForegroundWithCameraCapability()
190 .update(); in testBackgroundWithCameraCapability()
206 .update(); in testForegroundWithLocationCapability()
222 .update(); in testBackgroundWithLocationCapability()
237 .update(); in testForegroundNotCapabilitiesTracked()
246 .update(); in testBackgroundNotCapabilitiesTracked()
255 .update(); in testBackgroundToForegroundTransition()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
DBubbleDataTest.java268 BubbleData.Update update = mUpdateCaptor.getValue(); in ifSuppress_hideFlyout() local
269 assertThat(update.addedBubble.showFlyout()).isFalse(); in ifSuppress_hideFlyout()
283 BubbleData.Update update = mUpdateCaptor.getValue(); in ifInterruptiveAndNotSuppressed_thenShowFlyout() local
284 assertThat(update.addedBubble.showFlyout()).isTrue(); in ifInterruptiveAndNotSuppressed_thenShowFlyout()
302 BubbleData.Update update = mUpdateCaptor.getValue(); in sameUpdate_InShade_thenHideFlyout() local
303 assertThat(update.updatedBubble.showFlyout()).isFalse(); in sameUpdate_InShade_thenHideFlyout()
324 BubbleData.Update update = mUpdateCaptor.getValue(); in sameUpdate_NotInShade_NotVisuallyInterruptive_dontShowFlyout() local
325 assertThat(update.updatedBubble.showFlyout()).isFalse(); in sameUpdate_NotInShade_NotVisuallyInterruptive_dontShowFlyout()
423 BubbleData.Update update = mUpdateCaptor.getValue(); in test_shouldNotShowEducation() local
424 assertThat(update.shouldShowEducation).isFalse(); in test_shouldNotShowEducation()
[all …]
/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/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/base/libs/WindowManager/Shell/multivalentTests/src/com/android/wm/shell/bubbles/
DBubblePositionerTest.kt73 positioner.update(defaultDeviceConfig.copy(insets = insets, windowBounds = screenBounds)) in testUpdate()
82 positioner.update(defaultDeviceConfig) in testShowBubblesVertically_phonePortrait()
88 positioner.update(defaultDeviceConfig.copy(isLandscape = true)) in testShowBubblesVertically_phoneLandscape()
95 positioner.update(defaultDeviceConfig.copy(isLargeScreen = true)) in testShowBubblesVertically_tablet()
102 positioner.update(defaultDeviceConfig) in testGetRestingPosition_returnsDefaultPosition()
111 positioner.update(defaultDeviceConfig) in testGetRestingPosition_returnsRestingPosition()
120 positioner.update(defaultDeviceConfig) in testGetRestingPosition_bubble_onPhone()
129 positioner.update(defaultDeviceConfig.copy(isRtl = true)) in testGetRestingPosition_bubble_onPhone_RTL()
139 positioner.update(defaultDeviceConfig.copy(isLargeScreen = true)) in testGetRestingPosition_chatBubble_onTablet()
148 positioner.update(defaultDeviceConfig.copy(isLargeScreen = true, isRtl = true)) in testGetRestingPosition_chatBubble_onTablet_RTL()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/security/
DNullCipherNotifier.java94 Context context, int phoneId, int subId, SecurityAlgorithmUpdate update) { in onSecurityAlgorithmUpdate() argument
95 Rlog.d(TAG, "Security algorithm update: subId = " + subId + " " + update); in onSecurityAlgorithmUpdate()
97 if (shouldIgnoreUpdate(update)) { in onSecurityAlgorithmUpdate()
117 subState.update(update); in onSecurityAlgorithmUpdate()
211 private static boolean shouldIgnoreUpdate(SecurityAlgorithmUpdate update) { in shouldIgnoreUpdate() argument
213 if (update.isUnprotectedEmergency()) { in shouldIgnoreUpdate()
217 switch (update.getConnectionEvent()) { in shouldIgnoreUpdate()
267 update(SecurityAlgorithmUpdate update) { in update() argument
270 @NetworkClass int networkClass = getNetworkClass(update.getConnectionEvent()); in update()
277 mState.getOrDefault(update.getConnectionEvent(), ConnectionState.UNKNOWN); in update()
[all …]
/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/native/services/surfaceflinger/Tracing/
DTransactionTracing.cpp179 CommittedUpdates update; in addCommittedTransactions() local
180 update.vsyncId = vsyncId; in addCommittedTransactions()
181 update.timestamp = commitTime; in addCommittedTransactions()
182 update.transactionIds.reserve(newUpdate.transactions.size()); in addCommittedTransactions()
184 update.transactionIds.emplace_back(transaction.id); in addCommittedTransactions()
186 update.displayInfoChanged = displayInfoChanged; in addCommittedTransactions()
188 update.displayInfos = displayInfos; in addCommittedTransactions()
190 update.createdLayers = std::move(newUpdate.layerCreationArgs); in addCommittedTransactions()
192 update.destroyedLayerHandles.reserve(newUpdate.destroyedHandles.size()); in addCommittedTransactions()
194 update.destroyedLayerHandles.push_back(handle); in addCommittedTransactions()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DLayerHierarchyTest.cpp49 hierarchyBuilder.update(mLifecycleManager); in TEST_F()
69 hierarchyBuilder.update(mLifecycleManager); in TEST_F()
85 hierarchyBuilder.update(mLifecycleManager); in TEST_F()
103 hierarchyBuilder.update(mLifecycleManager); in TEST_F()
123 hierarchyBuilder.update(mLifecycleManager); in TEST_F()
148 hierarchyBuilder.update(mLifecycleManager); in TEST_F()
164 hierarchyBuilder.update(mLifecycleManager); in TEST_F()
181 hierarchyBuilder.update(mLifecycleManager); in TEST_F()
199 hierarchyBuilder.update(mLifecycleManager); in TEST_F()
213 hierarchyBuilder.update(mLifecycleManager); in TEST_F()
[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 …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardStateControllerImpl.java139 update(true /* updateAlways */); in KeyguardStateControllerImpl()
149 update(true /* updateAlways */); in KeyguardStateControllerImpl()
254 void update(boolean updateAlways) { in update() method in KeyguardStateControllerImpl
427 update(false /* updateAlways */); in onUserSwitchComplete()
432 update(false /* updateAlways */); in onTrustChanged()
438 update(false /* updateAlways */); in onTrustManagedChanged()
446 update(false); in onBiometricEnrollmentStateChanged()
453 update(false /* updateAlways */); in onStartedWakingUp()
461 update(false /* updateAlways */); in onBiometricAuthenticated()
468 update(false /* updateAlways */); in onStrongAuthStateChanged()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccSlotTest.java67 mUiccSlot.update(mSimulatedCommands, mIccCardStatus, 0 /* phoneId */, in onLooperPrepared()
127 mUiccSlot.update(null, iss, 0 /* slotIndex */); in testUpdateInactiveSlotStatus()
154 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateActiveSlotStatus()
181 mUiccSlot.update(null, iss, 0 /* slotIndex */); in testUpdateSlotStatusEuiccIsSupported()
191 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusEuiccIsSupported()
216 mUiccSlot.update(null, iss, 0 /* slotIndex */); in testUpdateSlotStatusEuiccIsNotSupported()
226 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusEuiccIsNotSupported()
251 mUiccSlot.update(null, iss, 0 /* slotIndex */); in testUpdateSlotStatusVoltageClassA()
261 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusVoltageClassA()
286 mUiccSlot.update(null, iss, 0 /* slotIndex */); in testUpdateSlotStatusVoltageClassANoTa()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardMessageArea.java84 update(); in onThemeChanged()
88 update(); in reloadColor()
123 update(); in securityMessageChanged()
128 update(); in clearMessage()
131 void update() { in update() method in KeyguardMessageArea
148 update(); in setIsVisible()
161 update(); in disable()
/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/services/tests/powerstatstests/src/com/android/server/power/stats/
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 …]
/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
63 …void onNotificationFeedbackReceived(String key, in NotificationRankingUpdate update, in Bundle fee… in onNotificationFeedbackReceived() argument

12345678910>>...33