Home
last modified time | relevance | path

Searched refs:OsUtil (Results 1 – 25 of 73) 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.java44 import com.android.messaging.util.OsUtil;
84 if (OsUtil.hasStoragePermission()) { in destroyView()
152 if (OsUtil.hasStoragePermission()) { in createView()
157 updateForPermissionState(OsUtil.hasStoragePermission()); in createView()
207 if (OsUtil.hasStoragePermission()) { in onResume()
217 if (selected && !OsUtil.hasStoragePermission()) { in setSelected()
DAudioMediaChooser.java27 import com.android.messaging.util.OsUtil;
111 if (selected && !OsUtil.hasRecordAudioPermission()) { 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()
216 if (OsUtil.isAtLeastL_MR1()) { in deliverSmsMessages()
235 if (OsUtil.isSecondaryUser() && in onReceive()
240 } 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/datamodel/
DDataModelImpl.java57 import com.android.messaging.util.OsUtil;
217 if (OsUtil.isAtLeastN()) { in onApplicationCreated()
227 if (OsUtil.isAtLeastL_MR1()) { in onApplicationCreated()
240 if (OsUtil.isAtLeastN()) { in onApplicationCreated()
265 if (OsUtil.isAtLeastN()) { in getConnectivityUtil()
DFrequentContactsCursorQueryData.java28 import com.android.messaging.util.OsUtil;
93 final String strequentQueryParam = OsUtil.isAtLeastL() ? in getUri()
/packages/apps/Messaging/src/com/android/messaging/ui/
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()
DPermissionCheckActivity.java31 import com.android.messaging.util.OsUtil;
93 final String[] missingPermissions = OsUtil.getMissingRequiredPermissions(); in tryRequestPermission()
126 if (!OsUtil.hasRequiredPermissions()) { in redirectIfNeeded()
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()
DViewPagerTabStrip.java28 import com.android.messaging.util.OsUtil;
100 return OsUtil.isAtLeastJB_MR2() ? getLayoutDirection() == View.LAYOUT_DIRECTION_RTL : false; in isRtl()
/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.java29 import com.android.messaging.util.OsUtil;
37 if (OsUtil.isAtLeastL()) { in SimIconView()
/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()
DBugleUserAgentInfoLoader.java27 import com.android.messaging.util.OsUtil;
77 if (OsUtil.isAtLeastKLP()) { in loadLocked()
DMmsConfig.java27 import com.android.messaging.util.OsUtil;
153 if (OsUtil.isAtLeastL_MR1()) { in load()
172 Assert.isTrue(OsUtil.isAtLeastL_MR1() != in addMmsConfig()
/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/
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/animation/
DRectEvaluatorCompat.java22 import com.android.messaging.util.OsUtil;
30 if (OsUtil.isAtLeastJB_MR2()) { in create()
/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()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DSelfParticipantsData.java27 import com.android.messaging.util.OsUtil;
89 if (!OsUtil.isAtLeastL_MR1()) { in isDefaultSelf()

123