This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case JS_CONFIRM: | |
if (mWebChromeClient != null) { | |
final JsResult res = (JsResult) msg.obj; | |
String message = msg.getData().getString("message"); | |
String url = msg.getData().getString("url"); | |
if (!mWebChromeClient.onJsConfirm(mWebView, url, message, | |
res)) { | |
new AlertDialog.Builder(mContext) | |
.setTitle(getJsDialogTitle(url)) | |
.setMessage(message) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mkyong.android; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.webkit.WebChromeClient; | |
import android.webkit.WebView; | |
import android.webkit.WebViewClient; | |
public class WebViewActivity extends Activity { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SRCPATH=/home/charles-chang/Release/AP/CommonEmbedded_mf10.4/ | |
TGTPATH=${PWD}/out/target/product/CV/system/ | |
APLIST=`grep \<N\> ../appIndexTable.xml | sed -e 's/<\/.*>//g' -e 's/<.*>//g'` | |
for apfile in $APLIST | |
do | |
case $apfile in | |
*.so) | |
cp $SRCPATH/$apfile $TGTPATH/lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00020848 <strcat>: | |
char * | |
strcat(char *s, const char *append) | |
{ | |
char *save = s; | |
for (; *s; ++s); | |
20848: b510 push {r4, lr} | |
2084a: 4602 mov r2, r0 | |
2084c: e000 b.n 20850 <strcat+0x8> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
usb 2-1: USB disconnect, address 2 | |
usb 2-1.3: USB disconnect, address 3 | |
irq 18: nobody cared (try booting with the "irqpoll" option) | |
[<c009958c>] (unwind_backtrace+0x0/0xf0) from [<c00fcb64>] (__report_bad_irq+0x30/0x8c) | |
[<c00fcb64>] (__report_bad_irq+0x30/0x8c) from [<c00fcd08>] (note_interrupt+0x148/0x1d0) | |
[<c00fcd08>] (note_interrupt+0x148/0x1d0) from [<c00fd9a4>] (handle_level_irq+0xfc/0x188) | |
[<c00fd9a4>] (handle_level_irq+0xfc/0x188) from [<c009406c>] (asm_do_IRQ+0x6c/0x8c) | |
[<c009406c>] (asm_do_IRQ+0x6c/0x8c) from [<c0094a8c>] (__irq_svc+0x4c/0xcc) | |
Exception stack(0xd918dd20 to 0xd918dd68) | |
dd20: d911c960 d9649660 00000070 00000001 00000000 d97d34b0 d9649660 d9649660 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- This string array should be overridden by the device to present a list of network | |
attributes. This is used by the connectivity manager to decide which networks can coexist | |
based on the hardware --> | |
<!-- An Array of "[Connection name],[ConnectivityManager connection type], | |
[associated radio-type],[priority] --> | |
<string-array translatable="false" name="networkAttributes"> | |
<item>"wifi,1,1,1"</item> | |
<item>"mobile,0,0,0"</item> | |
<item>"mobile_mms,2,0,2"</item> | |
<item>"mobile_supl,3,0,2"</item> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/Makefile b/core/Makefile | |
index a1428ed..ec64ced 100644 | |
--- a/core/Makefile | |
+++ b/core/Makefile | |
@@ -117,10 +117,9 @@ endef | |
define default-locale-region | |
$(word 3, 3, $(call default-locale, $(1))) | |
endef | |
- | |
BUILDINFO_SH := build/tools/buildinfo.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
int main(int argc, char* argv[]) | |
{ | |
int fd; | |
int err; | |
char buf; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int Fat::check(const char *fsPath) { | |
bool rw = true; | |
SLOGI("Fat::check\n"); | |
if (access(FSCK_MSDOS_PATH, X_OK) || access(FSCK_EXT_PATH, X_OK)) { | |
SLOGW("Skipping fs checks\n"); | |
return 0; | |
} | |
int pass = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/common/Makefile b/common/Makefile | |
index ad7cb4f..8eee015 100644 | |
--- a/common/Makefile | |
+++ b/common/Makefile | |
@@ -168,6 +168,8 @@ COBJS-$(CONFIG_MODEM_SUPPORT) += modem.o | |
COBJS-$(CONFIG_UPDATE_TFTP) += update.o | |
COBJS-$(CONFIG_USB_KEYBOARD) += usb_kbd.o | |
+COBJS-y += cmd_pmic.o | |
+ |