Home
last modified time | relevance | path

Searched refs:OsUtil (Results 1 – 25 of 72) sorted by relevance

123

/packages/apps/Messaging/src/com/android/messaging/util/
DOsUtil.java36 public class OsUtil { class
147 if (OsUtil.sIsAtLeastJB_MR1 && !"Nexus 10".equals(Build.MODEL)) { in isSecondaryUser()
195 if (OsUtil.isAtLeastM()) { in hasPermission()
230 return OsUtil.hasPermission(Manifest.permission.ACCESS_FINE_LOCATION); in hasLocationPermission()
237 return OsUtil.hasPermission(Manifest.permission.READ_EXTERNAL_STORAGE); in hasStoragePermission()
241 return OsUtil.hasPermission(Manifest.permission.RECORD_AUDIO); in hasRecordAudioPermission()
DPhoneUtils.java374 if (OsUtil.isAtLeastJB_MR1()) { in isDataRoamingEnabled()
656 if (OsUtil.isAtLeastL_MR1()) { in toLMr1()
893 if (OsUtil.isAtLeastKLP()) { in isDefaultSmsApp()
906 if (OsUtil.isAtLeastKLP()) { in getDefaultSmsApp()
926 if (OsUtil.isAtLeastKLP()) { in getDefaultSmsAppLabel()
946 if (OsUtil.isAtLeastJB_MR1()) { in isAirplaneModeOn()
990 if (OsUtil.isAtLeastL_MR1()) { in forEachActiveSubscription()
DUiUtils.java254 if (OsUtil.isAtLeastL()) { in setStatusBarColor()
295 return OsUtil.isAtLeastJB_MR1() ? view.getPaddingStart() : view.getPaddingLeft(); in getPaddingStart()
299 return OsUtil.isAtLeastJB_MR1() ? view.getPaddingEnd() : view.getPaddingRight(); in getPaddingEnd()
303 return OsUtil.isAtLeastJB_MR2() && Factory.get().getApplicationContext().getResources() in isRtlMode()
312 if (!OsUtil.hasRequiredPermissions()) { in redirectToPermissionCheckIfNeeded()
DContactUtil.java522 return OsUtil.isAtLeastL() && ContactsContract.Contacts.isEnterpriseContactId(contactId); in isEnterpriseContactId()
529 if (OsUtil.isAtLeastM()) { in getEmailContentLookupUri()
539 if (OsUtil.isAtLeastM()) { in getPhoneLookupUri()
546 return OsUtil.hasPermission(Manifest.permission.READ_CONTACTS); in hasReadContactsPermission()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DGalleryMediaChooser.java39 import com.android.messaging.util.OsUtil;
65 if (OsUtil.hasStoragePermission()) { in destroyView()
133 if (OsUtil.hasStoragePermission()) { in createView()
138 updateForPermissionState(OsUtil.hasStoragePermission()); in createView()
187 if (OsUtil.hasStoragePermission()) { in onResume()
197 if (selected && !OsUtil.hasStoragePermission()) { in setSelected()
/packages/apps/Messaging/src/com/android/messaging/receiver/
DSmsReceiver.java51 import com.android.messaging.util.OsUtil;
80 if (OsUtil.isAtLeastKLP()) { in updateSmsReceiveHandler()
86 smsReceiverEnabled = OsUtil.isSecondaryUser(); in updateSmsReceiveHandler()
215 if (OsUtil.isAtLeastL_MR1()) { in deliverSmsMessages()
234 if (OsUtil.isSecondaryUser() && in onReceive()
239 } else if (!OsUtil.isAtLeastKLP()) { in onReceive()
DAbortSmsReceiver.java23 import com.android.messaging.util.OsUtil;
35 if (!OsUtil.isAtLeastKLP() && PhoneUtils.getDefault().isSmsEnabled()) { in onReceive()
DAbortMmsWapPushReceiver.java25 import com.android.messaging.util.OsUtil;
38 if (!OsUtil.isAtLeastKLP() && PhoneUtils.getDefault().isSmsEnabled()) { in onReceive()
/packages/apps/Messaging/src/com/android/messaging/ui/
DPermissionCheckActivity.java31 import com.android.messaging.util.OsUtil;
93 final String[] missingPermissions = OsUtil.getMissingRequiredPermissions(); in tryRequestPermission()
109 if (OsUtil.hasRequiredPermissions()) { in onRequestPermissionsResult()
129 if (!OsUtil.hasRequiredPermissions()) { in redirectIfNeeded()
DLineWrapLayout.java25 import com.android.messaging.util.OsUtil;
174 if (OsUtil.isAtLeastJB_MR2() && getResources().getConfiguration() in onLayout()
217 if (OsUtil.isAtLeastJB_MR2()) { in getStartMargin()
225 if (OsUtil.isAtLeastJB_MR2()) { in getEndMargin()
DViewPagerTabs.java38 import com.android.messaging.util.OsUtil;
133 if (OsUtil.isAtLeastL()) { in ViewPagerTabs()
226 if (OsUtil.isAtLeastJB_MR2() && Factory.get().getApplicationContext().getResources() in getRtlPosition()
DSnackBarManager.java44 import com.android.messaging.util.OsUtil;
336 if (OsUtil.isAtLeastL()) { in getScreenBottomOffset()
343 if (OsUtil.isAtLeastL()) { in getScreenBottomOffset()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationSimSelector.java29 import com.android.messaging.util.OsUtil;
50 Assert.isTrue(OsUtil.isAtLeastL_MR1()); in onSubscriptionListDataLoaded()
91 if (!OsUtil.isAtLeastL_MR1()) { in showHide()
DSimIconView.java28 import com.android.messaging.util.OsUtil;
36 if (OsUtil.isAtLeastL()) { in SimIconView()
/packages/apps/Messaging/src/com/android/messaging/widget/
DWidgetConversationService.java52 import com.android.messaging.util.OsUtil;
219 if (OsUtil.isAtLeastJB()) { in getViewAt()
285 if (!OsUtil.isSecondaryUser()) { in updateViewContent()
292 if (!OsUtil.isSecondaryUser()) { in updateViewContent()
300 if (!OsUtil.isSecondaryUser()) { in updateViewContent()
/packages/apps/Messaging/src/com/android/messaging/sms/
DBugleCarrierConfigValuesLoader.java29 import com.android.messaging.util.OsUtil;
95 if (OsUtil.isAtLeastL()) { in loadLocked()
160 if (!OsUtil.isAtLeastL_MR1()) { in getSubDepContext()
DMmsConfig.java27 import com.android.messaging.util.OsUtil;
151 if (OsUtil.isAtLeastL_MR1()) { in load()
170 Assert.isTrue(OsUtil.isAtLeastL_MR1() != in addMmsConfig()
DBugleUserAgentInfoLoader.java27 import com.android.messaging.util.OsUtil;
77 if (OsUtil.isAtLeastKLP()) { in loadLocked()
/packages/apps/Messaging/src/com/android/messaging/
DFactoryImpl.java45 import com.android.messaging.util.OsUtil;
107 if (OsUtil.hasRequiredPermissions()) { in register()
200 if (OsUtil.isAtLeastL_MR1()) { in getPhoneUtils()
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DApplicationSettingsActivity.java44 import com.android.messaging.util.OsUtil;
189 if (!OsUtil.isAtLeastKLP()) { in updateSmsEnabledPreferences()
224 final boolean canNotify = !OsUtil.isAtLeastKLP() in updateNotificationsPreferences()
DApnSettingsActivity.java52 import com.android.messaging.util.OsUtil;
154 if (OsUtil.isAtLeastL()) { in onCreate()
175 if (OsUtil.isAtLeastL() && in onActivityCreated()
/packages/apps/Messaging/src/com/android/messaging/ui/animation/
DRectEvaluatorCompat.java22 import com.android.messaging.util.OsUtil;
30 if (OsUtil.isAtLeastJB_MR2()) { in create()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DSelfParticipantsData.java25 import com.android.messaging.util.OsUtil;
78 if (!OsUtil.isAtLeastL_MR1()) { in isDefaultSelf()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DParticipantRefresh.java39 import com.android.messaging.util.OsUtil;
226 if (!ContactUtil.hasReadContactsPermission() || !OsUtil.hasPhonePermission()) { in refreshParticipants()
356 if (!OsUtil.isAtLeastL_MR1()) { in refreshSelfParticipantList()
448 if (OsUtil.isAtLeastL_MR1()) { in refreshFromSelfProfile()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientAdapter.java42 import com.android.messaging.util.OsUtil;
132 if (OsUtil.isAtLeastN()) { in getFilteredResultsCursor()
149 if (OsUtil.isAtLeastN()) { in getFilteredResultsCursor()

123