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


Java Dbg.v方法代码示例

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


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

示例1: showBitmap

import com.sonyericsson.extras.liveware.extension.util.Dbg; //导入方法依赖的package包/类
/**
 * Show bitmap on accessory. Used when only updating part of the screen.
 *
 * @param bitmap The bitmap to show.
 * @param x The x position.
 * @param y The y position.
 */
protected void showBitmap(final Bitmap bitmap, final int x, final int y) {
    if (Dbg.DEBUG) {
        Dbg.v("showBitmap x: " + x + " y: " + y);
    }

    ByteArrayOutputStream outputStream = new ByteArrayOutputStream(256);
    bitmap.compress(CompressFormat.PNG, 100, outputStream);

    Intent intent = new Intent(Control.Intents.CONTROL_DISPLAY_DATA_INTENT);
    intent.putExtra(Control.Intents.EXTRA_X_OFFSET, x);
    intent.putExtra(Control.Intents.EXTRA_Y_OFFSET, y);
    intent.putExtra(Control.Intents.EXTRA_DATA, outputStream.toByteArray());
    sendToHostApp(intent);
}
 
开发者ID:fbarriga,项目名称:sony-smartband-logger,代码行数:22,代码来源:ControlExtension.java

示例2: startVibrator

import com.sonyericsson.extras.liveware.extension.util.Dbg; //导入方法依赖的package包/类
/**
 * Start repeating vibrator
 *
 * @param onDuration On duration in milliseconds.
 * @param offDuration Off duration in milliseconds.
 * @param repeats The number of repeats of the on/off pattern. Use
 *            {@link Control.Intents#REPEAT_UNTIL_STOP_INTENT} to repeat
 *            until explicitly stopped.
 */
protected void startVibrator(int onDuration, int offDuration, int repeats) {
    if (Dbg.DEBUG) {
        Dbg.v("startVibrator: onDuration: " + onDuration + ", offDuration: " + offDuration
                + ", repeats: " + repeats);
    }
    Intent intent = new Intent(Control.Intents.CONTROL_VIBRATE_INTENT);
    intent.putExtra(Control.Intents.EXTRA_ON_DURATION, onDuration);
    intent.putExtra(Control.Intents.EXTRA_OFF_DURATION, offDuration);
    intent.putExtra(Control.Intents.EXTRA_REPEATS, repeats);
    sendToHostApp(intent);
}
 
开发者ID:fbarriga,项目名称:sony-smartband-logger,代码行数:21,代码来源:ControlExtension.java

示例3: stopVibrator

import com.sonyericsson.extras.liveware.extension.util.Dbg; //导入方法依赖的package包/类
/**
 * Stop vibrator.
 */
protected void stopVibrator() {
    if (Dbg.DEBUG) {
        Dbg.v("Vibrator stop");
    }
    Intent intent = new Intent(Control.Intents.CONTROL_STOP_VIBRATE_INTENT);
    sendToHostApp(intent);
}
 
开发者ID:fbarriga,项目名称:sony-smartband-logger,代码行数:11,代码来源:ControlExtension.java

示例4: startLedPattern

import com.sonyericsson.extras.liveware.extension.util.Dbg; //导入方法依赖的package包/类
/**
 * Start a LED pattern.
 *
 * @param id Id of the LED to be controlled.
 * @param color Color you want the LED to blink with.
 * @param onDuration On duration in milliseconds.
 * @param offDuration Off duration in milliseconds.
 * @param repeats The number of repeats of the on/off pattern. Use
 *            {@link Control.Intents#REPEAT_UNTIL_STOP_INTENT} to repeat
 *            until explicitly stopped.
 *
 */
protected void startLedPattern(int id, int color, int onDuration, int offDuration, int repeats) {
    if (Dbg.DEBUG) {
        Dbg.v("startLedPattern: id: " + id + ", color: " + color + "onDuration: " + onDuration
            + ", offDuration: " + offDuration + ", repeats: " + repeats);
    }
    Intent intent = new Intent(Control.Intents.CONTROL_LED_INTENT);
    intent.putExtra(Control.Intents.EXTRA_LED_ID, id);
    intent.putExtra(Control.Intents.EXTRA_LED_COLOR, color);
    intent.putExtra(Control.Intents.EXTRA_ON_DURATION, onDuration);
    intent.putExtra(Control.Intents.EXTRA_OFF_DURATION, offDuration);
    intent.putExtra(Control.Intents.EXTRA_REPEATS, repeats);
    sendToHostApp(intent);
}
 
开发者ID:fbarriga,项目名称:sony-smartband-logger,代码行数:26,代码来源:ControlExtension.java

示例5: stopLedPattern

import com.sonyericsson.extras.liveware.extension.util.Dbg; //导入方法依赖的package包/类
/**
 * Turn led off
 *
 * @param id Id of the LED to be controlled.
 */
protected void stopLedPattern(int id) {
    if (Dbg.DEBUG) {
        Dbg.v("stopLedPattern: id: " + id);
    }
    Intent intent = new Intent(Control.Intents.CONTROL_LED_INTENT);
    intent.putExtra(Control.Intents.EXTRA_LED_ID, id);
    sendToHostApp(intent);
}
 
开发者ID:fbarriga,项目名称:sony-smartband-logger,代码行数:14,代码来源:ControlExtension.java

示例6: clearDisplay

import com.sonyericsson.extras.liveware.extension.util.Dbg; //导入方法依赖的package包/类
/**
 * Clear accessory diplay.
 */
protected void clearDisplay() {
    if (Dbg.DEBUG) {
        Dbg.v("Clear display");
    }
    Intent intent = new Intent(Control.Intents.CONTROL_CLEAR_DISPLAY_INTENT);
    sendToHostApp(intent);
}
 
开发者ID:fbarriga,项目名称:sony-smartband-logger,代码行数:11,代码来源:ControlExtension.java

示例7: startVibrator

import com.sonyericsson.extras.liveware.extension.util.Dbg; //导入方法依赖的package包/类
/**
 * Start repeating vibrator.
 *
 * @param onDuration On duration in milliseconds.
 * @param offDuration Off duration in milliseconds.
 * @param repeats The number of repeats of the on/off pattern. Use
 *            {@link Control.Intents#REPEAT_UNTIL_STOP_INTENT} to repeat
 *            until explicitly stopped.
 */
protected void startVibrator(int onDuration, int offDuration, int repeats) {
    if (Dbg.DEBUG) {
        Dbg.v("startVibrator: onDuration: " + onDuration + ", offDuration: " + offDuration
                + ", repeats: " + repeats);
    }
    Intent intent = new Intent(Control.Intents.CONTROL_VIBRATE_INTENT);
    intent.putExtra(Control.Intents.EXTRA_ON_DURATION, onDuration);
    intent.putExtra(Control.Intents.EXTRA_OFF_DURATION, offDuration);
    intent.putExtra(Control.Intents.EXTRA_REPEATS, repeats);
    sendToHostApp(intent);
}
 
开发者ID:asamm,项目名称:locus-addon-smartwatch2,代码行数:21,代码来源:ControlExtension.java

示例8: startLedPattern

import com.sonyericsson.extras.liveware.extension.util.Dbg; //导入方法依赖的package包/类
/**
 * Start a LED pattern.
 *
 * @param id Id of the LED to be controlled.
 * @param color Color you want the LED to blink with.
 * @param onDuration On duration in milliseconds.
 * @param offDuration Off duration in milliseconds.
 * @param repeats The number of repeats of the on/off pattern. Use
 *            {@link Control.Intents#REPEAT_UNTIL_STOP_INTENT} to repeat
 *            until explicitly stopped.
 */
protected void startLedPattern(int id, int color, int onDuration, int offDuration, int repeats) {
    if (Dbg.DEBUG) {
        Dbg.v("startLedPattern: id: " + id + ", color: " + color + "onDuration: " + onDuration
                + ", offDuration: " + offDuration + ", repeats: " + repeats);
    }
    Intent intent = new Intent(Control.Intents.CONTROL_LED_INTENT);
    intent.putExtra(Control.Intents.EXTRA_LED_ID, id);
    intent.putExtra(Control.Intents.EXTRA_LED_COLOR, color);
    intent.putExtra(Control.Intents.EXTRA_ON_DURATION, onDuration);
    intent.putExtra(Control.Intents.EXTRA_OFF_DURATION, offDuration);
    intent.putExtra(Control.Intents.EXTRA_REPEATS, repeats);
    sendToHostApp(intent);
}
 
开发者ID:asamm,项目名称:locus-addon-smartwatch2,代码行数:25,代码来源:ControlExtension.java

示例9: stopLedPattern

import com.sonyericsson.extras.liveware.extension.util.Dbg; //导入方法依赖的package包/类
/**
 * Turn led off.
 *
 * @param id Id of the LED to be controlled.
 */
protected void stopLedPattern(int id) {
    if (Dbg.DEBUG) {
        Dbg.v("stopLedPattern: id: " + id);
    }
    Intent intent = new Intent(Control.Intents.CONTROL_LED_INTENT);
    intent.putExtra(Control.Intents.EXTRA_LED_ID, id);
    sendToHostApp(intent);
}
 
开发者ID:asamm,项目名称:locus-addon-smartwatch2,代码行数:14,代码来源:ControlExtension.java

示例10: clearDisplay

import com.sonyericsson.extras.liveware.extension.util.Dbg; //导入方法依赖的package包/类
/**
 * Clear accessory display.
 */
protected void clearDisplay() {
    if (Dbg.DEBUG) {
        Dbg.v("Clear display");
    }
    Intent intent = new Intent(Control.Intents.CONTROL_CLEAR_DISPLAY_INTENT);
    sendToHostApp(intent);
}
 
开发者ID:asamm,项目名称:locus-addon-smartwatch2,代码行数:11,代码来源:ControlExtension.java

示例11: showBitmap

import com.sonyericsson.extras.liveware.extension.util.Dbg; //导入方法依赖的package包/类
/**
 * Show bitmap on accessory. Used when only updating part of the screen.
 *
 * @param bitmap The bitmap to show.
 * @param x      The x position.
 * @param y      The y position.
 */
protected void showBitmap(final Bitmap bitmap, final int x, final int y) {
    if (Dbg.DEBUG) {
        Dbg.v("showBitmap x: " + x + " y: " + y);
    }

    ByteArrayOutputStream outputStream = new ByteArrayOutputStream(256);
    bitmap.compress(CompressFormat.PNG, 100, outputStream);

    Intent intent = new Intent(Control.Intents.CONTROL_DISPLAY_DATA_INTENT);
    intent.putExtra(Control.Intents.EXTRA_X_OFFSET, x);
    intent.putExtra(Control.Intents.EXTRA_Y_OFFSET, y);
    intent.putExtra(Control.Intents.EXTRA_DATA, outputStream.toByteArray());
    sendToHostApp(intent);
}
 
开发者ID:sonyxperiadev,项目名称:DroneControl,代码行数:22,代码来源:ControlExtension.java

示例12: startVibrator

import com.sonyericsson.extras.liveware.extension.util.Dbg; //导入方法依赖的package包/类
/**
 * Start repeating vibrator.
 *
 * @param onDuration  On duration in milliseconds.
 * @param offDuration Off duration in milliseconds.
 * @param repeats     The number of repeats of the on/off pattern. Use
 *                    {@link Control.Intents#REPEAT_UNTIL_STOP_INTENT} to repeat
 *                    until explicitly stopped.
 */
protected void startVibrator(int onDuration, int offDuration, int repeats) {
    if (Dbg.DEBUG) {
        Dbg.v("startVibrator: onDuration: " + onDuration + ", offDuration: " + offDuration +
                ", repeats: " + repeats);
    }
    Intent intent = new Intent(Control.Intents.CONTROL_VIBRATE_INTENT);
    intent.putExtra(Control.Intents.EXTRA_ON_DURATION, onDuration);
    intent.putExtra(Control.Intents.EXTRA_OFF_DURATION, offDuration);
    intent.putExtra(Control.Intents.EXTRA_REPEATS, repeats);
    sendToHostApp(intent);
}
 
开发者ID:sonyxperiadev,项目名称:DroneControl,代码行数:21,代码来源:ControlExtension.java

示例13: startLedPattern

import com.sonyericsson.extras.liveware.extension.util.Dbg; //导入方法依赖的package包/类
/**
 * Start a LED pattern.
 *
 * @param id          Id of the LED to be controlled.
 * @param color       Color you want the LED to blink with.
 * @param onDuration  On duration in milliseconds.
 * @param offDuration Off duration in milliseconds.
 * @param repeats     The number of repeats of the on/off pattern. Use
 *                    {@link Control.Intents#REPEAT_UNTIL_STOP_INTENT} to repeat
 *                    until explicitly stopped.
 */
protected void startLedPattern(int id, int color, int onDuration, int offDuration,
        int repeats) {
    if (Dbg.DEBUG) {
        Dbg.v("startLedPattern: id: " + id + ", color: " + color + "onDuration: " +
                onDuration + ", offDuration: " + offDuration + ", repeats: " + repeats);
    }
    Intent intent = new Intent(Control.Intents.CONTROL_LED_INTENT);
    intent.putExtra(Control.Intents.EXTRA_LED_ID, id);
    intent.putExtra(Control.Intents.EXTRA_LED_COLOR, color);
    intent.putExtra(Control.Intents.EXTRA_ON_DURATION, onDuration);
    intent.putExtra(Control.Intents.EXTRA_OFF_DURATION, offDuration);
    intent.putExtra(Control.Intents.EXTRA_REPEATS, repeats);
    sendToHostApp(intent);
}
 
开发者ID:sonyxperiadev,项目名称:DroneControl,代码行数:26,代码来源:ControlExtension.java


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