/packages/apps/Dialer/java/com/android/incallui/ |
D | CallCardPresenter.java | 119 private DialerCall primary; field in CallCardPresenter 164 primary = call; in onInCallScreenDelegateInit() 165 if (shouldShowNoteSentToast(primary)) { in onInCallScreenDelegateInit() 198 if (isOutgoingEmergencyCall(primary)) { in onInCallScreenReady() 200 } else if (isIncomingEmergencyCall(primary) || isIncomingEmergencyCall(secondary)) { in onInCallScreenReady() 230 if (primary != null) { in onInCallScreenUnready() 231 primary.removeListener(this); in onInCallScreenUnready() 236 primary = null; in onInCallScreenUnready() 257 DialerCall primary = null; in onStateChange() local 261 primary = callList.getIncomingCall(); in onStateChange() [all …]
|
D | VideoCallPresenter.java | 500 DialerCall primary = null; in onStateChange() local 513 primary = callList.getActiveCall(); in onStateChange() 515 if (!isActiveVideoCall(primary)) { in onStateChange() 516 primary = callList.getIncomingCall(); in onStateChange() 519 currentCall = primary = callList.getOutgoingCall(); in onStateChange() 521 currentCall = primary = callList.getPendingOutgoingCall(); in onStateChange() 523 currentCall = primary = callList.getActiveCall(); in onStateChange() 526 final boolean primaryChanged = !Objects.equals(primaryCall, primary); in onStateChange() 531 primary, in onStateChange() 534 onPrimaryCallChanged(primary); in onStateChange() [all …]
|
D | InCallPresenter.java | 869 DialerCall primary = null; in onCallListChange() local 871 primary = callList.getIncomingCall(); in onCallListChange() 873 primary = callList.getOutgoingCall(); in onCallListChange() 874 if (primary == null) { in onCallListChange() 875 primary = callList.getPendingOutgoingCall(); in onCallListChange() 878 primary = getCallToDisplay(callList, null, false); in onCallListChange() 880 if (primary != null) { in onCallListChange() 881 onForegroundCallChanged(primary); in onCallListChange()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | ImageShow.java | 224 PrimaryImage primary = PrimaryImage.getImage(); in getImageToScreenMatrix() local 225 if (primary.getOriginalBounds() == null) { in getImageToScreenMatrix() 229 primary.getPreset().getGeometryFilters(), reflectRotation, in getImageToScreenMatrix() 230 primary.getOriginalBounds(), getWidth(), getHeight()); in getImageToScreenMatrix() 231 Point translate = primary.getTranslation(); in getImageToScreenMatrix() 232 float scaleFactor = primary.getScaleFactor(); in getImageToScreenMatrix() 358 PrimaryImage primary = PrimaryImage.getImage(); in drawImageAndAnimate() local 359 Matrix m = primary.computeImageToScreen(image, 0, false); in drawImageAndAnimate() 370 boolean showAnimatedImage = primary.onGoingNewLookAnimation(); in drawImageAndAnimate() 373 if (primary.getPreset().equals(primary.getCurrentPreset())) { in drawImageAndAnimate() [all …]
|
D | ImageRotate.java | 68 PrimaryImage primary = PrimaryImage.getImage(); in onDraw() local 69 Bitmap image = primary.getFiltersOnlyImage(); in onDraw()
|
D | ImageMirror.java | 64 PrimaryImage primary = PrimaryImage.getImage(); in onDraw() local 65 Bitmap image = primary.getFiltersOnlyImage(); in onDraw()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | AppsAsyncLoaderTest.java | 314 UsageStats primary = mock(UsageStats.class); in test_getGreaterUsageStats_secondaryIsNull() local 315 when(primary.getLastTimeUsed()).thenReturn(1000L); in test_getGreaterUsageStats_secondaryIsNull() 316 assertThat(mLoader.getGreaterUsageStats(PACKAGE_NAME, primary, null)).isEqualTo(primary); in test_getGreaterUsageStats_secondaryIsNull() 321 UsageStats primary = mock(UsageStats.class); in test_getGreaterUsageStats_primaryIsGreater() local 322 when(primary.getLastTimeUsed()).thenReturn(1000L); in test_getGreaterUsageStats_primaryIsGreater() 325 assertThat(mLoader.getGreaterUsageStats(PACKAGE_NAME, primary, secondary)) in test_getGreaterUsageStats_primaryIsGreater() 326 .isEqualTo(primary); in test_getGreaterUsageStats_primaryIsGreater() 331 UsageStats primary = mock(UsageStats.class); in test_getGreaterUsageStats_secondaryIsGreater() local 332 when(primary.getLastTimeUsed()).thenReturn(900L); in test_getGreaterUsageStats_secondaryIsGreater() 335 assertThat(mLoader.getGreaterUsageStats(PACKAGE_NAME, primary, secondary)) in test_getGreaterUsageStats_secondaryIsGreater()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ChartGridView.java | 122 final Drawable primary = mPrimary; in onDraw() local 123 if (primary != null) { in onDraw() 124 final int primaryWidth = primary.getIntrinsicWidth(); in onDraw() 125 final int primaryHeight = primary.getIntrinsicHeight(); in onDraw() 130 primary.setBounds((int) x, 0, right, height); in onDraw() 131 primary.draw(canvas); in onDraw()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkScoreTest.kt | 57 private fun score(exiting: Boolean = false, primary: Boolean = false) = in <lambda>() 58 NetworkScore.Builder().setExiting(exiting).setTransportPrimary(primary) in <lambda>() 129 val score = score(exiting = isExiting, primary = isPrimary) in <lambda>() 203 agent2.sendNetworkScore(score(primary = true)) in <lambda>() 206 agent1.sendNetworkScore(score(primary = true)) in <lambda>() 209 agent2.sendNetworkScore(score(primary = false)) in <lambda>()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestEvents.java | 41 TestEvents.builder().mouse().primary().build(); 43 TestEvents.builder().mouse().primary().ctrl().build(); 45 TestEvents.builder().mouse().primary().alt().build(); 47 TestEvents.builder().mouse().primary().shift().build(); 220 public Builder primary() { in primary() method in TestEvents.Builder
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | BaseContactsProvider2Test.java | 244 protected Uri insertOrganization(long rawContactId, ContentValues values, boolean primary) { in insertOrganization() argument 245 return insertOrganization(rawContactId, values, primary, false); in insertOrganization() 248 protected Uri insertOrganization(long rawContactId, ContentValues values, boolean primary, in insertOrganization() argument 253 if (primary) { in insertOrganization() 268 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary) { in insertPhoneNumber() argument 269 return insertPhoneNumber(rawContactId, phoneNumber, primary, false, Phone.TYPE_HOME); in insertPhoneNumber() 272 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary, in insertPhoneNumber() argument 274 return insertPhoneNumber(rawContactId, phoneNumber, primary, superPrimary, Phone.TYPE_HOME); in insertPhoneNumber() 277 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary, in insertPhoneNumber() argument 279 return insertPhoneNumber(rawContactId, phoneNumber, primary, false, type); in insertPhoneNumber() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | CursorAnchorInfoUtils.java | 183 final float primary = layout.getPrimaryHorizontal(offset); in extractFromTextViewInternal() local 194 left = primary; in extractFromTextViewInternal() 195 right = primary + charWidth; in extractFromTextViewInternal() 202 left = primary - charWidth; in extractFromTextViewInternal() 203 right = primary; in extractFromTextViewInternal()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
D | EditorMirror.java | 55 PrimaryImage primary = PrimaryImage.getImage(); in reflectCurrentFilter() local 56 primary.setCurrentFilterRepresentation(primary.getPreset() in reflectCurrentFilter()
|
D | EditorStraighten.java | 59 PrimaryImage primary = PrimaryImage.getImage(); in reflectCurrentFilter() local 60 primary.setCurrentFilterRepresentation(primary.getPreset().getFilterWithSerializationName( in reflectCurrentFilter()
|
D | EditorRotate.java | 55 PrimaryImage primary = PrimaryImage.getImage(); in reflectCurrentFilter() local 56 primary.setCurrentFilterRepresentation(primary.getPreset() in reflectCurrentFilter()
|
D | EditorCrop.java | 86 PrimaryImage primary = PrimaryImage.getImage(); in reflectCurrentFilter() local 87 primary.setCurrentFilterRepresentation(primary.getPreset() in reflectCurrentFilter()
|
/packages/services/Mtp/src/com/android/mtp/ |
D | MtpService.java | 158 final StorageVolume primary = StorageManager.getPrimaryVolume(mVolumes); in onStartCommand() local 159 startServer(primary, subdirs); in onStartCommand() 163 private synchronized void startServer(StorageVolume primary, String[] subdirs) { in startServer() argument 179 …" with storage " + primary.getPath() + (mUnlocked ? " unlocked" : "") + " as user " + UserHandle.m… in startServer()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactDeltaList.java | 363 ValuesDelta primary = null; in getSuperPrimaryEntry() local 372 } else if (primary == null && entry.isPrimary()) { in getSuperPrimaryEntry() 373 primary = entry; in getSuperPrimaryEntry() 380 if (primary != null) { in getSuperPrimaryEntry() 381 return primary; in getSuperPrimaryEntry()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | DataRowHandler.java | 119 final Integer primary = values.getAsInteger(Data.IS_PRIMARY); in insert() local 121 if ((primary != null && primary != 0) || (superPrimary != null && superPrimary != 0)) { in insert() 316 boolean primary = c.getInt(DataDeleteQuery.IS_PRIMARY) != 0; in delete() 321 if (count != 0 && primary) { in delete()
|
/packages/services/Telephony/src/com/android/phone/ |
D | EmergencyDialer.java | 1214 Color primary = colors.getPrimaryColor(); in getPrimaryColor() local 1224 while (!checkContrastRatio(primary, text)) { in getPrimaryColor() 1225 primary = getNextColor(primary, mSupportsDarkText); in getPrimaryColor() 1228 while (!checkContrastRatio(primary, dial)) { in getPrimaryColor() 1229 primary = getNextColor(primary, mSupportsDarkText); in getPrimaryColor() 1232 return primary.toArgb(); in getPrimaryColor()
|
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/ |
D | DataItem.java | 128 Integer primary = mContentValues.getAsInteger(Data.IS_PRIMARY); in isPrimary() local 129 return primary != null && primary != 0; in isPrimary()
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | AppsAsyncLoader.java | 160 UsageStats getGreaterUsageStats(String packageName, UsageStats primary, UsageStats alternate) { in getGreaterUsageStats() argument 161 long primaryLastUsed = primary != null ? primary.getLastTimeUsed() : 0; in getGreaterUsageStats() 176 return (primaryLastUsed > alternateLastUsed) ? primary : alternate; in getGreaterUsageStats()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
D | FilterShowActivity.java | 742 PrimaryImage primary = PrimaryImage.getImage(); in doInBackground() local 743 Rect originalBounds = primary.getOriginalBounds(); in doInBackground() 744 if (primary.supportsHighRes()) { in doInBackground() 745 int highresPreviewSize = primary.getOriginalBitmapLarge().getWidth() * 2; in doInBackground() 750 Bitmap originalHires = ImageLoader.loadOrientedConstrainedBitmap(primary.getUri(), in doInBackground() 751 primary.getActivity(), highresPreviewSize, in doInBackground() 752 primary.getOrientation(), bounds); in doInBackground() 753 primary.setOriginalBounds(bounds); in doInBackground() 754 primary.setOriginalBitmapHighres(originalHires); in doInBackground() 756 primary.warnListeners(); in doInBackground()
|
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/ |
D | DataItem.java | 121 Integer primary = mContentValues.getAsInteger(Data.IS_PRIMARY); in isPrimary() local 122 return primary != null && primary != 0; in isPrimary()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ContactEditorSpringBoardActivity.java | 99 final String primary = ContactEditorFragment.INTENT_EXTRA_MATERIAL_PALETTE_PRIMARY_COLOR; in onCreate() local 102 if (intent.hasExtra(primary) && intent.hasExtra(secondary)) { in onCreate() 103 mMaterialPalette = new MaterialPalette(intent.getIntExtra(primary, -1), in onCreate()
|