• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java PerformAudioPassThruResponse类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.smartdevicelink.proxy.rpc.PerformAudioPassThruResponse的典型用法代码示例。如果您正苦于以下问题:Java PerformAudioPassThruResponse类的具体用法?Java PerformAudioPassThruResponse怎么用?Java PerformAudioPassThruResponse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

PerformAudioPassThruResponse类属于com.smartdevicelink.proxy.rpc包,在下文中一共展示了PerformAudioPassThruResponse类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: testJsonConstructor

点赞 3

import com.smartdevicelink.proxy.rpc.PerformAudioPassThruResponse; //导入依赖的package包/类
/**
   * Tests a valid JSON construction of this RPC message.
   */
  public void testJsonConstructor () {
  	JSONObject commandJson = JsonFileReader.readId(this.mContext, getCommandType(), getMessageType());
  	assertNotNull(Test.NOT_NULL, commandJson);
  	
try {
	Hashtable<String, Object> hash = JsonRPCMarshaller.deserializeJSONObject(commandJson);
	PerformAudioPassThruResponse cmd = new PerformAudioPassThruResponse(hash);
	
	JSONObject body = JsonUtils.readJsonObjectFromJsonObject(commandJson, getMessageType());
	assertNotNull(Test.NOT_NULL, body);
	
	// Test everything in the json body.
	assertEquals(Test.MATCH, JsonUtils.readStringFromJsonObject(body, RPCMessage.KEY_FUNCTION_NAME), cmd.getFunctionName());
	assertEquals(Test.MATCH, JsonUtils.readIntegerFromJsonObject(body, RPCMessage.KEY_CORRELATION_ID), cmd.getCorrelationID());
} catch (JSONException e) {
	e.printStackTrace();
}    	
  }
 

开发者ID:smartdevicelink,
项目名称:sdl_android,
代码行数:22,
代码来源:PerformAudioPassThruResponseTest.java

示例2: testRpcValues

点赞 2

import com.smartdevicelink.proxy.rpc.PerformAudioPassThruResponse; //导入依赖的package包/类
/**
* Tests the expected values of the RPC message.
*/
  public void testRpcValues () {   
  	// Invalid/Null Tests
  	PerformAudioPassThruResponse msg = new PerformAudioPassThruResponse();
      assertNotNull(Test.NOT_NULL, msg);
      testNullBase(msg);
  }
 

开发者ID:smartdevicelink,
项目名称:sdl_android,
代码行数:10,
代码来源:PerformAudioPassThruResponseTest.java

示例3: onPerformAudioPassThruResponse

点赞 2

import com.smartdevicelink.proxy.rpc.PerformAudioPassThruResponse; //导入依赖的package包/类
@Override
public void onPerformAudioPassThruResponse(PerformAudioPassThruResponse response) {
    Log.i(TAG, "PerformAudioPassThru response from SDL: " + response.getResultCode().name() + " Info: " + response.getInfo());

}
 

开发者ID:livio,
项目名称:sdl_video_streaming_android_sample,
代码行数:6,
代码来源:SdlService.java

示例4: onPerformAudioPassThruResponse

点赞 2

import com.smartdevicelink.proxy.rpc.PerformAudioPassThruResponse; //导入依赖的package包/类
@Override
public void onPerformAudioPassThruResponse(PerformAudioPassThruResponse response) {
	// TODO Auto-generated method stub

}
 

开发者ID:smartdevicelink,
项目名称:sdl_mobileweather_tutorial_android,
代码行数:6,
代码来源:SmartDeviceLinkService.java

示例5: onPerformAudioPassThruResponse

点赞 2

import com.smartdevicelink.proxy.rpc.PerformAudioPassThruResponse; //导入依赖的package包/类
@Override
public void onPerformAudioPassThruResponse(PerformAudioPassThruResponse response) {
       Log.i(TAG, "PerformAudioPassThru response from SDL: " + response.getResultCode().name() + " Info: " + response.getInfo());
}
 

开发者ID:smartdevicelink,
项目名称:hello_sdl_android,
代码行数:5,
代码来源:SdlService.java

示例6: createMessage

点赞 2

import com.smartdevicelink.proxy.rpc.PerformAudioPassThruResponse; //导入依赖的package包/类
@Override
protected RPCMessage createMessage(){
    return new PerformAudioPassThruResponse();
}
 

开发者ID:smartdevicelink,
项目名称:sdl_android,
代码行数:5,
代码来源:PerformAudioPassThruResponseTest.java

示例7: onPerformAudioPassThruResponse

点赞 1

import com.smartdevicelink.proxy.rpc.PerformAudioPassThruResponse; //导入依赖的package包/类
@Override
public void onPerformAudioPassThruResponse(PerformAudioPassThruResponse response) {

}
 

开发者ID:smartdevicelink,
项目名称:sdl_android,
代码行数:5,
代码来源:SdlProxyBaseTests.java

示例8: onPerformAudioPassThruResponse

点赞 1

import com.smartdevicelink.proxy.rpc.PerformAudioPassThruResponse; //导入依赖的package包/类
public void onPerformAudioPassThruResponse(PerformAudioPassThruResponse response); 

开发者ID:smartdevicelink,
项目名称:sdl_android,
代码行数:2,
代码来源:IProxyListenerBase.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)