android.provider.Settings.Global#getUriFor ( )源码实例Demo

下面列出了android.provider.Settings.Global#getUriFor ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: MediaSDK   文件: AudioCapabilities.java
/**
 * Returns the global settings {@link Uri} used by the device to specify external surround sound,
 * or null if the device does not support this functionality.
 */
@Nullable
/* package */ static Uri getExternalSurroundSoundGlobalSettingUri() {
  return deviceMaySetExternalSurroundSoundGlobalSetting()
      ? Global.getUriFor(EXTERNAL_SURROUND_SOUND_KEY)
      : null;
}
 
源代码2 项目: android_9.0.0_r45   文件: NetworkScoreService.java
private void registerRecommendationSettingsObserver() {
    final Uri packageNameUri = Global.getUriFor(Global.NETWORK_RECOMMENDATIONS_PACKAGE);
    mRecommendationSettingsObserver.observe(packageNameUri,
            ServiceHandler.MSG_RECOMMENDATIONS_PACKAGE_CHANGED);

    final Uri settingUri = Global.getUriFor(Global.NETWORK_RECOMMENDATIONS_ENABLED);
    mRecommendationSettingsObserver.observe(settingUri,
            ServiceHandler.MSG_RECOMMENDATION_ENABLED_SETTING_CHANGED);
}
 
源代码3 项目: Telegram-FOSS   文件: AudioCapabilities.java
/**
 * Returns the global settings {@link Uri} used by the device to specify external surround sound,
 * or null if the device does not support this functionality.
 */
@Nullable
/* package */ static Uri getExternalSurroundSoundGlobalSettingUri() {
  return deviceMaySetExternalSurroundSoundGlobalSetting()
      ? Global.getUriFor(EXTERNAL_SURROUND_SOUND_KEY)
      : null;
}
 
源代码4 项目: Telegram   文件: AudioCapabilities.java
/**
 * Returns the global settings {@link Uri} used by the device to specify external surround sound,
 * or null if the device does not support this functionality.
 */
@Nullable
/* package */ static Uri getExternalSurroundSoundGlobalSettingUri() {
  return deviceMaySetExternalSurroundSoundGlobalSetting()
      ? Global.getUriFor(EXTERNAL_SURROUND_SOUND_KEY)
      : null;
}