/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaAudioEffectTest.java | 153 String msg = "test1_0ConstructorFromType()"; in test1_0ConstructorFromType() local 155 assertTrue(msg+": no effects found", (desc.length != 0)); in test1_0ConstructorFromType() 170 assertNotNull(msg + ": could not create AudioEffect", effect); in test1_0ConstructorFromType() 172 assertTrue(msg +": invalid effect ID", (effect.getId() != 0)); in test1_0ConstructorFromType() 174 msg = msg.concat(": AudioEffect not initialized"); in test1_0ConstructorFromType() 183 msg = msg.concat(": Effect not found: "+desc[0].name); in test1_0ConstructorFromType() 186 msg = msg.concat(": Effect library not loaded"); in test1_0ConstructorFromType() 189 assertTrue(msg, result); in test1_0ConstructorFromType() 196 String msg = "test1_1ConstructorFromUuid()"; in test1_1ConstructorFromUuid() local 198 assertTrue(msg+"no effects found", (desc.length != 0)); in test1_1ConstructorFromUuid() [all …]
|
D | MediaEqualizerTest.java | 96 String msg = "test1_0ConstructorAndRelease()"; in test0_0ConstructorAndRelease() local 100 assertNotNull(msg + ": could not create Equalizer", eq); in test0_0ConstructorAndRelease() 102 assertTrue(msg +": invalid effect ID", (eq.getId() != 0)); in test0_0ConstructorAndRelease() 104 msg = msg.concat(": Equalizer not initialized"); in test0_0ConstructorAndRelease() 108 msg = msg.concat(": Equalizer not found"); in test0_0ConstructorAndRelease() 110 msg = msg.concat(": Effect library not loaded"); in test0_0ConstructorAndRelease() 116 assertTrue(msg, result); in test0_0ConstructorAndRelease() 128 String msg = "test1_0BandLevel()"; in test1_0BandLevel() local 132 assertTrue(msg + ": not enough bands", numBands >= MIN_NUMBER_OF_BANDS); in test1_0BandLevel() 135 assertTrue(msg + ": min level too high", levelRange[0] <= MIN_BAND_LEVEL); in test1_0BandLevel() [all …]
|
D | MediaEnvReverbTest.java | 105 String msg = "test1_0ConstructorAndRelease()"; in test0_0ConstructorAndRelease() local 109 assertNotNull(msg + ": could not create EnvironmentalReverb", reverb); in test0_0ConstructorAndRelease() 111 assertTrue(msg +": invalid effect ID", (reverb.getId() != 0)); in test0_0ConstructorAndRelease() 113 msg = msg.concat(": EnvironmentalReverb not initialized"); in test0_0ConstructorAndRelease() 117 msg = msg.concat(": EnvironmentalReverb not found"); in test0_0ConstructorAndRelease() 119 msg = msg.concat(": Effect library not loaded"); in test0_0ConstructorAndRelease() 125 assertTrue(msg, result); in test0_0ConstructorAndRelease() 136 String msg = "test1_0Room()"; in test1_0Room() local 141 assertTrue(msg +": got incorrect room level", in test1_0Room() 147 assertTrue(msg +": got incorrect room HF level", in test1_0Room() [all …]
|
D | MediaVisualizerTest.java | 105 String msg = "test1_0ConstructorAndRelease()"; in test0_0ConstructorAndRelease() local 109 assertNotNull(msg + ": could not create Visualizer", visualizer); in test0_0ConstructorAndRelease() 112 msg = msg.concat(": Visualizer not found"); in test0_0ConstructorAndRelease() 114 msg = msg.concat(": Effect library not loaded"); in test0_0ConstructorAndRelease() 120 assertTrue(msg, result); in test0_0ConstructorAndRelease() 132 String msg = "test1_0CaptureRates()"; in test1_0CaptureRates() local 136 assertTrue(msg +": insufficient max capture rate", in test1_0CaptureRates() 139 assertTrue(msg +": invalid sampling rate", in test1_0CaptureRates() 143 msg = msg.concat(": Bad parameter value"); in test1_0CaptureRates() 144 loge(msg, "Bad parameter value"); in test1_0CaptureRates() [all …]
|
D | MediaPresetReverbTest.java | 99 String msg = "test1_0ConstructorAndRelease()"; in test0_0ConstructorAndRelease() local 103 assertNotNull(msg + ": could not create PresetReverb", reverb); in test0_0ConstructorAndRelease() 105 assertTrue(msg +": invalid effect ID", (reverb.getId() != 0)); in test0_0ConstructorAndRelease() 107 msg = msg.concat(": PresetReverb not initialized"); in test0_0ConstructorAndRelease() 111 msg = msg.concat(": PresetReverb not found"); in test0_0ConstructorAndRelease() 113 msg = msg.concat(": Effect library not loaded"); in test0_0ConstructorAndRelease() 119 assertTrue(msg, result); in test0_0ConstructorAndRelease() 130 String msg = "test1_0Preset()"; in test1_0Preset() local 135 assertEquals(msg +": got incorrect preset", in test1_0Preset() 140 msg = msg.concat(": Bad parameter value"); in test1_0Preset() [all …]
|
D | MediaBassBoostTest.java | 92 String msg = "test1_0ConstructorAndRelease()"; in test0_0ConstructorAndRelease() local 96 assertNotNull(msg + ": could not create BassBoost", bb); in test0_0ConstructorAndRelease() 98 assertTrue(msg +": invalid effect ID", (bb.getId() != 0)); in test0_0ConstructorAndRelease() 100 msg = msg.concat(": BassBoost not initialized"); in test0_0ConstructorAndRelease() 104 msg = msg.concat(": BassBoost not found"); in test0_0ConstructorAndRelease() 106 msg = msg.concat(": Effect library not loaded"); in test0_0ConstructorAndRelease() 112 assertTrue(msg, result); in test0_0ConstructorAndRelease() 123 String msg = "test1_0Strength()"; in test1_0Strength() local 130 assertTrue(msg +": got incorrect strength", in test1_0Strength() 135 assertTrue(msg +": got incorrect strength", strength >= 0 && strength <= 1000); in test1_0Strength() [all …]
|
D | MediaVirtualizerTest.java | 92 String msg = "test1_0ConstructorAndRelease()"; in test0_0ConstructorAndRelease() local 96 assertNotNull(msg + ": could not create Virtualizer", virtualizer); in test0_0ConstructorAndRelease() 98 assertTrue(msg +": invalid effect ID", (virtualizer.getId() != 0)); in test0_0ConstructorAndRelease() 100 msg = msg.concat(": Virtualizer not initialized"); in test0_0ConstructorAndRelease() 104 msg = msg.concat(": Virtualizer not found"); in test0_0ConstructorAndRelease() 106 msg = msg.concat(": Effect library not loaded"); in test0_0ConstructorAndRelease() 112 assertTrue(msg, result); in test0_0ConstructorAndRelease() 124 String msg = "test1_0Strength()"; in test1_0Strength() local 131 assertTrue(msg +": got incorrect strength", in test1_0Strength() 136 assertTrue(msg +": got incorrect strength", strength >= 0 && strength <= 1000); in test1_0Strength() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GsmSmsCbTest.java | 51 SmsCbMessage msg = createFromPdu(pdu); in doTestGeographicalScopeValue() local 53 assertEquals("Unexpected geographical scope decoded", expectedGs, msg in doTestGeographicalScopeValue() 58 SmsCbMessage msg = createFromPdu(null); in testCreateNullPdu() local 59 assertNull("createFromPdu(byte[] with null pdu should return null", msg); in testCreateNullPdu() 64 SmsCbMessage msg = createFromPdu(pdu); in testCreateTooShortPdu() local 66 assertNull("createFromPdu(byte[] with too short pdu should return null", msg); in testCreateTooShortPdu() 117 SmsCbMessage msg = createFromPdu(pdu); in testGetGeographicalScopeUmts() local 120 SmsCbMessage.GEOGRAPHICAL_SCOPE_CELL_WIDE, msg.getGeographicalScope()); in testGetGeographicalScopeUmts() 139 SmsCbMessage msg = createFromPdu(pdu); in testGetMessageBody7Bit() local 143 msg.getMessageBody()); in testGetMessageBody7Bit() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | MessageQueueTest.java | 37 public void handleMessage(Message msg) { in go() 38 BaseTestHandler.this.handleMessage(msg); in go() 43 public void handleMessage(Message msg) { in handleMessage() argument 44 if (!msg.isInUse()) { in handleMessage() 46 "msg.isInuse is false, should always be true, #" + msg.what)); in handleMessage() 49 if (msg.what != mCount) { in handleMessage() 52 + ", received #" + msg.what)); in handleMessage() 59 "Message received after done, #" + msg.what)); in handleMessage() 96 public void handleMessage(Message msg) { in testAtFrontOfQueue() 97 super.handleMessage(msg); in testAtFrontOfQueue() [all …]
|
D | BroadcasterTest.java | 46 Message msg = new Message(); in test1() 47 msg.what = MESSAGE_A; in test1() 49 b.broadcast(msg); in test1() 52 public void handleMessage(Message msg) { in test1() 53 if (msg.what == MESSAGE_B) { in test1() 82 Message msg = new Message(); in go() local 83 msg.what = MESSAGE_A; in go() 85 b.broadcast(msg); in go() 88 public void handleMessage(Message msg) { in handleMessage() argument 89 int index = msg.what - MESSAGE_B; in handleMessage() [all …]
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
D | MessageQueueTest.java | 45 MessageThreadUtil.SyncQueueItem msg = mQueue.next(); in testAllArguments() local 46 assertThat(msg.what, is(0)); in testAllArguments() 47 assertThat(msg.arg1, is(1)); in testAllArguments() 48 assertThat(msg.arg2, is(2)); in testAllArguments() 49 assertThat(msg.arg3, is(3)); in testAllArguments() 50 assertThat(msg.arg4, is(4)); in testAllArguments() 51 assertThat(msg.arg5, is(5)); in testAllArguments() 52 assertThat((String)msg.data, sameInstance(data)); in testAllArguments() 61 MessageThreadUtil.SyncQueueItem msg = mQueue.next(); in testSendInOrder() local 62 assertThat(msg.what, is(1)); in testSendInOrder() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | AsyncChannel.java | 458 Message msg = Message.obtain(); in disconnect() local 459 msg.what = CMD_CHANNEL_DISCONNECTED; in disconnect() 460 msg.replyTo = mSrcMessenger; in disconnect() 461 mDstMessenger.send(msg); in disconnect() 479 public void sendMessage(Message msg) { in sendMessage() argument 480 msg.replyTo = mSrcMessenger; in sendMessage() 482 mDstMessenger.send(msg); in sendMessage() 494 Message msg = Message.obtain(); in sendMessage() local 495 msg.what = what; in sendMessage() 496 sendMessage(msg); in sendMessage() [all …]
|
/frameworks/wilhelm/src/android/ |
D | android_GenericPlayer.cpp | 139 sp<AMessage> msg = new AMessage(kWhatPrepare, this); in prepare() local 140 msg->post(); in prepare() 147 sp<AMessage> msg = new AMessage(kWhatPlay, this); in play() local 148 msg->post(); in play() 154 sp<AMessage> msg = new AMessage(kWhatPause, this); in pause() local 155 msg->post(); in pause() 174 sp<AMessage> msg = new AMessage(kWhatSeek, this); in seek() local 175 msg->setInt64(WHATPARAM_SEEK_SEEKTIME_MS, timeMsec); in seek() 176 msg->post(); in seek() 182 sp<AMessage> msg = new AMessage(kWhatLoop, this); in loop() local [all …]
|
/frameworks/base/core/java/android/util/ |
D | Slog.java | 27 public static int v(String tag, String msg) { in v() argument 28 return Log.println_native(Log.LOG_ID_SYSTEM, Log.VERBOSE, tag, msg); in v() 31 public static int v(String tag, String msg, Throwable tr) { in v() argument 33 msg + '\n' + Log.getStackTraceString(tr)); in v() 36 public static int d(String tag, String msg) { in d() argument 37 return Log.println_native(Log.LOG_ID_SYSTEM, Log.DEBUG, tag, msg); in d() 40 public static int d(String tag, String msg, Throwable tr) { in d() argument 42 msg + '\n' + Log.getStackTraceString(tr)); in d() 45 public static int i(String tag, String msg) { in i() argument 46 return Log.println_native(Log.LOG_ID_SYSTEM, Log.INFO, tag, msg); in i() [all …]
|
D | Log.java | 90 TerribleFailure(String msg, Throwable cause) { super(msg, cause); } in TerribleFailure() argument 117 public static int v(String tag, String msg) { in v() argument 118 return println_native(LOG_ID_MAIN, VERBOSE, tag, msg); in v() 128 public static int v(String tag, String msg, Throwable tr) { in v() argument 129 return println_native(LOG_ID_MAIN, VERBOSE, tag, msg + '\n' + getStackTraceString(tr)); in v() 138 public static int d(String tag, String msg) { in d() argument 139 return println_native(LOG_ID_MAIN, DEBUG, tag, msg); in d() 149 public static int d(String tag, String msg, Throwable tr) { in d() argument 150 return println_native(LOG_ID_MAIN, DEBUG, tag, msg + '\n' + getStackTraceString(tr)); in d() 159 public static int i(String tag, String msg) { in i() argument [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDecoderBase.cpp | 50 const sp<AMessage> &msg, sp<AMessage> *response) { in PostAndAwaitResponse() argument 51 status_t err = msg->postAndAwaitResponse(response); in PostAndAwaitResponse() 65 sp<AMessage> msg = new AMessage(kWhatConfigure, this); in configure() local 66 msg->setMessage("format", format); in configure() 67 msg->post(); in configure() 75 sp<AMessage> msg = new AMessage(kWhatSetParameters, this); in setParameters() local 76 msg->setMessage("params", params); in setParameters() 77 msg->post(); in setParameters() 81 sp<AMessage> msg = new AMessage(kWhatSetRenderer, this); in setRenderer() local 82 msg->setObject("renderer", renderer); in setRenderer() [all …]
|
/frameworks/multidex/library/test/src/android/util/ |
D | Log.java | 67 public static int v(String tag, String msg) { in v() argument 68 return println(LOG_ID_MAIN, VERBOSE, tag, msg); in v() 78 public static int v(String tag, String msg, Throwable tr) { in v() argument 79 return println(LOG_ID_MAIN, VERBOSE, tag, msg + '\n' + getStackTraceString(tr)); in v() 88 public static int d(String tag, String msg) { in d() argument 89 return println(LOG_ID_MAIN, DEBUG, tag, msg); in d() 99 public static int d(String tag, String msg, Throwable tr) { in d() argument 100 return println(LOG_ID_MAIN, DEBUG, tag, msg + '\n' + getStackTraceString(tr)); in d() 109 public static int i(String tag, String msg) { in i() argument 110 return println(LOG_ID_MAIN, INFO, tag, msg); in i() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | Rlog.java | 31 public static int v(String tag, String msg) { in v() argument 32 return Log.println_native(Log.LOG_ID_RADIO, Log.VERBOSE, tag, msg); in v() 35 public static int v(String tag, String msg, Throwable tr) { in v() argument 37 msg + '\n' + Log.getStackTraceString(tr)); in v() 40 public static int d(String tag, String msg) { in d() argument 41 return Log.println_native(Log.LOG_ID_RADIO, Log.DEBUG, tag, msg); in d() 44 public static int d(String tag, String msg, Throwable tr) { in d() argument 46 msg + '\n' + Log.getStackTraceString(tr)); in d() 49 public static int i(String tag, String msg) { in i() argument 50 return Log.println_native(Log.LOG_ID_RADIO, Log.INFO, tag, msg); in i() [all …]
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 152 status_t InputChannel::sendMessage(const InputMessage* msg) { in sendMessage() argument 153 size_t msgLength = msg->size(); in sendMessage() 156 nWrite = ::send(mFd, msg, msgLength, MSG_DONTWAIT | MSG_NOSIGNAL); in sendMessage() 163 msg->header.type, error); in sendMessage() 177 mName.string(), msg->header.type); in sendMessage() 183 ALOGD("channel '%s' ~ sent message of type %d", mName.string(), msg->header.type); in sendMessage() 188 status_t InputChannel::receiveMessage(InputMessage* msg) { in receiveMessage() argument 191 nRead = ::recv(mFd, msg, sizeof(InputMessage), MSG_DONTWAIT); in receiveMessage() 215 if (!msg->isValid(nRead)) { in receiveMessage() 223 ALOGD("channel '%s' ~ received message of type %d", mName.string(), msg->header.type); in receiveMessage() [all …]
|
/frameworks/av/media/libstagefright/ |
D | MediaCodec.cpp | 276 const sp<AMessage> &msg, sp<AMessage> *response) { in PostAndAwaitResponse() argument 277 status_t err = msg->postAndAwaitResponse(response); in PostAndAwaitResponse() 369 sp<AMessage> msg = new AMessage(kWhatInit, this); in init() local 370 msg->setString("name", name); in init() 371 msg->setInt32("nameIsType", nameIsType); in init() 374 msg->setInt32("encoder", encoder); in init() 391 err = PostAndAwaitResponse(msg, &response); in init() 400 sp<AMessage> msg = new AMessage(kWhatSetCallback, this); in setCallback() local 401 msg->setMessage("callback", callback); in setCallback() 404 return PostAndAwaitResponse(msg, &response); in setCallback() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | RttService.java | 51 public void handleMessage(Message msg) { in handleMessage() argument 53 if (DBG) Log.d(TAG, "ClientHandler got" + msg); in handleMessage() 55 switch (msg.what) { in handleMessage() 58 if (msg.arg1 == AsyncChannel.STATUS_SUCCESSFUL) { in handleMessage() 59 AsyncChannel c = (AsyncChannel) msg.obj; in handleMessage() 61 msg.replyTo); in handleMessage() 62 ClientInfo cInfo = new ClientInfo(c, msg.replyTo); in handleMessage() 63 mClients.put(msg.replyTo, cInfo); in handleMessage() 65 Slog.e(TAG, "Client connection failure, error=" + msg.arg1); in handleMessage() 69 if (msg.arg1 == AsyncChannel.STATUS_SEND_UNSUCCESSFUL) { in handleMessage() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
D | MessageThreadUtil.java | 52 private void sendMessage(SyncQueueItem msg) { in getMainThreadProxy() argument 53 mQueue.sendMessage(msg); in getMainThreadProxy() 60 SyncQueueItem msg = mQueue.next(); in getMainThreadProxy() 61 while (msg != null) { in getMainThreadProxy() 62 switch (msg.what) { in getMainThreadProxy() 64 callback.updateItemCount(msg.arg1, msg.arg2); in getMainThreadProxy() 68 callback.addTile(msg.arg1, (TileList.Tile<T>) msg.data); in getMainThreadProxy() 71 callback.removeTile(msg.arg1, msg.arg2); in getMainThreadProxy() 74 Log.e("ThreadUtil", "Unsupported message, what=" + msg.what); in getMainThreadProxy() 76 msg = mQueue.next(); in getMainThreadProxy() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcSwitchStateMachine.java | 99 public boolean processMessage(Message msg) { in processMessage() argument 102 switch (msg.what) { in processMessage() 104 RequestInfo apnRequest = (RequestInfo)msg.obj; in processMessage() 141 Integer.toHexString(msg.what)); in processMessage() 152 public boolean processMessage(Message msg) { in processMessage() argument 156 Integer.toHexString(msg.what)); in processMessage() 157 deferMessage(msg); in processMessage() 162 switch (msg.what) { in processMessage() 180 log("EmergencyState: deferMessage msg.what=0x" + Integer.toHexString(msg.what)); in processMessage() 181 deferMessage(msg); in processMessage() [all …]
|
/frameworks/native/cmds/servicemanager/ |
D | bctest.c | 15 struct binder_io msg, reply; in svcmgr_lookup() local 17 bio_init(&msg, iodata, sizeof(iodata), 4); in svcmgr_lookup() 18 bio_put_uint32(&msg, 0); // strict mode header in svcmgr_lookup() 19 bio_put_string16_x(&msg, SVC_MGR_NAME); in svcmgr_lookup() 20 bio_put_string16_x(&msg, name); in svcmgr_lookup() 22 if (binder_call(bs, &msg, &reply, target, SVC_MGR_CHECK_SERVICE)) in svcmgr_lookup() 30 binder_done(bs, &msg, &reply); in svcmgr_lookup() 39 struct binder_io msg, reply; in svcmgr_publish() local 41 bio_init(&msg, iodata, sizeof(iodata), 4); in svcmgr_publish() 42 bio_put_uint32(&msg, 0); // strict mode header in svcmgr_publish() [all …]
|
/frameworks/base/core/java/android/content/ |
D | AsyncQueryHandler.java | 66 public void handleMessage(Message msg) { in handleMessage() argument 70 WorkerArgs args = (WorkerArgs) msg.obj; in handleMessage() 72 int token = msg.what; in handleMessage() 73 int event = msg.arg1; in handleMessage() 113 reply.arg1 = msg.arg1; in handleMessage() 116 Log.d(TAG, "WorkerHandler.handleMsg: msg.arg1=" + msg.arg1 in handleMessage() 168 Message msg = mWorkerThreadHandler.obtainMessage(token); in startQuery() local 169 msg.arg1 = EVENT_ARG_QUERY; in startQuery() 179 msg.obj = args; in startQuery() 181 mWorkerThreadHandler.sendMessage(msg); in startQuery() [all …]
|