当前位置: 首页>>代码示例>>Java>>正文


Java RLog.d方法代码示例

本文整理汇总了Java中io.rong.common.RLog.d方法的典型用法代码示例。如果您正苦于以下问题:Java RLog.d方法的具体用法?Java RLog.d怎么用?Java RLog.d使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在io.rong.common.RLog的用法示例。


在下文中一共展示了RLog.d方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onPickupDetected

import io.rong.common.RLog; //导入方法依赖的package包/类
@Override
public void onPickupDetected(boolean isPickingUp) {
    if (wakeLock == null) {
        RLog.d(TAG, "No PROXIMITY_SCREEN_OFF_WAKE_LOCK");
        return;
    }
    if (isPickingUp && !wakeLock.isHeld()) {
        setShouldShowFloat(false);
        shouldRestoreFloat = false;
        wakeLock.acquire();
    }
    if (!isPickingUp && wakeLock.isHeld()) {
        try {
            wakeLock.setReferenceCounted(false);
            wakeLock.release();
            setShouldShowFloat(true);
            shouldRestoreFloat = true;
        } catch (Exception e) {

        }
    }
}
 
开发者ID:hushengjun,项目名称:FastAndroid,代码行数:23,代码来源:BaseCallActivity.java

示例2: openDB

import io.rong.common.RLog; //导入方法依赖的package包/类
/**
 *修改数据库的存贮路径为.../appkey/userID/,
 *必须确保userID存在后才能初始化DBManager
 */
public void openDB() {
    RLog.d(TAG, "SealUserInfoManager openDB");
    if (mDBManager == null || !mDBManager.isInitialized()) {
        mDBManager = DBManager.init(mContext);
        mWorkThread = new HandlerThread("sealUserInfoManager");
        mWorkThread.start();
        mWorkHandler = new Handler(mWorkThread.getLooper());
        mFriendDao = getFriendDao();
        mGroupsDao = getGroupsDao();
        mGroupMemberDao = getGroupMemberDao();
        mBlackListDao = getBlackListDao();
        mUserInfoCache = new LinkedHashMap<>();
        setUserInfoEngineListener();
    }
    mGetAllUserInfoState = sp.getInt("getAllUserInfoState", 0);
    RLog.d(TAG, "SealUserInfoManager mGetAllUserInfoState = " + mGetAllUserInfoState);
}
 
开发者ID:zqHero,项目名称:rongyunDemo,代码行数:22,代码来源:SealUserInfoManager.java

示例3: closeDB

import io.rong.common.RLog; //导入方法依赖的package包/类
public void closeDB() {
    RLog.d(TAG, "SealUserInfoManager closeDB");
    if (mDBManager != null) {
        mDBManager.uninit();
        mDBManager = null;
        mFriendDao = null;
        mGroupsDao = null;
        mGroupMemberDao = null;
        mBlackListDao = null;
    }
    if (mWorkThread != null) {
        mWorkThread.quit();
        mWorkThread = null;
        mWorkHandler = null;
    }
    if (mUserInfoCache != null) {
        mUserInfoCache.clear();
        mUserInfoCache = null;
    }
    mGroupsList = null;
    UserInfoEngine.getInstance(mContext).setListener(null);
    GroupInfoEngine.getInstance(mContext).setmListener(null);
}
 
开发者ID:LanguidSheep,项目名称:sealtalk-android-master,代码行数:24,代码来源:SealUserInfoManager.java

示例4: openDB

import io.rong.common.RLog; //导入方法依赖的package包/类
/**
 * 修改数据库的存贮路径为.../appkey/userID/,
 * 必须确保userID存在后才能初始化DBManager
 */
public void openDB() {
    RLog.d(TAG, "SealUserInfoManager openDB");
    if (mDBManager == null || !mDBManager.isInitialized()) {
        mDBManager = DBManager.init(mContext);
        mWorkThread = new HandlerThread("sealUserInfoManager");
        mWorkThread.start();
        mWorkHandler = new Handler(mWorkThread.getLooper());
        mFriendDao = getFriendDao();
        mGroupsDao = getGroupsDao();
        mGroupMemberDao = getGroupMemberDao();
        mBlackListDao = getBlackListDao();
        mUserInfoCache = new LinkedHashMap<>();
        setUserInfoEngineListener();
    }
    mGetAllUserInfoState = sp.getInt("getAllUserInfoState", 0);
    RLog.d(TAG, "SealUserInfoManager mGetAllUserInfoState = " + mGetAllUserInfoState);
}
 
开发者ID:LanguidSheep,项目名称:sealtalk-android-master,代码行数:22,代码来源:SealUserInfoManager.java

示例5: onCreate

import io.rong.common.RLog; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    RLog.d(TAG, "BaseCallActivity onCreate");
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON, WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
    getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
    shouldRestoreFloat = true;

    PowerManager pm = (PowerManager) this.getSystemService(Context.POWER_SERVICE);
    boolean isScreenOn = pm.isScreenOn();
    if (!isScreenOn) {
        PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.ACQUIRE_CAUSES_WAKEUP | PowerManager.SCREEN_DIM_WAKE_LOCK, "bright");
        wl.acquire();
        wl.release();
    }
    handler = new Handler();
    mHomeKeyReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            String action = intent.getAction();
            if (action.equals(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)) {
                String reason = intent.getStringExtra(SYSTEM_DIALOG_REASON_KEY);
                if (SYSTEM_DIALOG_REASON_HOME_KEY.equals(reason) && shouldShowFloat) {
                    finish();
                }
            }
        }
    };
    try {
        registerReceiver(mHomeKeyReceiver, new IntentFilter(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
    } catch (Exception e) {
        e.printStackTrace();
    }
    isFinishing = false;
    RongCallProxy.getInstance().setCallListener(this);
}
 
开发者ID:LanguidSheep,项目名称:sealtalk-android-master,代码行数:40,代码来源:BaseCallActivity.java

示例6: setCallListener

import io.rong.common.RLog; //导入方法依赖的package包/类
public void setCallListener(IRongCallListener listener) {
    RLog.d(TAG, "setCallListener listener = " + listener);
    this.mCallListener = listener;
    if (listener != null) {
        CallDisconnectedInfo callDisconnectedInfo = mCachedCallQueue.poll();
        if (callDisconnectedInfo != null) {
            listener.onCallDisconnected(callDisconnectedInfo.mCallSession, callDisconnectedInfo.mReason);
        }
    }
}
 
开发者ID:hushengjun,项目名称:FastAndroid,代码行数:11,代码来源:RongCallProxy.java

示例7: DaoMaster

import io.rong.common.RLog; //导入方法依赖的package包/类
public DaoMaster(SQLiteDatabase db) {
    super(db, SCHEMA_VERSION);
    RLog.d(TAG, "DaoMaster init");
    registerDaoClass(FriendDao.class);
    registerDaoClass(GroupsDao.class);
    registerDaoClass(BlackListDao.class);
    registerDaoClass(GroupMemberDao.class);
}
 
开发者ID:zqHero,项目名称:rongyunDemo,代码行数:9,代码来源:DaoMaster.java

示例8: onClickToResume

import io.rong.common.RLog; //导入方法依赖的package包/类
public static void onClickToResume() {
    //当快速双击悬浮窗时,第一次点击之后会把mBundle置为空,第二次点击的时候出现NPE
    if (mBundle == null) {
        RLog.d(TAG, "onClickToResume mBundle is null");
        return;
    }
    RongCallClient.getInstance().setVoIPCallListener(RongCallProxy.getInstance());
    Intent intent = new Intent(mBundle.getString("action"));
    intent.putExtra("floatbox", mBundle);
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    intent.putExtra("callAction", RongCallAction.ACTION_RESUME_CALL.getName());
    mContext.startActivity(intent);
    mBundle = null;
}
 
开发者ID:hushengjun,项目名称:FastAndroid,代码行数:15,代码来源:CallFloatBoxView.java

示例9: getDbPath

import io.rong.common.RLog; //导入方法依赖的package包/类
private static String getDbPath () {
    String currentUserId = mContext.getSharedPreferences("config", MODE_PRIVATE).getString(SealConst.SEALTALK_LOGIN_ID, null);
    String dbPath = mContext.getFilesDir().getAbsolutePath();
    dbPath = dbPath + File.separator + getAppKey() + File.separator + currentUserId;
    RLog.d(TAG, "DBManager dbPath = " + dbPath);
    return  dbPath;
}
 
开发者ID:zqHero,项目名称:rongyunDemo,代码行数:8,代码来源:DBManager.java

示例10: dropAllTables

import io.rong.common.RLog; //导入方法依赖的package包/类
/**
 * Drops underlying database table using DAOs.
 */
public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {
    RLog.d(TAG, "DaoMaster dropAllTables");
    FriendDao.dropTable(db, ifExists);
    GroupsDao.dropTable(db, ifExists);
    BlackListDao.dropTable(db, ifExists);
    GroupMemberDao.dropTable(db, ifExists);
}
 
开发者ID:LanguidSheep,项目名称:sealtalk-android-master,代码行数:11,代码来源:DaoMaster.java

示例11: init

import io.rong.common.RLog; //导入方法依赖的package包/类
/**
 * [初始化DBManager实例,单例模式实现]
 *
 * @param context
 * @return DBManager
 */
public static DBManager init(Context context) {
    if (isInitialized) {
        RLog.d(TAG, "DBManager has init");
        return instance;
    }
    RLog.d(TAG, "DBManager init");
    mContext = context;
    instance = new DBManager(context);
    isInitialized = true;
    return instance;
}
 
开发者ID:LanguidSheep,项目名称:sealtalk-android-master,代码行数:18,代码来源:DBManager.java

示例12: createAllTables

import io.rong.common.RLog; //导入方法依赖的package包/类
/**
 * Creates underlying database table using DAOs.
 */
public static void createAllTables(SQLiteDatabase db, boolean ifNotExists) {
    RLog.d(TAG, "DaoMaster createAllTables");
    FriendDao.createTable(db, ifNotExists);
    GroupsDao.createTable(db, ifNotExists);
    BlackListDao.createTable(db, ifNotExists);
    GroupMemberDao.createTable(db, ifNotExists);
}
 
开发者ID:13120241790,项目名称:RongCloudJcenter,代码行数:11,代码来源:DaoMaster.java

示例13: onResume

import io.rong.common.RLog; //导入方法依赖的package包/类
@Override
protected void onResume() {
    super.onResume();
    RLog.d(TAG, "BaseCallActivity onResume");
    RongCallProxy.getInstance().setCallListener(this);
    if (shouldRestoreFloat) {
        CallFloatBoxView.hideFloatBox();
    }
    RongCallSession session = RongCallClient.getInstance().getCallSession();
    long activeTime = session != null ? session.getActiveTime() : 0;
    time = activeTime == 0 ? 0 : (System.currentTimeMillis() - activeTime) / 1000;
    shouldRestoreFloat = true;
}
 
开发者ID:sealtalk,项目名称:sealtalk-android,代码行数:14,代码来源:BaseCallActivity.java

示例14: onCheckPermission

import io.rong.common.RLog; //导入方法依赖的package包/类
@Override
public void onCheckPermission(RongCallSession callSession) {
    RLog.d("VoIPReceiver", "onCheckPermissions");
    if (uiReady) {
        startVoIPActivity(mContext, callSession, true);
    }
}
 
开发者ID:rongcloud,项目名称:callkit-android,代码行数:8,代码来源:RongCallService.java

示例15: onClickToResume

import io.rong.common.RLog; //导入方法依赖的package包/类
private static void onClickToResume() {
    //当快速双击悬浮窗时,第一次点击之后会把mBundle置为空,第二次点击的时候出现NPE
    if (mBundle == null) {
        RLog.d(TAG, "onClickToResume mBundle is null");
        return;
    }
    Intent intent = new Intent(mBundle.getString("action"));
    intent.putExtra("floatbox", mBundle);
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    intent.putExtra("callAction", RongCallAction.ACTION_RESUME_CALL.getName());
    mContext.startActivity(intent);
}
 
开发者ID:rongcloud,项目名称:callkit-android,代码行数:13,代码来源:CallFloatBoxView.java


注:本文中的io.rong.common.RLog.d方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。