Home
last modified time | relevance | path

Searched refs:from (Results 1 – 25 of 850) sorted by relevance

12345678910>>...34

/packages/apps/Dialer/java/com/android/contacts/common/model/
DContact.java153 public Contact(Uri requestedUri, Contact from) { in Contact() argument
156 mStatus = from.mStatus; in Contact()
157 mException = from.mException; in Contact()
158 mLookupUri = from.mLookupUri; in Contact()
159 mUri = from.mUri; in Contact()
160 mDirectoryId = from.mDirectoryId; in Contact()
161 mLookupKey = from.mLookupKey; in Contact()
162 mId = from.mId; in Contact()
163 mNameRawContactId = from.mNameRawContactId; in Contact()
164 mDisplayNameSource = from.mDisplayNameSource; in Contact()
[all …]
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/preference/
DPreferenceFragment.java290 private static Preference copyPreference(Preference from, Preference to) { in copyPreference() argument
293 to.setTitle(from.getTitle()); in copyPreference()
294 to.setOnPreferenceClickListener(from.getOnPreferenceClickListener()); in copyPreference()
295 to.setOnPreferenceChangeListener(from.getOnPreferenceChangeListener()); in copyPreference()
296 to.setIcon(from.getIcon()); in copyPreference()
297 to.setFragment(from.getFragment()); in copyPreference()
298 to.setIntent(from.getIntent()); in copyPreference()
299 to.setKey(from.getKey()); in copyPreference()
300 to.setOrder(from.getOrder()); in copyPreference()
301 to.setSelectable(from.isSelectable()); in copyPreference()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DContact.java170 public Contact(Uri requestedUri, Contact from) { in Contact() argument
173 mStatus = from.mStatus; in Contact()
174 mException = from.mException; in Contact()
175 mLookupUri = from.mLookupUri; in Contact()
176 mUri = from.mUri; in Contact()
177 mDirectoryId = from.mDirectoryId; in Contact()
178 mLookupKey = from.mLookupKey; in Contact()
179 mId = from.mId; in Contact()
180 mNameRawContactId = from.mNameRawContactId; in Contact()
181 mDisplayNameSource = from.mDisplayNameSource; in Contact()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowSecureSettings.java36 ReflectionHelpers.ClassParameter.from(ContentResolver.class, resolver), in getInt()
37 ReflectionHelpers.ClassParameter.from(String.class, name)); in getInt()
45 ReflectionHelpers.ClassParameter.from(ContentResolver.class, resolver), in getInt()
46 ReflectionHelpers.ClassParameter.from(String.class, name), in getInt()
47 ReflectionHelpers.ClassParameter.from(int.class, def)); in getInt()
56 ReflectionHelpers.ClassParameter.from(ContentResolver.class, resolver), in getIntForUser()
57 ReflectionHelpers.ClassParameter.from(String.class, name), in getIntForUser()
58 ReflectionHelpers.ClassParameter.from(int.class, def), in getIntForUser()
59 ReflectionHelpers.ClassParameter.from(int.class, userHandle)); in getIntForUser()
67 ReflectionHelpers.ClassParameter.from(ContentResolver.class, resolver), in putInt()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DStorageWizardBase.java169 aux.addView(LayoutInflater.from(aux.getContext()) in setAuxChecklist()
209 private void copyStringExtra(Intent from, Intent to, String key) { in copyStringExtra() argument
210 if (from.hasExtra(key) && !to.hasExtra(key)) { in copyStringExtra()
211 to.putExtra(key, from.getStringExtra(key)); in copyStringExtra()
215 private void copyBooleanExtra(Intent from, Intent to, String key) { in copyBooleanExtra() argument
216 if (from.hasExtra(key) && !to.hasExtra(key)) { in copyBooleanExtra()
217 to.putExtra(key, from.getBooleanExtra(key, false)); in copyBooleanExtra()
223 final Intent from = getIntent(); in startActivity() local
226 copyStringExtra(from, to, EXTRA_DISK_ID); in startActivity()
227 copyStringExtra(from, to, EXTRA_VOLUME_ID); in startActivity()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageWizardBase.java169 aux.addView(LayoutInflater.from(aux.getContext()) in setAuxChecklist()
217 private void copyStringExtra(Intent from, Intent to, String key) { in copyStringExtra() argument
218 if (from.hasExtra(key) && !to.hasExtra(key)) { in copyStringExtra()
219 to.putExtra(key, from.getStringExtra(key)); in copyStringExtra()
223 private void copyBooleanExtra(Intent from, Intent to, String key) { in copyBooleanExtra() argument
224 if (from.hasExtra(key) && !to.hasExtra(key)) { in copyBooleanExtra()
225 to.putExtra(key, from.getBooleanExtra(key, false)); in copyBooleanExtra()
231 final Intent from = getIntent(); in startActivity() local
234 copyStringExtra(from, to, EXTRA_DISK_ID); in startActivity()
235 copyStringExtra(from, to, EXTRA_VOLUME_ID); in startActivity()
[all …]
/packages/apps/Dialer/java/com/android/dialer/logging/
Dinteraction_event.proto21 // The user blocked a number from the Call Log screen
24 // The user blocked a number from the Call details screen
27 // The user blocked a number from the Management screen
30 // The user unblocked a number from the Call Log screen
33 // The user unblocked a number from the Call details screen
36 // The user unblocked a number from the Management screen
39 // The user blocked numbers from contacts marked as send to voicemail
56 // Open quick contact from where
Ddialer_impression.proto13 // Values should be from 1000 to 100000.
93 // as not spam and yet blocked Subtract this value from
107 // User added the number to contacts from the after call notification
131 // number was marked as Spam by the user (e.g from the feedback prompt)
137 // number was marked as Not Spam by the user (e.g from the feedback prompt)
204 // User deleted an entry from the voicemail tab
228 // Incoming call was rejected from the notifications
233 // Incoming call was rejected from the answer screen including rejecting via
444 // User muted the call from the return-to-call bubble
446 // User unmuted the call from the return-to-call bubble
[all …]
Dui_action.proto14 // General action starting from 1
23 // In call log, starting from 100
30 // In dialpad, starting from 200
35 // In search, starting from 300
40 // In call history, starting from 400
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DMatrixFit.java31 public MatrixFit(double[][] from, double[][] to) { in MatrixFit() argument
32 mValid = fit(from, to); in MatrixFit()
47 public boolean fit(double[][] from, double[][] to) { in fit() argument
48 if ((from.length != to.length) || (from.length < 1)) { in fit()
53 mDimension = from[0].length; in fit()
56 if (from.length < mDimension) { in fit()
61 double[][] q = new double[from.length][mDimension]; in fit()
62 for (int i = 0; i < from.length; i++) { in fit()
64 q[i][j] = from[i][j]; in fit()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageUtils.java69 final ConnectivityManager conn = ConnectivityManager.from(context); in hasEthernet()
74 final TelephonyManager telephonyManager = TelephonyManager.from(context);; in hasEthernet()
96 ConnectivityManager connectivityManager = ConnectivityManager.from(context); in hasMobileData()
109 SubscriptionManager.from(context).getActiveSubscriptionInfoList(true); in hasReadyMobileRadio()
117 final TelephonyManager tele = TelephonyManager.from(context); in hasReadyMobileRadio()
126 final ConnectivityManager conn = ConnectivityManager.from(context); in hasReadyMobileRadio()
145 final ConnectivityManager connectivityManager = ConnectivityManager.from(context); in hasWifiRadio()
162 SubscriptionManager subManager = SubscriptionManager.from(context); in getDefaultSubscriptionId()
183 TelephonyManager telephonyManager = TelephonyManager.from(context); in getDefaultTemplate()
/packages/modules/NetworkStack/tests/integration/src/android/net/netlink/
DInetDiagSocketIntegrationTest.java81 Connection(String to, String from) throws Exception { in Connection() argument
83 if (from != null) { in Connection()
84 localAddress = InetAddress.getByName(from); in Connection()
104 TcpConnection(String to, String from) throws Exception { in TcpConnection() argument
105 super(to, from); in TcpConnection()
128 UdpConnection(String to, String from) throws Exception { in UdpConnection() argument
129 super(to, from); in UdpConnection()
166 public void checkGetConnectionOwnerUid(String to, String from) throws Exception { in checkGetConnectionOwnerUid() argument
167 TcpConnection tcp = new TcpConnection(to, from); in checkGetConnectionOwnerUid()
174 UdpConnection udp = new UdpConnection(to, from); in checkGetConnectionOwnerUid()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/
DSimDialogActivity.java83 final SubscriptionInfo sir = SubscriptionManager.from(context) in displayPreferredDialog()
120 final SubscriptionManager subscriptionManager = SubscriptionManager.from(context); in setDefaultDataSubId()
121 final TelephonyManager telephonyManager = TelephonyManager.from(context) in setDefaultDataSubId()
129 final SubscriptionManager subscriptionManager = SubscriptionManager.from(context); in setDefaultSmsSubId()
134 final TelecomManager telecomManager = TelecomManager.from(this); in setUserSelectedOutgoingPhoneAccount()
139 final TelecomManager telecomManager = TelecomManager.from(this); in subscriptionIdToPhoneAccountHandle()
140 final TelephonyManager telephonyManager = TelephonyManager.from(this); in subscriptionIdToPhoneAccountHandle()
157 final SubscriptionManager subscriptionManager = SubscriptionManager.from(context); in createDialog()
176 TelecomManager.from(context); in createDialog()
208 final TelecomManager telecomManager = TelecomManager.from(context); in createDialog()
[all …]
/packages/services/Car/car-lib/src/android/car/navigation/
Dnavigation_state.proto46 // A URI defining the location that the image can be retrieved from.
48 // When requesting the image from this URI, a desired image size must be
121 // No turn, from 0 (included) to 10 (excluded) degrees. Used when we just
128 // Slight turn at an intersection, from 10 (included) to 45 (excluded)
133 // Regular turn at an intersection, from 45 (included) to 135 (excluded)
138 // Sharp turn at an intersection, from 135 (included) to 175 (excluded)
143 // A turn onto the opposite side of the same street, from 175 (included) to
184 // exit") on a clockwise roundabout (as seen from above, typical for
200 // exit") on a counter-clockwise roundabout (as seen from above, typical
237 // The roundabout exit number, starting from 1 to designate the first exit
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DMasterSwitchPreferenceTest.java64 LayoutInflater.from(mContext).inflate( in setChecked_shouldUpdateButtonCheckedState()
80 LayoutInflater.from(mContext).inflate( in setSwitchEnabled_shouldUpdateButtonEnabledState()
96 LayoutInflater.from(mContext).inflate( in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound()
108 final LayoutInflater inflater = LayoutInflater.from(mContext); in clickWidgetView_shouldToggleButton()
128 final LayoutInflater inflater = LayoutInflater.from(mContext); in clickWidgetView_shouldNotToggleButtonIfDisabled()
147 LayoutInflater.from(mContext).inflate(R.layout.preference_two_target, null)); in clickWidgetView_shouldNotifyPreferenceChanged()
166 LayoutInflater.from(mContext) in setDisabledByAdmin_hasEnforcedAdmin_shouldDisableButton()
180 LayoutInflater.from(mContext) in setDisabledByAdmin_noEnforcedAdmin_shouldEnableButton()
194 LayoutInflater.from(mContext) in onBindViewHolder_toggleButtonShouldHaveContentDescription()
DMasterCheckBoxPreferenceTest.java62 LayoutInflater.from(mContext).inflate( in setChecked_shouldUpdateCheckBoxCheckedState()
77 LayoutInflater.from(mContext).inflate( in setEnabled_shouldUpdateCheckBoxEnabledState()
92 LayoutInflater.from(mContext).inflate( in setCheckboxEnabled_shouldOnlyUpdateCheckBoxEnabledState()
109 LayoutInflater.from(mContext).inflate( in onBindViewHolder_shouldSetCheckboxEnabledState()
126 final LayoutInflater inflater = LayoutInflater.from(mContext); in clickWidgetView_shouldToggleCheckBox()
145 final LayoutInflater inflater = LayoutInflater.from(mContext); in clickWidgetView_shouldNotToggleCheckBoxIfDisabled()
163 LayoutInflater.from(mContext).inflate(R.layout.preference_two_target, null)); in clickWidgetView_shouldNotifyPreferenceChanged()
181 LayoutInflater.from(mContext) in onBindViewHolder_checkBoxShouldHaveContentDescription()
/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp127 bool TunForwarder::addForwardingRule(const std::array<std::string, 2>& from, in addForwardingRule() argument
129 const bool isV4 = (from[0].find(':') == from[0].npos); in addForwardingRule()
131 auto k = v4pair::makePair(from); in addForwardingRule()
136 auto k = v6pair::makePair(from); in addForwardingRule()
332 for (const auto& [from, to] : mRulesIpv4) { in translateIpv4Packet()
333 if (ipHeader->saddr == static_cast<int>(from.src.s_addr) && in translateIpv4Packet()
334 ipHeader->daddr == static_cast<int>(from.dst.s_addr)) { in translateIpv4Packet()
367 for (const auto& [from, to] : mRulesIpv6) { in translateIpv6Packet()
368 if (ipv6Header->ip6_src == from.src && ipv6Header->ip6_dst == from.dst) { in translateIpv6Packet()
Dgolddata.proto29 // Values from bionic/libc/include/sys/socket.h
79 // Values from bionic/libc/include/sys/socket.h
91 // Values from bionic/libc/kernel/uapi/linux/in.h
122 // Values from bionic/libc/include/netdb.h
123 // Values from system/netd/resolv/include/netd_resolv/resolv.h
147 // the query packet, it returns the corresponding response packet from |packet_mapping.response|.
195 // Expected return values from DNS query API.
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DNotificationChannelSliceTest.java125 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_hasSuggestedApp_shouldHaveNotificationChannelTitle()
169 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_noRecentlyInstalledApp_shouldHaveNoSuggestedAppTitle()
182 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_noMultiChannelApp_shouldHaveNoSuggestedAppTitle()
196 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_insufficientNotificationSentCount_shouldHaveNoSuggestedAppTitle()
208 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_isSystemApp_shouldHaveNoSuggestedAppTitle()
221 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_isNotificationBanned_shouldHaveNoSuggestedAppTitle()
252 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_channelCountIsLessThanDefaultRows_subTitleShouldNotHaveTapToManagerAll()
268 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_channelCountIsEqualToDefaultRows_subTitleShouldNotHaveTapToManagerAll()
283 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_channelCountIsMoreThanDefaultRows_subTitleShouldHaveTapToManagerAll()
299 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_isAllDisplayableChannelBlocked_shouldHaveNoSuggestedAppTitle()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationAppPreferenceTest.java62 final LayoutInflater inflater = LayoutInflater.from(mContext); in setChecked_shouldUpdateButtonCheckedState()
80 final LayoutInflater inflater = LayoutInflater.from(mContext); in setSwitchEnabled_shouldUpdateButtonEnabledState()
98 final LayoutInflater inflater = LayoutInflater.from(mContext); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound()
113 final LayoutInflater inflater = LayoutInflater.from(mContext); in clickWidgetView_shouldToggleButton()
133 final LayoutInflater inflater = LayoutInflater.from(mContext); in clickWidgetView_shouldNotToggleButtonIfDisabled()
152 LayoutInflater.from(mContext).inflate(R.layout.preference_app, null)); in clickWidgetView_shouldNotifyPreferenceChanged()
171 final LayoutInflater inflater = LayoutInflater.from(mContext); in setDisabledByAdmin_hasEnforcedAdmin_shouldDisableButton()
187 final LayoutInflater inflater = LayoutInflater.from(mContext); in setDisabledByAdmin_noEnforcedAdmin_shouldEnableButton()
203 final LayoutInflater inflater = LayoutInflater.from(mContext); in onBindViewHolder_toggleButtonShouldHaveContentDescription()
/packages/services/BuiltInPrintService/src/com/android/bips/render/
DPdfRenderService.java250 int from, to; in writeRgb() local
251 for (from = 0, to = 0; from < alphaPixelSize; from += 4, to += 3) { in writeRgb()
252 array[to] = array[from]; in writeRgb()
253 array[to + 1] = array[from + 1]; in writeRgb()
254 array[to + 2] = array[from + 2]; in writeRgb()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeMessage.java62 private Address[] from; field in MimeMessage
129 from = null; in init()
333 if (from == null) { in getFrom()
338 from = Address.parse(list); in getFrom()
340 return from; in getFrom()
344 public void setFrom(Address from) throws MessagingException { in setFrom() argument
346 if (from != null) { in setFrom()
347 setHeader("From", MimeUtility.fold(from.toHeader(), fromLength)); in setFrom()
348 this.from = new Address[] {from}; in setFrom()
350 this.from = null; in setFrom()
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
DStateStartingPreview.java55 public static StateStartingPreview from( in from() method in StateStartingPreview
102 return Optional.of((State) StateBackgroundWithSurfaceTexture.from( in registerEventHandlers()
132 return Optional.of((State) StateReadyForCapture.from( in registerEventHandlers()
147 return Optional.of((State) StateFatal.from( in registerEventHandlers()
162 return Optional.of((State) StateFatal.from(this, mResourceConstructed)); in onEnter()
176 return Optional.of((State) StateFatal.from(this, mResourceConstructed)); in onEnter()
179 return Optional.of((State) StateFatal.from(this, mResourceConstructed)); in onEnter()
/packages/apps/Messaging/build/
DREADME3 gcheckstyle is a tool from google3 to validate java from google3. The config file is baked into th…
6 gcheckstyle/tools/java/checkstyle/googlestyle-5.0.xml is the config file which came from /home/buil…
8 …r is pulled from the build share at /google/data/ro/teams/devtools/glint/linters/live/google-style…
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieRenderer.java776 private float from = 1f; field in PieRenderer.ScaleAnimation
783 public void setScale(float from, float to) { in setScale() argument
784 this.from = from; in setScale()
790 dialAngle = (int) (from + (to - from) * interpolatedTime); in applyTransformation()
795 private float from; field in PieRenderer.LinearAnimation
799 public LinearAnimation(float from, float to) { in LinearAnimation() argument
802 this.from = from; in LinearAnimation()
812 value = (from + (to - from) * interpolatedTime); in applyTransformation()

12345678910>>...34