/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 | 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 …]
|
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 …]
|
/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/src/androidTest/java/androidx/recyclerview/widget/ |
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/base/core/java/com/android/internal/util/ |
D | AsyncChannel.java | 457 Message msg = Message.obtain(); in disconnect() local 458 msg.what = CMD_CHANNEL_DISCONNECTED; in disconnect() 459 msg.replyTo = mSrcMessenger; in disconnect() 460 mDstMessenger.send(msg); in disconnect() 478 public void sendMessage(Message msg) { in sendMessage() argument 479 msg.replyTo = mSrcMessenger; in sendMessage() 481 mDstMessenger.send(msg); in sendMessage() 493 Message msg = Message.obtain(); in sendMessage() local 494 msg.what = what; in sendMessage() 495 sendMessage(msg); in sendMessage() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | TaskChangeNotificationController.java | 149 public void handleMessage(Message msg) { in handleMessage() argument 150 switch (msg.what) { in handleMessage() 158 forAllRemoteListeners(mNotifyTaskStackChanged, msg); in handleMessage() 161 forAllRemoteListeners(mNotifyTaskCreated, msg); in handleMessage() 164 forAllRemoteListeners(mNotifyTaskRemoved, msg); in handleMessage() 167 forAllRemoteListeners(mNotifyTaskMovedToFront, msg); in handleMessage() 170 forAllRemoteListeners(mNotifyTaskDescriptionChanged, msg); in handleMessage() 173 forAllRemoteListeners(mNotifyActivityRequestedOrientationChanged, msg); in handleMessage() 176 forAllRemoteListeners(mNotifyTaskRemovalStarted, msg); in handleMessage() 179 forAllRemoteListeners(mNotifyActivityPinned, msg); in handleMessage() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareStateManager.java | 536 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in delayedInitialization() local 537 msg.arg1 = COMMAND_TYPE_DELAYED_INITIALIZATION; in delayedInitialization() 538 mSm.sendMessage(msg); in delayedInitialization() 546 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in getAwareInterface() local 547 msg.arg1 = COMMAND_TYPE_GET_AWARE; in getAwareInterface() 548 mSm.sendMessage(msg); in getAwareInterface() 556 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in releaseAwareInterface() local 557 msg.arg1 = COMMAND_TYPE_RELEASE_AWARE; in releaseAwareInterface() 558 mSm.sendMessage(msg); in releaseAwareInterface() 567 Message msg = mSm.obtainMessage(MESSAGE_TYPE_COMMAND); in connect() local [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 | 96 TerribleFailure(String msg, Throwable cause) { super(msg, cause); } in TerribleFailure() argument 123 public static int v(String tag, String msg) { in v() argument 124 return println_native(LOG_ID_MAIN, VERBOSE, tag, msg); in v() 134 public static int v(String tag, String msg, Throwable tr) { in v() argument 135 return printlns(LOG_ID_MAIN, VERBOSE, tag, msg, tr); in v() 144 public static int d(String tag, String msg) { in d() argument 145 return println_native(LOG_ID_MAIN, DEBUG, tag, msg); in d() 155 public static int d(String tag, String msg, Throwable tr) { in d() argument 156 return printlns(LOG_ID_MAIN, DEBUG, tag, msg, tr); in d() 165 public static int i(String tag, String msg) { in i() argument [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/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.c_str(), msg->header.type); in sendMessage() 182 ALOGD("channel '%s' ~ sent message of type %d", mName.c_str(), 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.c_str(), msg->header.type); in receiveMessage() [all …]
|
/frameworks/av/media/libmediaplayer2/nuplayer2/ |
D | NuPlayer2DecoderBase.cpp | 53 const sp<AMessage> &msg, sp<AMessage> *response) { in PostAndAwaitResponse() argument 54 status_t err = msg->postAndAwaitResponse(response); in PostAndAwaitResponse() 68 sp<AMessage> msg = new AMessage(kWhatConfigure, this); in configure() local 69 msg->setMessage("format", format); in configure() 70 msg->post(); in configure() 83 sp<AMessage> msg = new AMessage(kWhatSetParameters, this); in setParameters() local 84 msg->setMessage("params", params); in setParameters() 85 msg->post(); in setParameters() 89 sp<AMessage> msg = new AMessage(kWhatSetRenderer, this); in setRenderer() local 90 msg->setObject("renderer", renderer); in setRenderer() [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/base/tests/utils/testutils/java/android/os/test/ |
D | TestLooper.java | 105 Message msg = getMessageLinkedList(); in moveTimeForward() local 106 while (msg != null) { in moveTimeForward() 107 long updatedWhen = msg.getWhen() - milliSeconds; in moveTimeForward() 111 MESSAGE_WHEN_FIELD.set(msg, updatedWhen); in moveTimeForward() 112 msg = (Message) MESSAGE_NEXT_FIELD.get(msg); in moveTimeForward() 124 Message msg = getMessageLinkedList(); in messageQueueNext() local 125 if (msg != null && msg.getTarget() == null) { in messageQueueNext() 129 prevMsg = msg; in messageQueueNext() 130 msg = (Message) MESSAGE_NEXT_FIELD.get(msg); in messageQueueNext() 131 } while (msg != null && !msg.isAsynchronous()); in messageQueueNext() [all …]
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | WifiAwareManager.java | 510 public void handleMessage(Message msg) { in WifiAwareEventCallbackProxy() 512 Log.d(TAG, "WifiAwareEventCallbackProxy: What=" + msg.what + ", msg=" in WifiAwareEventCallbackProxy() 513 + msg); in WifiAwareEventCallbackProxy() 522 switch (msg.what) { in WifiAwareEventCallbackProxy() 525 new WifiAwareSession(mgr, mBinder, msg.arg1)); in WifiAwareEventCallbackProxy() 535 identityChangedListener.onIdentityChanged((byte[]) msg.obj); in WifiAwareEventCallbackProxy() 547 Message msg = mHandler.obtainMessage(CALLBACK_CONNECT_SUCCESS); in onConnectSuccess() local 548 msg.arg1 = clientId; in onConnectSuccess() 549 mHandler.sendMessage(msg); in onConnectSuccess() 556 Message msg = mHandler.obtainMessage(CALLBACK_CONNECT_FAIL); in onConnectFail() local [all …]
|
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
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/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiController.java | 253 public boolean processMessage(Message msg) { in processMessage() argument 254 switch (msg.what) { in processMessage() 287 if (msg.arg1 == 1) { in processMessage() 288 SoftApModeConfiguration config = (SoftApModeConfiguration) msg.obj; in processMessage() 289 mWifiStateMachinePrime.enterSoftAPMode((SoftApModeConfiguration) msg.obj); in processMessage() 313 log("WifiController msg " + msg + " getConfigWiFiDisableInECBM " in processMessage() 315 if ((msg.arg1 == 1) && configWiFiDisableInECBM) { in processMessage() 329 throw new RuntimeException("WifiController.handleMessage " + msg.what); in processMessage() 351 public boolean processMessage(Message msg) { in processMessage() argument 352 switch (msg.what) { in processMessage() [all …]
|