Home
last modified time | relevance | path

Searched refs:checkStringNotEmpty (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/core/java/android/app/role/
DRoleManager.java201 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in createRequestRoleIntent()
216 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in isRoleAvailable()
232 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in isRoleHeld()
285 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in getRoleHoldersAsUser()
321 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in addRoleHolderAsUser()
322 Preconditions.checkStringNotEmpty(packageName, "packageName cannot be null or empty"); in addRoleHolderAsUser()
360 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in removeRoleHolderAsUser()
361 Preconditions.checkStringNotEmpty(packageName, "packageName cannot be null or empty"); in removeRoleHolderAsUser()
398 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in clearRoleHoldersAsUser()
563 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in addRoleHolderFromController()
[all …]
DRoleControllerService.java97 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in onBind()
98 Preconditions.checkStringNotEmpty(packageName, in onBind()
112 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in onBind()
113 Preconditions.checkStringNotEmpty(packageName, in onBind()
126 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in onBind()
146 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in onBind()
147 Preconditions.checkStringNotEmpty(packageName, in onBind()
159 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in onBind()
/frameworks/base/services/core/java/com/android/server/role/
DRoleManagerService.java432 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in isRoleAvailable()
443 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in isRoleHeld()
444 Preconditions.checkStringNotEmpty(packageName, "packageName cannot be null or empty"); in isRoleHeld()
465 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in getRoleHoldersAsUser()
486 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in addRoleHolderAsUser()
487 Preconditions.checkStringNotEmpty(packageName, "packageName cannot be null or empty"); in addRoleHolderAsUser()
506 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in removeRoleHolderAsUser()
507 Preconditions.checkStringNotEmpty(packageName, "packageName cannot be null or empty"); in removeRoleHolderAsUser()
526 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in clearRoleHoldersAsUser()
589 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in addRoleHolderFromController()
[all …]
/frameworks/base/core/java/android/debug/
DPairDevice.java48 Preconditions.checkStringNotEmpty(name); in PairDevice()
49 Preconditions.checkStringNotEmpty(guid); in PairDevice()
/frameworks/base/core/java/android/printservice/recommendation/
DRecommendationInfo.java63 mPackageName = Preconditions.checkStringNotEmpty(packageName); in RecommendationInfo()
64 mName = Preconditions.checkStringNotEmpty(name); in RecommendationInfo()
/frameworks/base/core/java/com/android/internal/util/
DPreconditions.java79 public static @NonNull <T extends CharSequence> T checkStringNotEmpty(final T string) { in checkStringNotEmpty() method in Preconditions
96 public static @NonNull <T extends CharSequence> T checkStringNotEmpty(final T string, in checkStringNotEmpty() method in Preconditions
114 public static @NonNull <T extends CharSequence> T checkStringNotEmpty( in checkStringNotEmpty() method in Preconditions
/frameworks/base/core/java/android/net/nsd/
DNsdManager.java21 import static com.android.internal.util.Preconditions.checkStringNotEmpty;
574 checkStringNotEmpty(serviceType, "Service type cannot be empty"); in discoverServices()
653 checkStringNotEmpty(serviceInfo.getServiceName(), "Service name cannot be empty"); in checkServiceInfo()
654 checkStringNotEmpty(serviceInfo.getServiceType(), "Service type cannot be empty"); in checkServiceInfo()
/frameworks/base/services/core/java/com/android/server/adb/
DAdbService.java283 Preconditions.checkStringNotEmpty(publicKey); in allowDebugging()
335 Preconditions.checkStringNotEmpty(bssid); in allowWirelessDebugging()
361 Preconditions.checkStringNotEmpty(fingerprint); in unpairDevice()
378 Preconditions.checkStringNotEmpty(serviceName); in enablePairingByQrCode()
379 Preconditions.checkStringNotEmpty(password); in enablePairingByQrCode()
/frameworks/base/core/java/android/permission/
DPermissionControllerService.java30 import static com.android.internal.util.Preconditions.checkStringNotEmpty;
389 checkStringNotEmpty(callerPackageName); in onBind()
390 checkStringNotEmpty(packageName); in onBind()
391 checkStringNotEmpty(permission); in onBind()
DPermissionControllerManager.java29 import static com.android.internal.util.Preconditions.checkStringNotEmpty;
302 checkStringNotEmpty(callerPackageName); in setRuntimePermissionGrantStateByDeviceAdmin()
303 checkStringNotEmpty(packageName); in setRuntimePermissionGrantStateByDeviceAdmin()
304 checkStringNotEmpty(permission); in setRuntimePermissionGrantStateByDeviceAdmin()
/frameworks/base/core/java/android/net/
DStringNetworkSpecifier.java37 Preconditions.checkStringNotEmpty(specifier); in StringNetworkSpecifier()
DIkev2VpnProfile.java24 import static com.android.internal.util.Preconditions.checkStringNotEmpty;
155 checkStringNotEmpty(mServerAddr, MISSING_PARAM_MSG_TMPL, "Server Address"); in validate()
156 checkStringNotEmpty(mUserIdentity, MISSING_PARAM_MSG_TMPL, "User Identity"); in validate()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DPreconditions.java77 public static @NonNull <T extends CharSequence> T checkStringNotEmpty(final T string) { in checkStringNotEmpty() method in Preconditions
94 public static @NonNull <T extends CharSequence> T checkStringNotEmpty(final T string, in checkStringNotEmpty() method in Preconditions
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/mdnsFilter/
DVendorConfig.java71 this.name = Preconditions.checkStringNotEmpty(name); in VendorConfig()
72 this.packageName = Preconditions.checkStringNotEmpty(packageName); in VendorConfig()
/frameworks/base/core/java/android/content/
DLocusId.java74 mId = Preconditions.checkStringNotEmpty(id, "id cannot be empty"); in LocusId()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/
DRemotePrintServicePlugin.java81 packageName = Preconditions.checkStringNotEmpty(mPlugin.getPackageName(), in RemotePrintServicePlugin()
/frameworks/base/core/java/android/hardware/usb/
DUsbDevice.java85 mVersion = Preconditions.checkStringNotEmpty(version); in UsbDevice()
390 mVersion = Preconditions.checkStringNotEmpty(version); in Builder()
/frameworks/base/core/java/android/content/pm/
DShortcutInfo.java412 mId = Preconditions.checkStringNotEmpty(b.mId, "Shortcut ID must be provided"); in ShortcutInfo()
520 Preconditions.checkStringNotEmpty(mId, "Shortcut ID must be provided"); in enforceMandatoryFields()
987 mId = Preconditions.checkStringNotEmpty(id, "id cannot be empty"); in setId()
999 mId = Preconditions.checkStringNotEmpty(id, "id cannot be empty"); in Builder()
1099 mTitle = Preconditions.checkStringNotEmpty(shortLabel, "shortLabel cannot be empty"); in setShortLabel()
1127 mText = Preconditions.checkStringNotEmpty(longLabel, "longLabel cannot be empty"); in setLongLabel()
1177 Preconditions.checkStringNotEmpty(disabledMessage, in setDisabledMessage()
/frameworks/base/core/java/android/os/
DCoolingDevice.java87 mName = Preconditions.checkStringNotEmpty(name); in CoolingDevice()
DTemperature.java118 mName = Preconditions.checkStringNotEmpty(name); in Temperature()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackageItem.java51 mPackageName = Preconditions.checkStringNotEmpty(packageName); in ShortcutPackageItem()
/frameworks/base/core/java/android/app/
DDirectAction.java59 mID = Preconditions.checkStringNotEmpty(id); in DirectAction()
/frameworks/base/core/java/android/print/
DPrintDocumentInfo.java151 mName = Preconditions.checkStringNotEmpty(parcel.readString()); in PrintDocumentInfo()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DDeviceChooserActivity.java109 String callingPackage = Preconditions.checkStringNotEmpty( in getCallingAppName()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DTransferOwnershipMetadataManager.java190 Preconditions.checkStringNotEmpty(adminType); in Metadata()

12