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
import android.graphics.Bitmap | |
import android.graphics.Canvas | |
import android.opengl.GLES10 | |
import android.opengl.GLSurfaceView | |
import android.os.Bundle | |
import android.support.design.widget.Snackbar | |
import android.support.v7.app.AppCompatActivity | |
import kotlinx.android.synthetic.main.activity_glone.* | |
import kotlinx.android.synthetic.main.content_glone.* | |
import java.nio.ByteBuffer |
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
private static void installMultiple(Context context) { | |
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) { | |
PackageInstaller packageInstaller = context.getPackageManager().getPackageInstaller(); | |
PackageInstaller.SessionParams sessionParams = new PackageInstaller.SessionParams(PackageInstaller.SessionParams.MODE_FULL_INSTALL); | |
try { | |
final int sessionId = packageInstaller.createSession(sessionParams); | |
Log.d(TAG, "installMultiple: sessionId " + sessionId); |
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
import java.awt.Color; | |
import java.util.Arrays; | |
/** | |
* Created by wanghong on 10/8/16. | |
*/ | |
public class ColorSpace { | |
public static void main(String[] args) { |
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/bash | |
P= | |
F= | |
D= | |
function usage() | |
{ | |
echo "$(basename $0) [-f file] [-d directory] -p package" | |
exit 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
<component name="CopyrightManager"> | |
<copyright> | |
<option name="myName" value="Apache License v2" /> | |
<option name="notice" value="Copyright (C) &#36;today.year &#36;username Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License." /> | |
</copyright> | |
</component> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<cdtprojectproperties> | |
<section name="org.eclipse.cdt.internal.ui.wizards.settingswizards.IncludePaths"> | |
<language name="holder for library settings"> | |
</language> | |
<language name="Assembly"> | |
<includepath>/opt/x-tools/mips-4.3/mips-linux-gnu/include/c++/4.3.2/mips-linux-gnu</includepath> | |
<includepath>/opt/x-tools/mips-4.3/mips-linux-gnu/include/c++/4.3.2</includepath> | |
<includepath>/opt/x-tools/mips-4.3/mips-linux-gnu/libc/usr/include</includepath> |
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/bash | |
storepass= | |
keypass= | |
key_alias=platform | |
openssl pkcs8 -inform DER -nocrypt -in platform.pk8 | \ | |
openssl pkcs12 -export -in platform.x509.pem -inkey /dev/stdin \ | |
-name $key_alias -password pass:$keypass -out tmp.p12 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<cdtprojectproperties> | |
<section name="org.eclipse.cdt.internal.ui.wizards.settingswizards.IncludePaths"> | |
<language name="holder for library settings"> | |
</language> | |
<language name="Assembly"> | |
<includepath>${ProjDirPath}/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/lib/gcc/arm-eabi/4.7/include</includepath> | |
<includepath>${ProjDirPath}/build/core/combo/include/arch/linux-arm</includepath> | |
<includepath>${ProjDirPath}/system/core/include</includepath> |
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/bash | |
[ $# -ne 1 ] && { echo not system.img provided, exit.; exit 0; } | |
sudo umount `pwd`/system | |
sudo rmmod ubifs | |
sudo rmmod ubi | |
sudo rmmod nandsim | |
sudo rmmod mtdblock |
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
Index: build/core/Makefile | |
=================================================================== | |
--- build/core/Makefile (revision 214) | |
+++ build/core/Makefile (working copy) | |
@@ -19,6 +19,11 @@ | |
# The filter part means "only eval the copy-one-file rule if this | |
# src:dest pair is the first one to match the same dest" | |
#$(1): the src:dest pair | |
+ | |
+# make the product copy files in inherit override the parent |
NewerOlder