/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 | 54 SmsCbMessage msg = createFromPdu(pdu); in doTestGeographicalScopeValue() local 56 assertEquals("Unexpected geographical scope decoded", expectedGs, msg in doTestGeographicalScopeValue() 62 SmsCbMessage msg = createFromPdu(null); in testCreateNullPdu() local 63 assertNull("createFromPdu(byte[] with null pdu should return null", msg); in testCreateNullPdu() 69 SmsCbMessage msg = createFromPdu(pdu); in testCreateTooShortPdu() local 71 assertNull("createFromPdu(byte[] with too short pdu should return null", msg); in testCreateTooShortPdu() 124 SmsCbMessage msg = createFromPdu(pdu); in testGetGeographicalScopeUmts() local 127 SmsCbMessage.GEOGRAPHICAL_SCOPE_CELL_WIDE, msg.getGeographicalScope()); in testGetGeographicalScopeUmts() 147 SmsCbMessage msg = createFromPdu(pdu); in testGetMessageBody7Bit() local 151 msg.getMessageBody()); in testGetMessageBody7Bit() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | MessageQueueTest.java | 39 public void handleMessage(Message msg) { in go() 40 BaseTestHandler.this.handleMessage(msg); in go() 45 public void handleMessage(Message msg) { in handleMessage() argument 46 if (!msg.isInUse()) { in handleMessage() 48 "msg.isInuse is false, should always be true, #" + msg.what)); in handleMessage() 51 if (msg.what != mCount) { in handleMessage() 54 + ", received #" + msg.what)); in handleMessage() 61 "Message received after done, #" + msg.what)); in handleMessage() 98 public void handleMessage(Message msg) { in testAtFrontOfQueue() 99 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 | 47 MessageThreadUtil.SyncQueueItem msg = mQueue.next(); in allArguments() local 48 assertThat(msg.what, is(0)); in allArguments() 49 assertThat(msg.arg1, is(1)); in allArguments() 50 assertThat(msg.arg2, is(2)); in allArguments() 51 assertThat(msg.arg3, is(3)); in allArguments() 52 assertThat(msg.arg4, is(4)); in allArguments() 53 assertThat(msg.arg5, is(5)); in allArguments() 54 assertThat((String)msg.data, sameInstance(data)); in allArguments() 63 MessageThreadUtil.SyncQueueItem msg = mQueue.next(); in sendInOrder() local 64 assertThat(msg.what, is(1)); in sendInOrder() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareStateManager.java | 269 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in connect() local 270 msg.arg1 = COMMAND_TYPE_CONNECT; in connect() 271 msg.arg2 = clientId; in connect() 272 msg.obj = callback; in connect() 273 msg.getData().putParcelable(MESSAGE_BUNDLE_KEY_CONFIG, configRequest); in connect() 274 msg.getData().putInt(MESSAGE_BUNDLE_KEY_UID, uid); in connect() 275 msg.getData().putInt(MESSAGE_BUNDLE_KEY_PID, pid); in connect() 276 msg.getData().putString(MESSAGE_BUNDLE_KEY_CALLING_PACKAGE, callingPackage); in connect() 277 msg.getData().putBoolean(MESSAGE_BUNDLE_KEY_NOTIFY_IDENTITY_CHANGE, in connect() 279 mSm.sendMessage(msg); in connect() [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/base/services/core/java/com/android/server/am/ |
D | TaskChangeNotificationController.java | 148 public void handleMessage(Message msg) { in handleMessage() argument 149 switch (msg.what) { in handleMessage() 157 forAllRemoteListeners(mNotifyTaskStackChanged, msg); in handleMessage() 160 forAllRemoteListeners(mNotifyTaskCreated, msg); in handleMessage() 163 forAllRemoteListeners(mNotifyTaskRemoved, msg); in handleMessage() 166 forAllRemoteListeners(mNotifyTaskMovedToFront, msg); in handleMessage() 169 forAllRemoteListeners(mNotifyTaskDescriptionChanged, msg); in handleMessage() 172 forAllRemoteListeners(mNotifyActivityRequestedOrientationChanged, msg); in handleMessage() 175 forAllRemoteListeners(mNotifyTaskRemovalStarted, msg); in handleMessage() 178 forAllRemoteListeners(mNotifyActivityPinned, msg); in handleMessage() [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 | 94 TerribleFailure(String msg, Throwable cause) { super(msg, cause); } in TerribleFailure() argument 121 public static int v(String tag, String msg) { in v() argument 122 return println_native(LOG_ID_MAIN, VERBOSE, tag, msg); in v() 132 public static int v(String tag, String msg, Throwable tr) { in v() argument 133 return printlns(LOG_ID_MAIN, VERBOSE, tag, msg, tr); in v() 142 public static int d(String tag, String msg) { in d() argument 143 return println_native(LOG_ID_MAIN, DEBUG, tag, msg); in d() 153 public static int d(String tag, String msg, Throwable tr) { in d() argument 154 return printlns(LOG_ID_MAIN, DEBUG, tag, msg, tr); in d() 163 public static int i(String tag, String msg) { in i() argument [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/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/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDecoderBase.cpp | 51 const sp<AMessage> &msg, sp<AMessage> *response) { in PostAndAwaitResponse() argument 52 status_t err = msg->postAndAwaitResponse(response); in PostAndAwaitResponse() 66 sp<AMessage> msg = new AMessage(kWhatConfigure, this); in configure() local 67 msg->setMessage("format", format); in configure() 68 msg->post(); in configure() 81 sp<AMessage> msg = new AMessage(kWhatSetParameters, this); in setParameters() local 82 msg->setMessage("params", params); in setParameters() 83 msg->post(); in setParameters() 87 sp<AMessage> msg = new AMessage(kWhatSetRenderer, this); in setRenderer() local 88 msg->setObject("renderer", renderer); in setRenderer() [all …]
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 151 status_t InputChannel::sendMessage(const InputMessage* msg) { in sendMessage() argument 152 size_t msgLength = msg->size(); in sendMessage() 155 nWrite = ::send(mFd, msg, msgLength, MSG_DONTWAIT | MSG_NOSIGNAL); in sendMessage() 162 msg->header.type, error); in sendMessage() 176 mName.string(), msg->header.type); in sendMessage() 182 ALOGD("channel '%s' ~ sent message of type %d", mName.string(), msg->header.type); in sendMessage() 187 status_t InputChannel::receiveMessage(InputMessage* msg) { in receiveMessage() argument 190 nRead = ::recv(mFd, msg, sizeof(InputMessage), MSG_DONTWAIT); in receiveMessage() 214 if (!msg->isValid(nRead)) { in receiveMessage() 222 ALOGD("channel '%s' ~ received message of type %d", mName.string(), msg->header.type); in receiveMessage() [all …]
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | WifiAwareManager.java | 539 public void handleMessage(Message msg) { in WifiAwareEventCallbackProxy() 541 Log.d(TAG, "WifiAwareEventCallbackProxy: What=" + msg.what + ", msg=" in WifiAwareEventCallbackProxy() 542 + msg); in WifiAwareEventCallbackProxy() 551 switch (msg.what) { in WifiAwareEventCallbackProxy() 554 new WifiAwareSession(mgr, mBinder, msg.arg1)); in WifiAwareEventCallbackProxy() 564 identityChangedListener.onIdentityChanged((byte[]) msg.obj); in WifiAwareEventCallbackProxy() 568 RttManager.RttListener listener = getAndRemoveRangingListener(msg.arg1); in WifiAwareEventCallbackProxy() 570 Log.e(TAG, "CALLBACK_RANGING_SUCCESS rangingId=" + msg.arg1 in WifiAwareEventCallbackProxy() 574 ((RttManager.ParcelableRttResults) msg.obj).mResults); in WifiAwareEventCallbackProxy() 579 RttManager.RttListener listener = getAndRemoveRangingListener(msg.arg1); in WifiAwareEventCallbackProxy() [all …]
|
/frameworks/base/tests/utils/testutils/java/android/os/test/ |
D | TestLooper.java | 98 Message msg = getMessageLinkedList(); in moveTimeForward() local 99 while (msg != null) { in moveTimeForward() 100 long updatedWhen = msg.getWhen() - milliSeconds; in moveTimeForward() 104 MESSAGE_WHEN_FIELD.set(msg, updatedWhen); in moveTimeForward() 105 msg = (Message) MESSAGE_NEXT_FIELD.get(msg); in moveTimeForward() 117 Message msg = getMessageLinkedList(); in messageQueueNext() local 118 if (msg != null && msg.getTarget() == null) { in messageQueueNext() 122 prevMsg = msg; in messageQueueNext() 123 msg = (Message) MESSAGE_NEXT_FIELD.get(msg); in messageQueueNext() 124 } while (msg != null && !msg.isAsynchronous()); in messageQueueNext() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
D | MessageThreadUtil.java | 54 private void sendMessage(SyncQueueItem msg) { in getMainThreadProxy() argument 55 mQueue.sendMessage(msg); in getMainThreadProxy() 62 SyncQueueItem msg = mQueue.next(); in getMainThreadProxy() 63 while (msg != null) { in getMainThreadProxy() 64 switch (msg.what) { in getMainThreadProxy() 66 callback.updateItemCount(msg.arg1, msg.arg2); in getMainThreadProxy() 70 callback.addTile(msg.arg1, (TileList.Tile<T>) msg.data); in getMainThreadProxy() 73 callback.removeTile(msg.arg1, msg.arg2); in getMainThreadProxy() 76 Log.e("ThreadUtil", "Unsupported message, what=" + msg.what); in getMainThreadProxy() 78 msg = mQueue.next(); in getMainThreadProxy() [all …]
|
/frameworks/av/media/libstagefright/ |
D | MediaCodec.cpp | 521 const sp<AMessage> &msg, sp<AMessage> *response) { in PostAndAwaitResponse() argument 522 status_t err = msg->postAndAwaitResponse(response); in PostAndAwaitResponse() 628 sp<AMessage> msg = new AMessage(kWhatInit, this); in init() local 629 msg->setString("name", name); in init() 630 msg->setInt32("nameIsType", nameIsType); in init() 633 msg->setInt32("encoder", encoder); in init() 664 err = PostAndAwaitResponse(msg, &response); in init() 673 sp<AMessage> msg = new AMessage(kWhatSetCallback, this); in setCallback() local 674 msg->setMessage("callback", callback); in setCallback() 677 return PostAndAwaitResponse(msg, &response); in setCallback() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | Rlog.java | 41 public static int v(String tag, String msg) { in v() argument 42 return Log.println_native(Log.LOG_ID_RADIO, Log.VERBOSE, tag, msg); in v() 45 public static int v(String tag, String msg, Throwable tr) { in v() argument 47 msg + '\n' + Log.getStackTraceString(tr)); in v() 50 public static int d(String tag, String msg) { in d() argument 51 return Log.println_native(Log.LOG_ID_RADIO, Log.DEBUG, tag, msg); in d() 54 public static int d(String tag, String msg, Throwable tr) { in d() argument 56 msg + '\n' + Log.getStackTraceString(tr)); in d() 59 public static int i(String tag, String msg) { in i() argument 60 return Log.println_native(Log.LOG_ID_RADIO, Log.INFO, tag, msg); in i() [all …]
|