/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/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 | 43 Message msg = new Message(); in test1() 44 msg.what = MESSAGE_A; in test1() 46 b.broadcast(msg); in test1() 49 public void handleMessage(Message msg) { in test1() 50 if (msg.what == MESSAGE_B) { in test1() 79 Message msg = new Message(); in go() local 80 msg.what = MESSAGE_A; in go() 82 b.broadcast(msg); in go() 85 public void handleMessage(Message msg) { in handleMessage() argument 86 int index = msg.what - MESSAGE_B; in handleMessage() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskChangeNotificationController.java | 197 public void handleMessage(Message msg) { in handleMessage() argument 198 switch (msg.what) { in handleMessage() 200 forAllRemoteListeners(mNotifyTaskStackChanged, msg); in handleMessage() 203 forAllRemoteListeners(mNotifyTaskCreated, msg); in handleMessage() 206 forAllRemoteListeners(mNotifyTaskRemoved, msg); in handleMessage() 209 forAllRemoteListeners(mNotifyTaskMovedToFront, msg); in handleMessage() 212 forAllRemoteListeners(mNotifyTaskDescriptionChanged, msg); in handleMessage() 215 forAllRemoteListeners(mNotifyActivityRequestedOrientationChanged, msg); in handleMessage() 218 forAllRemoteListeners(mNotifyTaskRemovalStarted, msg); in handleMessage() 221 forAllRemoteListeners(mNotifyActivityPinned, msg); in handleMessage() [all …]
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowSlog.java | 28 protected static int v(String tag, String msg) { in v() argument 29 return Log.v(tag, msg); in v() 33 protected static int v(String tag, String msg, Throwable tr) { in v() argument 34 return Log.v(tag, msg, tr); in v() 38 protected static int d(String tag, String msg) { in d() argument 39 return Log.d(tag, msg); in d() 43 protected static int d(String tag, String msg, Throwable tr) { in d() argument 44 return Log.d(tag, msg, tr); in d() 48 protected static int i(String tag, String msg) { in i() argument 49 return Log.i(tag, msg); in i() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | AsyncChannel.java | 468 Message msg = Message.obtain(); in disconnect() local 469 msg.what = CMD_CHANNEL_DISCONNECTED; in disconnect() 470 msg.replyTo = mSrcMessenger; in disconnect() 471 mDstMessenger.send(msg); in disconnect() 490 public void sendMessage(Message msg) { in sendMessage() argument 491 msg.replyTo = mSrcMessenger; in sendMessage() 493 mDstMessenger.send(msg); in sendMessage() 506 Message msg = Message.obtain(); in sendMessage() local 507 msg.what = what; in sendMessage() 508 sendMessage(msg); in sendMessage() [all …]
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 224 void InputMessage::getSanitizedCopy(InputMessage* msg) const { in getSanitizedCopy() 225 memset(msg, 0, sizeof(*msg)); in getSanitizedCopy() 228 msg->header.type = header.type; in getSanitizedCopy() 229 msg->header.seq = header.seq; in getSanitizedCopy() 235 msg->body.key.eventId = body.key.eventId; in getSanitizedCopy() 237 msg->body.key.eventTime = body.key.eventTime; in getSanitizedCopy() 239 msg->body.key.deviceId = body.key.deviceId; in getSanitizedCopy() 241 msg->body.key.source = body.key.source; in getSanitizedCopy() 243 msg->body.key.displayId = body.key.displayId; in getSanitizedCopy() 245 msg->body.key.hmac = body.key.hmac; in getSanitizedCopy() [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/base/core/java/android/util/ |
D | Slog.java | 49 public static int v(@Nullable String tag, @NonNull String msg) { in v() argument 50 return Log.println_native(Log.LOG_ID_SYSTEM, Log.VERBOSE, tag, msg); in v() 64 public static int v(@Nullable String tag, @NonNull String msg, @Nullable Throwable tr) { in v() argument 66 msg + '\n' + Log.getStackTraceString(tr)); in v() 79 public static int d(@Nullable String tag, @NonNull String msg) { in d() argument 80 return Log.println_native(Log.LOG_ID_SYSTEM, Log.DEBUG, tag, msg); in d() 95 public static int d(@Nullable String tag, @NonNull String msg, @Nullable Throwable tr) { in d() argument 97 msg + '\n' + Log.getStackTraceString(tr)); in d() 110 public static int i(@Nullable String tag, @NonNull String msg) { in i() argument 111 return Log.println_native(Log.LOG_ID_SYSTEM, Log.INFO, tag, msg); in i() [all …]
|
D | Log.java | 115 TerribleFailure(String msg, Throwable cause) { super(msg, cause); } in TerribleFailure() argument 143 public static int v(@Nullable String tag, @NonNull String msg) { in v() argument 144 return println_native(LOG_ID_MAIN, VERBOSE, tag, msg); in v() 155 public static int v(@Nullable String tag, @Nullable String msg, @Nullable Throwable tr) { in v() argument 156 return printlns(LOG_ID_MAIN, VERBOSE, tag, msg, tr); in v() 166 public static int d(@Nullable String tag, @NonNull String msg) { in d() argument 167 return println_native(LOG_ID_MAIN, DEBUG, tag, msg); in d() 178 public static int d(@Nullable String tag, @Nullable String msg, @Nullable Throwable tr) { in d() argument 179 return printlns(LOG_ID_MAIN, DEBUG, tag, msg, tr); in d() 189 public static int i(@Nullable String tag, @NonNull String msg) { in i() argument [all …]
|
/frameworks/base/core/java/android/app/ |
D | RemoteServiceException.java | 36 public RemoteServiceException(String msg) { in RemoteServiceException() argument 37 super(msg); in RemoteServiceException() 40 public RemoteServiceException(String msg, Throwable cause) { in RemoteServiceException() argument 41 super(msg, cause); in RemoteServiceException() 57 public ForegroundServiceDidNotStartInTimeException(String msg, Throwable cause) { in ForegroundServiceDidNotStartInTimeException() argument 58 super(msg, cause); in ForegroundServiceDidNotStartInTimeException() 84 public CannotPostForegroundServiceNotificationException(String msg) { in CannotPostForegroundServiceNotificationException() argument 85 super(msg); in CannotPostForegroundServiceNotificationException() 99 public BadForegroundServiceNotificationException(String msg) { in BadForegroundServiceNotificationException() argument 100 super(msg); in BadForegroundServiceNotificationException() [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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CellBroadcastConfigTrackerTest.java | 112 Message msg = msgCaptor.getValue(); in testSetCellBroadcastIdRangesSuccess() local 113 assertNotNull(msg); in testSetCellBroadcastIdRangesSuccess() 114 AsyncResult.forMessage(msg); in testSetCellBroadcastIdRangesSuccess() 115 msg.sendToTarget(); in testSetCellBroadcastIdRangesSuccess() 120 msg = msgCaptor.getValue(); in testSetCellBroadcastIdRangesSuccess() 121 assertNotNull(msg); in testSetCellBroadcastIdRangesSuccess() 122 AsyncResult.forMessage(msg); in testSetCellBroadcastIdRangesSuccess() 123 msg.sendToTarget(); in testSetCellBroadcastIdRangesSuccess() 152 msg = msgCaptor.getValue(); in testSetCellBroadcastIdRangesSuccess() 153 assertNotNull(msg); in testSetCellBroadcastIdRangesSuccess() [all …]
|
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/netlink/ |
D | NduseroptMessageTest.java | 77 NduseroptMessage msg = parseNduseroptMessage(toBuffer(MSG_EMPTY)); in testParsing() local 78 assertMatches(AF_INET6, 0, IFINDEX1, ICMP_TYPE_RA, (byte) 0, SADDR1, msg); in testParsing() 79 assertNull(msg.option); in testParsing() 81 msg = parseNduseroptMessage(toBuffer(MSG_PREF64)); in testParsing() 82 assertMatches(AF_INET6, 16, IFINDEX2, ICMP_TYPE_RA, (byte) 0, SADDR2, msg); in testParsing() 83 assertPref64Option("2001:db8:3:4:5:6::/96", msg.option); in testParsing() 105 NduseroptMessage msg = (NduseroptMessage) nlMsg; in testParseWithinNetlinkMessage() local 107 assertMatches(AF_INET6, 16, 30, ICMP_TYPE_RA, (byte) 0, srcaddr, msg); in testParseWithinNetlinkMessage() 108 assertPref64Option("64:ff9b::/96", msg.option); in testParseWithinNetlinkMessage() 113 msg = parseNduseroptMessage(bufWithoutHeader); in testParseWithinNetlinkMessage() [all …]
|
/frameworks/base/telephony/java/com/android/telephony/ |
D | Rlog.java | 39 private static int log(int priority, String tag, String msg) { in log() argument 40 return Log.logToRadioBuffer(priority, tag, msg); in log() 43 public static int v(String tag, String msg) { in v() argument 44 return log(Log.VERBOSE, tag, msg); in v() 47 public static int v(String tag, String msg, Throwable tr) { in v() argument 49 msg + '\n' + Log.getStackTraceString(tr)); in v() 52 public static int d(String tag, String msg) { in d() argument 53 return log(Log.DEBUG, tag, msg); in d() 56 public static int d(String tag, String msg, Throwable tr) { in d() argument 58 msg + '\n' + Log.getStackTraceString(tr)); in d() [all …]
|
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
D | StructTest.java | 117 private void verifyHeaderParsing(final HeaderMsgWithConstructor msg) { in verifyHeaderParsing() argument 118 assertEquals(10, msg.mFamily); in verifyHeaderParsing() 119 assertEquals(0, msg.mLen); in verifyHeaderParsing() 120 assertEquals(15715755, msg.mIfindex); in verifyHeaderParsing() 121 assertEquals(134, msg.mIcmpType); in verifyHeaderParsing() 122 assertEquals(0, msg.mIcmpCode); in verifyHeaderParsing() 126 msg.writeToBytes(ByteOrder.LITTLE_ENDIAN)); in verifyHeaderParsing() 131 final HeaderMsgWithConstructor msg = doParsingMessageTest(HDR_EMPTY, in testClassWithExplicitConstructor() local 133 verifyHeaderParsing(msg); in testClassWithExplicitConstructor() 154 final HeaderMsgWithoutConstructor msg = doParsingMessageTest(HDR_EMPTY, in testClassWithDefaultConstructor() local [all …]
|
/frameworks/av/media/libstagefright/ |
D | CryptoAsync.cpp | 36 status_t CryptoAsync::decrypt(sp<AMessage> &msg) { in decrypt() argument 38 CHECK(msg->findInt32("action", &decryptAction)); in decrypt() 50 pendingBuffers->push_back(std::move(msg)); in decrypt() 71 status_t CryptoAsync::decryptAndQueue(sp<AMessage> & msg) { in decryptAndQueue() argument 82 msg->findInt32("encryptBlocks", (int32_t*)&pattern.mEncryptBlocks); in decryptAndQueue() 83 msg->findInt32("skipBlocks", (int32_t*)&pattern.mSkipBlocks); in decryptAndQueue() 84 msg->findBuffer("key", &keyBuffer); in decryptAndQueue() 85 msg->findBuffer("iv", &ivBuffer); in decryptAndQueue() 86 msg->findBuffer("subSamples", &subSamplesBuffer); in decryptAndQueue() 87 msg->findInt32("secure", &secure); in decryptAndQueue() [all …]
|
/frameworks/base/services/core/java/com/android/server/utils/ |
D | Slogf.java | 62 public static int v(String tag, String msg) { in v() argument 63 return Slog.v(tag, msg); in v() 67 public static int v(String tag, String msg, Throwable tr) { in v() argument 68 return Slog.v(tag, msg, tr); in v() 72 public static int d(String tag, String msg) { in d() argument 73 return Slog.d(tag, msg); in d() 77 public static int d(String tag, String msg, Throwable tr) { in d() argument 78 return Slog.d(tag, msg, tr); in d() 82 public static int i(String tag, String msg) { in i() argument 83 return Slog.i(tag, msg); in i() [all …]
|