Home
last modified time | relevance | path

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

12345678910>>...25

/packages/apps/Gallery2/src/com/android/gallery3d/util/
DUpdateHelper.java24 public int update(int original, int update) { in update() argument
25 if (original != update) { in update()
27 original = update; in update()
32 public long update(long original, long update) { in update() method in UpdateHelper
33 if (original != update) { in update()
35 original = update; in update()
40 public double update(double original, double update) { in update() method in UpdateHelper
41 if (original != update) { in update()
43 original = update; in update()
48 public <T> T update(T original, T update) { in update() method in UpdateHelper
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForStructuredName.java65 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() method in DataRowHandlerForStructuredName
77 super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter); in update()
120 public void fixStructuredNameComponents(ContentValues augmented, ContentValues update) { in fixStructuredNameComponents() argument
121 final String unstruct = update.getAsString(StructuredName.DISPLAY_NAME); in fixStructuredNameComponents()
124 final boolean touchedStruct = !areAllEmpty(update, STRUCTURED_FIELDS); in fixStructuredNameComponents()
129 name.toValues(update); in fixStructuredNameComponents()
131 && (touchedStruct || areAnySpecified(update, STRUCTURED_FIELDS))) { in fixStructuredNameComponents()
145 update.put(StructuredName.DISPLAY_NAME, joined); in fixStructuredNameComponents()
147 update.put(StructuredName.FULL_NAME_STYLE, unadjustedFullNameStyle); in fixStructuredNameComponents()
148 update.put(StructuredName.PHONETIC_NAME_STYLE, name.phoneticNameStyle); in fixStructuredNameComponents()
[all …]
DDataRowHandlerForStructuredPostal.java62 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() method in DataRowHandlerForStructuredPostal
71 super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter); in update()
81 private void fixStructuredPostalComponents(ContentValues augmented, ContentValues update) { in fixStructuredPostalComponents() argument
82 final String unstruct = update.getAsString(StructuredPostal.FORMATTED_ADDRESS); in fixStructuredPostalComponents()
85 final boolean touchedStruct = !areAllEmpty(update, STRUCTURED_FIELDS); in fixStructuredPostalComponents()
91 postal.toValues(update); in fixStructuredPostalComponents()
93 && (touchedStruct || areAnySpecified(update, STRUCTURED_FIELDS))) { in fixStructuredPostalComponents()
96 update.put(StructuredPostal.FORMATTED_ADDRESS, joined); in fixStructuredPostalComponents()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DRcsProviderUpdateTest.java133 assertThat(mContentResolver.update(p2pThreadUri, contentValues, "rcs_fallback_thread_id=1", in testUpdate1To1ThreadWithSelection()
151 assertThat(mContentResolver.update(p2pThreadUri, contentValues, null, null)).isEqualTo(1); in testUpdate1To1ThreadWithId()
168 assertThat(mContentResolver.update(groupThreadUri, contentValues, "group_name=\"Name\"", in testUpdateGroupThreadWithSelection()
186 assertThat(mContentResolver.update(groupThreadUri, contentValues, null, null)).isEqualTo(1); in testUpdateGroupThreadWithId()
204 assertThat(mContentResolver.update(participantUri, contentValues, null, null)).isEqualTo(1); in testUpdateParticipantWithId()
217 mContentResolver.update(Uri.parse("content://rcs/p2p_thread/1/participant/1"), null, in testUpdate1To1ThreadParticipantFails()
223 assertThat(mContentResolver.update(Uri.parse("content://rcs/group_thread/2/participant/1"), in testUpdateGroupParticipantFails()
232 assertThat(mContentResolver.update(Uri.parse("content://rcs/message"), updateValues, null, in testUpdateUnifiedMessageViewFails()
234 assertThat(mContentResolver.update(Uri.parse("content://rcs/message/1"), updateValues, null, in testUpdateUnifiedMessageViewFails()
243 assertThat(mContentResolver.update(Uri.parse("content://rcs/p2p_thread/1/incoming_message"), in testUpdateMessageOnThreadFails()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DIoStatsTrackerTest.java63 ioStatsTracker.update(mockSystemStateInterface.mIoRecords); in testNewUsersAppear()
85 ioStatsTracker.update(mockSystemStateInterface.mIoRecords); in testUserMetricsChange()
90 ioStatsTracker.update(mockSystemStateInterface.mIoRecords); in testUserMetricsChange()
118 ioStatsTracker.update(mockSystemStateInterface.mIoRecords); in testUpdateNoIoProcessActive()
122 ioStatsTracker.update(mockSystemStateInterface.mIoRecords); in testUpdateNoIoProcessActive()
147 ioStatsTracker.update(mockSystemStateInterface.mIoRecords); in testUpdateNoIoProcessInactive()
151 ioStatsTracker.update(mockSystemStateInterface.mIoRecords); in testUpdateNoIoProcessInactive()
171 ioStatsTracker.update(mockSystemStateInterface.mIoRecords); in testUpdateIoHappens()
175 ioStatsTracker.update(mockSystemStateInterface.mIoRecords); in testUpdateIoHappens()
200 ioStatsTracker.update(mockSystemStateInterface.mIoRecords); in testUpdateGoAwayComeBackProcess()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DLossyScreenMigrationTask.java55 protected void update(DbEntry item) { in update() method in LossyScreenMigrationTask
77 for (DbEntry update : mUpdates) { in migrateScreen0()
78 DbEntry org = mOriginalItems.get(update.id); in migrateScreen0()
80 if (org.cellX != update.cellX || org.cellY != update.cellY in migrateScreen0()
81 || org.spanX != update.spanX || org.spanY != update.spanY) { in migrateScreen0()
83 update.addToContentValues(tempValues); in migrateScreen0()
84 mDb.update(Favorites.TABLE_NAME, tempValues, "_id = ?", in migrateScreen0()
85 new String[] {Integer.toString(update.id)}); in migrateScreen0()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalImage.java153 id = uh.update(id, cursor.getInt(INDEX_ID)); in updateFromCursor()
154 caption = uh.update(caption, cursor.getString(INDEX_CAPTION)); in updateFromCursor()
155 mimeType = uh.update(mimeType, cursor.getString(INDEX_MIME_TYPE)); in updateFromCursor()
156 latitude = uh.update(latitude, cursor.getDouble(INDEX_LATITUDE)); in updateFromCursor()
157 longitude = uh.update(longitude, cursor.getDouble(INDEX_LONGITUDE)); in updateFromCursor()
158 dateTakenInMs = uh.update( in updateFromCursor()
160 dateAddedInSec = uh.update( in updateFromCursor()
162 dateModifiedInSec = uh.update( in updateFromCursor()
164 filePath = uh.update(filePath, cursor.getString(INDEX_DATA)); in updateFromCursor()
165 rotation = uh.update(rotation, cursor.getInt(INDEX_ORIENTATION)); in updateFromCursor()
[all …]
DLocalVideo.java134 id = uh.update(id, cursor.getInt(INDEX_ID)); in updateFromCursor()
135 caption = uh.update(caption, cursor.getString(INDEX_CAPTION)); in updateFromCursor()
136 mimeType = uh.update(mimeType, cursor.getString(INDEX_MIME_TYPE)); in updateFromCursor()
137 latitude = uh.update(latitude, cursor.getDouble(INDEX_LATITUDE)); in updateFromCursor()
138 longitude = uh.update(longitude, cursor.getDouble(INDEX_LONGITUDE)); in updateFromCursor()
139 dateTakenInMs = uh.update( in updateFromCursor()
141 dateAddedInSec = uh.update( in updateFromCursor()
143 dateModifiedInSec = uh.update( in updateFromCursor()
145 filePath = uh.update(filePath, cursor.getString(INDEX_DATA)); in updateFromCursor()
146 durationInSec = uh.update( in updateFromCursor()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DMessage.java53 abstract void update(Update Event); in update() method in Message
55 protected void update(CharSequence messageString, CharSequence buttonString, Drawable icon) { in update() method in Message
104 void update(Update event) { in update() method in Message.HeaderMessage
112 update(mEnv.getModel().error, null, in update()
115 update(mEnv.getModel().info, null, in update()
126 update(mEnv.getContext().getString(R.string.authentication_required, appName), in updateToAuthenticationExceptionHeader()
144 void update(Update event) { in update() method in Message.InflateMessage
156 update(mEnv.getContext().getResources().getText(R.string.query_error), null, in updateToInflatedErrorMesage()
161 update(mEnv.getContext().getResources().getText(R.string.cant_display_content), null, in updateToCantDisplayContentMessage()
175 update(message, null, mEnv.getContext().getDrawable(R.drawable.empty)); in updateToInflatedEmptyMessage()
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockContentProvider.java440 Update update = (Update) o; in equals() local
441 return mAnyNumberOfTimes == update.mAnyNumberOfTimes && in equals()
442 mIsExecuted == update.mIsExecuted && in equals()
443 Objects.equals(mUri, update.mUri) && in equals()
444 Objects.equals(mContentValues, update.mContentValues) && in equals()
445 Objects.equals(mSelection, update.mSelection) && in equals()
446 Arrays.equals(mSelectionArgs, update.mSelectionArgs); in equals()
504 Update update = new Update(contentUri, contentValues, selection, selectionArgs); in expectUpdate() local
505 mExpectedUpdates.add(update); in expectUpdate()
506 return update; in expectUpdate()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DVoicemailProviderTest.java190 int count = mResolver.update(uri, values, null, null); in testUpdate()
200 mResolver.update(uri, updateValues, null, null); in testUpdateOwnPackageVoicemail_NotDirty()
218 mResolver.update(ContentUris in testUpdateOtherPackageCallLog_NotDirty()
235 mResolver.update(uri, updateValues, null, null); in testUpdateOwnPackageVoicemail_RemovesDirtyStatus()
252 mResolver.update(uri, retainDirty, null, null); in testUpdateOwnPackageVoicemail_retainDirtyStatus_dirty()
268 mResolver.update(uri, retainDirty, null, null); in testUpdateOwnPackageVoicemail_retainDirtyStatus_notDirty()
283 mResolver.update(uri, retainDirty, null, null); in testUpdateOwnPackageVoicemail_retainDirtyStatus_noOtherValues()
339 mResolver.update(anotherVoicemail, new ContentValues(), null, null); in testUpdateAfterDelete_lastModifiedNotChanged()
345 mResolver.update(anotherVoicemail, values, null, null); in testUpdateAfterDelete_lastModifiedNotChanged()
385 mResolver.update(Voicemails.CONTENT_URI, getTestVoicemailValues(), null, null); in assertBaseUriThrowsSecurityExceptions()
[all …]
DGroupsTest.java164 mResolver.update(updateUri, values, null, null); in testMarkAsDirtyParameter()
176 assertEquals(1, mResolver.update(uri, values, null, null)); in testGroupDirtyClearedWhenSetExplicitly()
211 mResolver.update(uri, values, null, null); in testGroupVersionUpdates()
306 mResolver.update(AggregationExceptions.CONTENT_URI, values, null, null); in testLocalMixedVisible()
325 mResolver.update(Settings.CONTENT_URI, values, Settings.ACCOUNT_NAME + "=? AND " in testUngroupedVisible()
347 mResolver.update(Groups.CONTENT_URI, values, Groups._ID + "=" + groupId, null); in testMultipleSourcesVisible()
357 mResolver.update(AggregationExceptions.CONTENT_URI, values, null, null); in testMultipleSourcesVisible()
365 mResolver.update(Groups.CONTENT_URI, values, Groups._ID + "=" + groupId, null); in testMultipleSourcesVisible()
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/
DPictureCallbackAdapter.java46 public void update(@Nonnull Void v) { in provideQuickExposeUpdatable()
59 public void update(@Nonnull final byte[] jpegData) {
72 public void update(@Nonnull final CaptureSession session) {
85 public void update(@Nonnull final Uri uri) {
99 public void update(@Nonnull Void v) {
113 public void update(@Nonnull final Float progress) {
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DDirectoryAddonsAdapterTest.java74 mEnv.model.update(); in testGetPosition()
88 mEnv.model.update(); in testItemCount_allDirs()
98 mEnv.model.update(); in testItemCount_allFiles()
110 mEnv.model.update(); in testAddsInfoMessage_WithDirectoryChildren()
116 mEnv.model.update(); in testItemCount_none()
126 mEnv.model.update(); in testAddsInfoMessage_WithNoItem()
136 mEnv.model.update(); in testAddsErrorMessage_WithNoItem()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java71 void update(); in update() method
112 mCallback.update(); in onInterfaceRemoved()
125 mCallback.update(); in onInterfaceAddressUpdated()
139 mCallback.update(); in onInterfaceAddressRemoved()
153 mCallback.update(); in onRouteUpdated()
167 mCallback.update(); in onRouteRemoved()
181 mCallback.update(); in onInterfaceDnsServerInfo()
/packages/apps/Settings/src/com/android/settings/network/
DSubscriptionsPreferenceController.java129 update(); in onResume()
143 update(); in displayPreference()
146 private void update() { in update() method in SubscriptionsPreferenceController
305 update(); in onAirplaneModeChanged()
316 update(); in onSubscriptionsChanged()
321 update(); in onMobileDataEnabledChange()
326 update(); in onDataConnectivityChange()
331 update(); in onSignalStrengthChanged()
/packages/apps/Camera2/src/com/android/camera/one/v2/core/
DResponseListeners.java72 callback.update(new AndroidTotalCaptureResultProxy(result)); in forFinalMetadata()
86 callback.update(new AndroidCaptureResultProxy(partialResult));
91 callback.update(new AndroidTotalCaptureResultProxy(result));
105 callback.update(timestamp);
119 callback.update(null);
/packages/apps/TV/src/com/android/tv/menu/
DMenuUpdater.java48 mMenu.update(ChannelsRow.ID);
56 mMenu.update(ChannelsRow.ID);
63 mMenu.update(TvOptionsRow.ID);
76 mMenu.update(PlayControlsRow.ID); in MenuUpdater()
105 mMenu.update(TvOptionsRow.ID); in onStreamInfoChanged()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDeviceUpdater.java120 update(cachedBluetoothDevice); in forceUpdate()
150 update(cachedDevice); in onDeviceAdded()
163 update(cachedDevice); in onDeviceBondStateChanged()
173 update(cachedDevice); in onProfileConnectionStateChanged()
182 update(cachedDevice); in onAclConnectionStateChanged()
212 protected void update(CachedBluetoothDevice cachedBluetoothDevice) { in update() method in BluetoothDeviceUpdater
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothDeviceUpdater.java116 update(cachedBluetoothDevice); in forceUpdate()
140 update(cachedDevice); in onDeviceAdded()
153 update(cachedDevice); in onDeviceBondStateChanged()
163 update(cachedDevice); in onProfileConnectionStateChanged()
172 update(cachedDevice); in onAclConnectionStateChanged()
202 protected void update(CachedBluetoothDevice cachedBluetoothDevice) { in update() method in BluetoothDeviceUpdater
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConnectionPreferenceController.java104 update(); in displayPreference()
146 private void update() { in update() method in WifiConnectionPreferenceController
165 update(); in onWifiStateChanged()
170 update(); in onConnectedChanged()
175 update(); in onAccessPointsChanged()
/packages/apps/Dialer/java/com/android/incallui/
DConferenceManagerPresenter.java61 update(callList); in onStateChange()
100 update(callList); in init()
108 private void update(CallList callList) { in update() method in ConferenceManagerPresenter
128 getUi().update(calls, canSeparate); in update()
135 void update(List<DialerCall> participants, boolean parentCanSeparate); in update() method
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiConnectionPreferenceController.java104 update(); in displayPreference()
146 private void update() { in update() method in WifiConnectionPreferenceController
165 update(); in onWifiStateChanged()
170 update(); in onConnectedChanged()
175 update(); in onAccessPointsChanged()
/packages/apps/Dialer/java/com/android/incallui/call/
DDialerCall.java239 update();
246 update();
251 update();
258 update();
276 update();
283 update();
299 update();
319 update();
332 update();
345 update();
[all …]
/packages/apps/Settings/src/com/android/settings/network/telephony/
DDisabledSubscriptionController.java56 update(); in onResume()
68 update(); in displayPreference()
71 private void update() { in update() method in DisabledSubscriptionController
90 update(); in onSubscriptionsChanged()

12345678910>>...25