/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | UpdateHelper.java | 24 public int update(int original, int update) { in update() method in UpdateHelper 25 if (original != update) { in update() 27 original = update; in update() 32 public long update(long original, long update) { in update() argument 33 if (original != update) { in update() 35 original = update; in update() 40 public double update(double original, double update) { in update() argument 41 if (original != update) { in update() 43 original = update; in update() 48 public <T> T update(T original, T update) { in update() argument [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | DataRowHandlerForStructuredName.java | 65 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 …]
|
D | DataRowHandlerForStructuredPostal.java | 62 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/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/ |
D | IoStatsTrackerTest.java | 63 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/ |
D | LossyScreenMigrationTask.java | 55 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/ |
D | LocalImage.java | 153 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 …]
|
D | LocalVideo.java | 134 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/ |
D | Message.java | 53 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/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/ |
D | EapMsChapV2MethodStateMachine.java | 525 sha1.update(peerChallenge); in challengeHash() 526 sha1.update(authenticatorChallenge); in challengeHash() 527 sha1.update(usernameToBytes(username)); in challengeHash() 536 md4.update(passwordBytes, 0, passwordBytes.length); in ntPasswordHash() 547 md4.update(passwordHash, 0, passwordHash.length); in hashNtPasswordHash() 606 sha1.update(passwordHashHash); in generateAuthenticatorResponse() 607 sha1.update(ntResponse); in generateAuthenticatorResponse() 608 sha1.update(CHALLENGE_MAGIC_1); // add just a dash of magic in generateAuthenticatorResponse() 613 sha1.update(digest); in generateAuthenticatorResponse() 614 sha1.update(challenge); in generateAuthenticatorResponse() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
D | MockContentProvider.java | 440 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/apps/Car/libs/car-ui-lib/src/com/android/car/ui/toolbar/ |
D | MenuItem.java | 96 private void update() { in update() method in MenuItem 106 update(); in setId() 123 update(); in setEnabled() 150 update(); in setChecked() 166 update(); in setVisible() 191 update(); in setActivated() 203 update(); in setTitle() 215 update(); in setUxRestrictions() 237 update(); in setOnClickListener() 245 update(); in setCarUxRestrictions() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | VoicemailProviderTest.java | 190 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 …]
|
D | GroupsTest.java | 164 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/ |
D | PictureCallbackAdapter.java | 46 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/ |
D | DirectoryAddonsAdapterTest.java | 74 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/apps/Settings/src/com/android/settings/network/ |
D | SubscriptionsPreferenceController.java | 129 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/ |
D | ResponseListeners.java | 72 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/modules/NetworkStack/src/android/net/ip/ |
D | IpClientLinkObserver.java | 98 void update(boolean linkState); in update() method 165 mCallback.update(getInterfaceLinkState()); in onInterfaceRemoved() 186 mCallback.update(getInterfaceLinkState()); in onInterfaceAddressUpdated() 200 mCallback.update(getInterfaceLinkState()); in onInterfaceAddressRemoved() 214 mCallback.update(getInterfaceLinkState()); in onRouteUpdated() 228 mCallback.update(getInterfaceLinkState()); in onRouteRemoved() 242 mCallback.update(getInterfaceLinkState()); in onInterfaceDnsServerInfo() 387 mCallback.update(getInterfaceLinkState()); in updatePref64()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | MenuUpdater.java | 48 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | BluetoothDeviceUpdater.java | 116 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/bluetooth/ |
D | BluetoothDeviceUpdater.java | 120 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/apps/Settings/src/com/android/settings/wifi/ |
D | WifiConnectionPreferenceController.java | 104 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/modules/DnsResolver/ |
D | ExperimentsTest.cpp | 112 TEST_F(ExperimentsTest, update) { in TEST_F() argument 116 mExperiments.update(); in TEST_F() 132 mExperiments.update(); in TEST_F() 144 mExperiments.update(); in TEST_F() 148 mExperiments.update(); in TEST_F()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | WifiConnectionPreferenceController.java | 104 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/ |
D | ConferenceManagerPresenter.java | 61 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
|