congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ShadowTelephonyManager.checkReadPhoneStatePermission
Code IndexAdd Tabnine to your IDE (free)

How to use
checkReadPhoneStatePermission
method
in
org.robolectric.shadows.ShadowTelephonyManager

Best Java code snippets using org.robolectric.shadows.ShadowTelephonyManager.checkReadPhoneStatePermission (Showing top 13 results out of 315)

origin: robolectric/robolectric

@Implementation(minSdk = O)
protected String getImei(int slotIndex) {
 checkReadPhoneStatePermission();
 return slotIndexToImei.get(slotIndex);
}
origin: robolectric/robolectric

@Implementation(minSdk = LOLLIPOP)
protected String getImei() {
 checkReadPhoneStatePermission();
 return imei;
}
origin: robolectric/robolectric

@Implementation(minSdk = O)
protected String getMeid() {
 checkReadPhoneStatePermission();
 return meid;
}
origin: robolectric/robolectric

@Implementation
protected String getDeviceId() {
 checkReadPhoneStatePermission();
 return deviceId;
}
origin: robolectric/robolectric

@Implementation(minSdk = O)
protected String getMeid(int slotIndex) {
 checkReadPhoneStatePermission();
 return slotIndexToMeid.get(slotIndex);
}
origin: robolectric/robolectric

@Implementation
protected String getSimSerialNumber() {
 checkReadPhoneStatePermission();
 return this.simSerialNumber;
}
origin: org.robolectric/shadows-framework

@Implementation
protected String getDeviceId() {
 checkReadPhoneStatePermission();
 return deviceId;
}
origin: org.robolectric/shadows-core-v23

@Implementation
public String getDeviceId() {
 checkReadPhoneStatePermission();
 return deviceId;
}
origin: org.robolectric/shadows-core

@Implementation
public String getDeviceId() {
 checkReadPhoneStatePermission();
 return deviceId;
}
origin: org.robolectric/framework

@Implementation
public String getDeviceId() {
 checkReadPhoneStatePermission();
 return deviceId;
}
origin: org.robolectric/shadows-framework

@Implementation(minSdk = LOLLIPOP)
protected String getImei() {
 checkReadPhoneStatePermission();
 return imei;
}
origin: org.robolectric/shadows-framework

@Implementation(minSdk = O)
protected String getMeid() {
 checkReadPhoneStatePermission();
 return meid;
}
origin: org.robolectric/shadows-framework

@Implementation
protected String getSimSerialNumber() {
 checkReadPhoneStatePermission();
 return this.simSerialNumber;
}
org.robolectric.shadowsShadowTelephonyManagercheckReadPhoneStatePermission

Popular methods of ShadowTelephonyManager

  • getListenersForFlags
  • initListener
  • setCallState
    Sets the current call state with the option to specify an incoming phone number for the CALL_STATE_R
  • setSimCountryIso
  • setSimState
    Set the sim state for the given slotIndex.
  • getSimState
  • setNetworkCountryIso
  • getUiccSlotsInfo
    Returns the UICC slots information set by #setUiccSlotsInfo.
  • resetSimCountryIsos
    Clears subId to simCountryIso mapping and resets to default state.
  • resetSimStates
    Clears slotIndex to state mapping and resets to default state.
  • setAllCellInfo
  • setCarrierConfig
    Sets the value returned by TelephonyManager#getCarrierConfig().
  • setAllCellInfo,
  • setCarrierConfig,
  • setCarrierPackageNamesForPhone,
  • setCellLocation,
  • setCurrentPhoneType,
  • setDeviceId,
  • setGroupIdLevel1,
  • setImei,
  • setIsNetworkRoaming

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now