Home
last modified time | relevance | path

Searched refs:primary (Results 1 – 25 of 75) sorted by relevance

123

/packages/apps/Dialer/java/com/android/incallui/
DCallCardPresenter.java119 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 …]
DVideoCallPresenter.java500 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 …]
/packages/modules/Bluetooth/tools/pdl/src/
Dlint.rs118 .with_labels(vec![loc.primary()]), in err_undeclared()
127 loc.primary(), in err_redeclared()
151 loc.primary(), in insert()
171 loc.primary(), in insert()
184 loc.primary(), in insert()
208 loc.primary(), in insert()
239 constraint.loc.primary(), in inherit()
273 loc.primary(), in inline()
342 constraint.loc.primary(), in inline()
360 f.loc().primary(), in finalize()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageShow.java224 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 …]
DImageRotate.java68 PrimaryImage primary = PrimaryImage.getImage(); in onDraw() local
69 Bitmap image = primary.getFiltersOnlyImage(); in onDraw()
DImageMirror.java64 PrimaryImage primary = PrimaryImage.getImage(); in onDraw() local
65 Bitmap image = primary.getFiltersOnlyImage(); in onDraw()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppsAsyncLoaderTest.java314 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/
DChartGridView.java122 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/
DNetworkScoreTest.kt57 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/
DTestEvents.java41 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/modules/Bluetooth/system/service/common/bluetooth/
Dservice.h29 Service(uint16_t handle, bool primary, const Uuid& uuid, in Service() argument
33 primary_(primary), in Service()
46 bool primary() const { return primary_; } in primary() function
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCursorAnchorInfoUtils.java183 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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java255 protected Uri insertOrganization(long rawContactId, ContentValues values, boolean primary) { in insertOrganization() argument
256 return insertOrganization(rawContactId, values, primary, false); in insertOrganization()
259 protected Uri insertOrganization(long rawContactId, ContentValues values, boolean primary, in insertOrganization() argument
264 if (primary) { in insertOrganization()
279 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary) { in insertPhoneNumber() argument
280 return insertPhoneNumber(rawContactId, phoneNumber, primary, false, Phone.TYPE_HOME); in insertPhoneNumber()
283 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary, in insertPhoneNumber() argument
285 return insertPhoneNumber(rawContactId, phoneNumber, primary, superPrimary, Phone.TYPE_HOME); in insertPhoneNumber()
288 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary, in insertPhoneNumber() argument
290 return insertPhoneNumber(rawContactId, phoneNumber, primary, false, type); in insertPhoneNumber()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorMirror.java55 PrimaryImage primary = PrimaryImage.getImage(); in reflectCurrentFilter() local
56 primary.setCurrentFilterRepresentation(primary.getPreset() in reflectCurrentFilter()
DEditorStraighten.java59 PrimaryImage primary = PrimaryImage.getImage(); in reflectCurrentFilter() local
60 primary.setCurrentFilterRepresentation(primary.getPreset().getFilterWithSerializationName( in reflectCurrentFilter()
DEditorRotate.java55 PrimaryImage primary = PrimaryImage.getImage(); in reflectCurrentFilter() local
56 primary.setCurrentFilterRepresentation(primary.getPreset() in reflectCurrentFilter()
DEditorCrop.java86 PrimaryImage primary = PrimaryImage.getImage(); in reflectCurrentFilter() local
87 primary.setCurrentFilterRepresentation(primary.getPreset() in reflectCurrentFilter()
/packages/services/Mtp/src/com/android/mtp/
DMtpService.java158 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/
DRawContactDeltaList.java363 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/apps/DocumentsUI/
DTEST_MAPPING5 "keywords": ["primary-device"]
14 "keywords": ["primary-device"]
/packages/modules/Bluetooth/system/service/common/android/bluetooth/
Dbluetooth_gatt_included_service.h40 primary_(service.primary()){}; in BluetoothGattIncludedService()
58 bool primary() const { return primary_; } in primary() function
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandler.java123 final Integer primary = values.getAsInteger(Data.IS_PRIMARY); in insert() local
125 if ((primary != null && primary != 0) || (superPrimary != null && superPrimary != 0)) { in insert()
320 boolean primary = c.getInt(DataDeleteQuery.IS_PRIMARY) != 0; in delete()
325 if (count != 0 && primary) { in delete()
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DDataItem.java128 Integer primary = mContentValues.getAsInteger(Data.IS_PRIMARY); in isPrimary() local
129 return primary != null && primary != 0; in isPrimary()
/packages/services/Telephony/src/com/android/phone/
DEmergencyDialer.java1219 Color primary = colors.getPrimaryColor(); in getPrimaryColor() local
1229 while (!checkContrastRatio(primary, text)) { in getPrimaryColor()
1230 primary = getNextColor(primary, mSupportsDarkText); in getPrimaryColor()
1233 while (!checkContrastRatio(primary, dial)) { in getPrimaryColor()
1234 primary = getNextColor(primary, mSupportsDarkText); in getPrimaryColor()
1237 return primary.toArgb(); in getPrimaryColor()
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DDataItem.java121 Integer primary = mContentValues.getAsInteger(Data.IS_PRIMARY); in isPrimary() local
122 return primary != null && primary != 0; in isPrimary()

123